Sorry for the finger trouble with the [EMAIL PROTECTED]

Harald Weis wrote:
Greg Scott wrote:

Just this morning I set a box up with PPPoE and FreeBSD 4.7-RELEASE.

Set up some ipf rules on tun0, ran nmap against it from a remote machine,
all is good.

This was a fresh install from CD, no upgrade.

It has been noted before that mixing different versions of ipf in the kern
with different versions in userland will provide erratic results.


I'm not sure whether I fully understand the last paragraph.

My custom kernel uses the cvsup'd (Nov 5) kernel source (and all files in /bin and /sbin are dated Oct 9) with the previous kernel config (I had seen no reason why to change it for the time being).
This custom kernel does not compile with
options IPFILTER
options IPFILTER_LOG

algol {wei} /<1>compile/ALGOL # make
cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 ../../contrib/ipfilter/netinet/fil.c
../../contrib/ipfilter/netinet/fil.c: In function `fr_makefrip':
../../contrib/ipfilter/netinet/fil.c:267: structure has no member named `fin_misc'
../../contrib/ipfilter/netinet/fil.c: In function `fr_check':
../../contrib/ipfilter/netinet/fil.c:1082: too few arguments to function `ipfr_newfrag'
../../contrib/ipfilter/netinet/fil.c:1092: too many arguments to function `fr_addstate'
*** Error code 1

Stop in /usr/local/src/sys/compile/ALGOL.
algol {wei} /<1>compile/ALGOL #

But it does compile alright without the IPFILTER options which is my present state:

algol {wei} ~ # uname -a
FreeBSD algol.adsl.nerim.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Tue Nov 5 20:52:37 CET 2002 [EMAIL PROTECTED]:/usr/local/src/sys/compile/ALGOL i386
algol {wei} ~ # ipf -V
ipf: IP Filter: v3.4.29 (336)
Kernel: IP Filter: v3.4.29
Running: yes
Log Flags: 0 = none set
Default: pass all, Logging: available
Active list: 0
algol {wei} ~ # ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
inet 62.212.97.189 --> 62.4.16.251 netmask 0xffffffff
Opened by PID 170
algol {wei} ~ #

This looks fine until I discovered that the ipfilter does block all inputs on tun0. But I did not change anything in the rules and I run remote ssh all summer when the system was still 4.5-RELEASE.

Simple preliminary question: Must the IPFILTER options be present in the custom kernel config file under 4.7 if you want ipfilter ?
(LINT seems to say yes)

Thanks,

Harald





Reply via email to