If Darren or anyone else can give me some input on the following I'd much 
appreciate it.

This weekend I have spent a bit of time at the computer and have managed to 
sortof install IPFilter4.1.7 on FreeBSD5.3, however there is still an 
unresolved problem. Darren your previous patch(Inlining) seems to work fine, 
thanks, I guess it must have been my last install of FreeBSD5.3 that had some 
problems.

The problem that is still unresolved is the foillowing:

on booting I get the following error and ipfilter doesn't load:
interface ipfilter.1 already present in the KLD 'kernel'!
kldload can't load ipl: File exists
/etc/rc:ERROR: IP-filter module failed to load

Is this due to the name of ipl.ko having been changed to ipf.ko? and how can I 
go about sorting this out?

I have attached my howto for installing IPFilter4.1.7 on FreeBSD, which 
contains a few problems that will be needed to be sorted out in code. For now I 
have hacked it to work for me.

Thanks 

Rekkie


IPFilter4.1.7 and FReeBSD5.3-RELEASE Howto

>untar ip_fil4.1.7.tar.gz
tar zxvf ip_fil4.1.7.tar.gz

>enter the ip_fil4.1.7 directory and patch ip_compat.h
>(with patch supplied by Darren)

patch ip_compat.h <PatchDarren.diff

>then make IPFILTER
make freebsd5

>Unless you change the schg flag on /boot/kernel/ at this time the install will 
>not work
chflags noschg /boot/kernel

>Install IPFIlter
make install-bsd

>Remember to return original state to /boot/kernel/
chflags schg /boot/kernel

>If sources are used as is, during compilation of the kernel you will receive 
>an error
>to avoid this modify line #275 of ip_pptp_pxy.c (the one in the untared 
>directory) to read:
msg = (char *)fin->fin_dp + (TCP_OFF(tcp) <<2);

>next run kupgrade
./BSD/kupgrade

>Continue to  compile your kernel
cd /sys/i386/compile/KernelName
make clean
cd /sys/i386/conf
/usr/sbin/config KernelName
cd ../compile/KernelName
make depend
make
make install

>There still remains one problem though, on booting I get the following error:
interface ipfilter.1 already present in the KLD 'kernel'!
kldload can't load ipl: File exists
/etc/rc:ERROR: IP-filter module failed to load

>Is this due to the name of ipl.ko having been changed to ipf.ko? and how can I 
>go about sorting this out?




 --- On Wed 03/16, Darren Reed < [EMAIL PROTECTED] > wrote:
From: Darren Reed [mailto: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
     Cc: [EMAIL PROTECTED], [email protected]
Date: Thu, 17 Mar 2005 06:07:03 +1100 (EST)
Subject: Re: FreeBSD5.3, ipnat and H323

<br>This is one of the reasons to hate open source...spurious little 
changes<br>somewhere that crate a lot of work for others because someone 
decided to<br>make a change they thought was 
good....sigh<br><br>Darren<br><br>Index: 
ip_compat.h<br>===================================================================<br>RCS
 file: /devel/CVS/IP-Filter/ip_compat.h,v<br>retrieving revision 
2.142.2.24<br>diff -c -r2.142.2.24 ip_compat.h<br>*** ip_compat.h 8 Jan 2005 
14:22:59 -0000       2.142.2.24<br>--- ip_compat.h   15 Mar 2005 20:00:43 
-0000<br>***************<br>*** 1278,1289 ****<br>  #define        ipf_isw      
   ipf_lkun_s.ipf_sw<br>  #define  ipf_magic       ipf_lkun_s.ipf_magic<br>  
<br>! #ifdef  __GNUC__<br>! # define  INLINE  __inline__<br>! #else<br>  # 
ifndef     INLINE<br>  #  define   INLINE<br>  # endif<br>  #endif<br>  <br>  
#if defined(linux) && defined(_KERNEL)<br>--- 1278,1290 ----<br>  #define    
ipf_isw         ipf_lkun_s.ipf_sw<br>  #define  ipf_magic       
ipf_lkun_s.ipf_magic<br>  <br>! #if !defined(__GNUC__) || \<!
 br>!     (defined(__FreeBSD_version) && (__FreeBSD_version >= 503000))<br>  # 
ifndef   INLINE<br>  #  define   INLINE<br>  # endif<br>+ #else<br>+ # define   
 INLINE  __inline__<br>  #endif<br>  <br>  #if defined(linux) && 
defined(_KERNEL)<br>

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

Reply via email to