LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   iptables and kernel 2.6.0 (https://www.linuxquestions.org/questions/mandriva-30/iptables-and-kernel-2-6-0-a-128071/)

dingding66 12-22-2003 10:05 AM

iptables and kernel 2.6.0
 
On my home network the main box is Mandrake 9.2. I just booted in to a fresh new 9.2 kernel and noticed that my rc.firewall i have set up (iptables) for IP Masquerading isn't working. I get the following errors when it loads.

External Interface: eth0
Internal Interface: eth1
loading modules: - Verifying that all kernel modules are ok
----------------------------------------------------------------------
ip_tables, Can't open 'ip_tables': No such file or directory
ip_conntrack, Can't open 'ip_conntrack': No such file or directory
ip_conntrack_ftp, Can't open 'ip_conntrack_ftp': No such file or directory
ip_conntrack_irc, Can't open 'ip_conntrack_irc': No such file or directory
iptable_nat, Can't open 'iptable_nat': No such file or directory
ip_nat_ftp, Can't open 'ip_nat_ftp': No such file or directory
ip_nat_irc
Can't open 'ip_nat_irc': No such file or directory
----------------------------------------------------------------------
. Done loading modules.
enabling forwarding..
enabling DynamicAddr..
clearing any existing rules and setting default policy..
FWD: Allow all connections OUT and only existing and related ones IN
Enabling SNAT (MASQUERADE) functionality on eth0
iptables: Invalid argument

it's not finding the modules it needs. how do i go about building them and where do i need to put them? also I'm not sure on which line the "Invalid argument" is but I'm pretty sure it has to do with the modules. Or is it just that the version of iptables that comes with 9.2 doesn't work with the 2.6.0 kernel?

Thanks in advance.

/bin/bash 12-23-2003 02:45 PM

Did you build your own kernel?

The Iptables options are in Device drivers -> Networking support -> Networking options -> Network packet filtering (replaces ipchains)

And it is turned off by default?

dingding66 12-23-2003 03:43 PM

Yes I built my own kernel. Thanks :)
I'm looking there and it has
Network packet filtering: enabled
under the IPtables section there it has them all checked to be compiled as modules. (Checking my saved .config in /usr/src/linux-2.6.0) I'm kinda lost now... I'll check my rc.firewall and see if maybe the locations/names are different? hmm.. Thanks for the reply!

/bin/bash 12-23-2003 05:33 PM

The modules should be located here:
/lib/modules/2.6.0/kernel/net/ipv4/netfilter/

dingding66 12-23-2003 09:56 PM

/lib/modules/2.6.0/kernel/net/ipv4/netfilters is there and so are all the modules. but it's still giving me the same errors. I even tried remaking the modules/remaking modules_install. guess I'll just wait for a release that comes out with the 2.6 kernel. I really like it but I've got to have the NAT masquerading enabled. Thanks for your help /bin/bash. I really appreciate it. I think it's just a little over my head at this point and I'm going to wait.


All times are GMT -5. The time now is 08:23 AM.