TANABE Hiroyasu wrote:
Hello,Yes, I have trouble with ipfilter in 4.7 (upgrading from 4.5)
ipfilter in my FreeBSD-4.x box with tun device (=with ppp) is working fine for many months, but after upgrading to 4.7-RELEASE it does not work.
I tried to '/sbin/ipf -y' after ppp-linkup, in vain.
Now, this box is working with 4.6.2-kernel(ipf 3.4.27) and 4.7-userland(ipf 3.4.29).
Some error messages are appeared, so I feel bad.
On the other hand, ipf in another box upgraded to 4.7-RELEASE
without tun device is still working fine.
Both 4.7-RELEASE boxes have almost same configuration,
so I'm guessing ipf does not work with tun device driver in 4.7-RELEASE.
Does anyone have similar troubles and solutions?
Thanks in advance,
TANABE Hiroyasu
I've just told a friend the details unfortunately in French,
perhaps it helps for the moment:
***
ROBERT Ollivier wrote:
> J'ai compil� un noyau de test sur ma 4.7-RC sans probl�me...
>
Tes deux messages m'ont troubl� parce qu'ils �taient en contradiction
avec ce que j'ai cru comprendre. En fait, IPFILTER ne fonctionne pas.
L'entr�e est bloqu�e. Voici bri�vement ce que j'avais fait:
- upgrade vers 4.7 OK
- install nouveau X11 OK
- pas encore pris le temps de mettre � jour les fichiers de config dans
/etc, pensant que ce n'est pas obligatoire pour le moment
- �galement, n'ai pas vu la n�cessit� de modifier le fichier de 'config'
du noyau
- compilation (avec les nouvelles sources �videmment) avec les 2 options IPFILTER et IPFILTER_LOG donne:
---
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 #
---
- compilation sans ces 2 options OK
- 'dmesg' donne:
---
IP Filter: v3.4.29 initialized. Default = pass all, Logging = enabled
---
- ipfstat -i OK
- ipfstat -o OK
- j'avais donc cru que IPFILTER est d�sormais dans le noyau par d�faut
- mais 'ping' ou 'ssh' ou 'ipftest' (que j'ai appris � cette occasion) montre bien que les entr�es sont bloqu�es
- � tout hasard je joins le fichier de config
- vais maintenant prendre le temps de mettre � jour les fichiers dans /etc, mais sans trop d'espoir
Merci, si tu as 5 minutes pour jeter un coup d'oeil,
A+
#
# ALGOL -- Custom kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
# http://www.FreeBSD.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.40 2002/03/27 02:16:26 dd Exp $
machine i386
cpu I586_CPU
ident ALGOL
maxusers 0
#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep this!]
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options UCONSOLE #Allow users to grab the console
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options ICMP_BANDLIM #Rate limit bad replies
options EXT2FS #Support for Linux filesystem
device isa
device pci
options IPFILTER #ipfilter support
options IPFILTER_LOG #ipfilter logging
# Floppy drives
device fdc0 at isa? port IO_FD1 irq 6 drq 2
device fd0 at fdc0 drive 0
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
options ATA_STATIC_ID #Static device numbering
# SCSI Controllers
device sym # NCR/Symbios Logic (newer chipsets)
# SCSI peripherals
device scbus # SCSI bus (required)
device da # Direct Access (disks)
device cd # CD
device sa # SCSI tapes
device pass # Passthrough device (direct SCSI access)
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1 flags 0x1
device psm0 at atkbdc? irq 12
device vga0 at isa?
# splash screen/screen saver
pseudo-device splash
# syscons is the default console driver, resembling an SCO console
device sc0 at isa? flags 0x100
# Floating point support - do not disable.
device npx0 at nexus? port IO_NPX irq 13
# Power management support (see LINT for more options)
#device apm0 at nexus? disable flags 0x20 # Advanced Power Management
# Serial (COM) ports
device sio0 at isa? port IO_COM1 flags 0x10 irq 4
device sio1 at isa? port IO_COM2 irq 3
# Parallel port
device ppc0 at isa? irq 7
device ppbus # Parallel port bus (required)
device lpt # Printer
device plip # TCP/IP over parallel
device ppi # Parallel port interface device
#device vpo # Requires scbus and da
# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device miibus # MII bus support
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
# Pseudo devices - the number indicates how many units to allocate.
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
pseudo-device ppp 1 # Kernel PPP
pseudo-device tun # Packet tunnel.
pseudo-device pty # Pseudo-ttys (telnet etc)
# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device bpf #Berkeley packet filter
# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
device ugen # Generic
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
device uscanner # Scanners
# debugging options for the USB subsystem
#
options UHCI_DEBUG
options OHCI_DEBUG
options USB_DEBUG
options UGEN_DEBUG
options UHID_DEBUG
options UHUB_DEBUG
options UKBD_DEBUG
options ULPT_DEBUG
options UMASS_DEBUG
options UMS_DEBUG
# The newpcm driver (use INSTEAD of snd0 and all VOXWARE drivers!).
# Note that motherboard sound devices may require options PNPBIOS.
#
# Supported cards include:
# Creative SoundBlaster ISA PnP/non-PnP
# Supports ESS and Avance ISA chips as well.
# Gravis UltraSound ISA PnP/non-PnP
# Crystal Semiconductor CS461x/428x PCI
# Neomagic 256AV (ac97)
# Most of the more common ISA/PnP sb/mss/ess compatable cards.
# For non-pnp sound cards with no bridge drivers only:
#device pcm0 at isa? irq 10 drq 1 flags 0x0
#
# For PnP/PCI sound cards
device pcm
# The bridge drivers for sound cards. These can be seperately configured
# for providing services to the likes of new-midi (not in the tree yet).
# When used with 'device pcm' they also provide pcm sound services.
#
# sbc: Creative SoundBlaster ISA PnP/non-PnP
# Supports ESS and Avance ISA chips as well.
# gusc: Gravis UltraSound ISA PnP/non-PnP
# csa: Crystal Semiconductor CS461x/428x PCI
# For non-PnP cards:
#device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15
