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. |
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? |
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! |
The modules should be located here:
/lib/modules/2.6.0/kernel/net/ipv4/netfilter/ |
/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. |