LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-22-2003, 10:05 AM   #1
dingding66
Member
 
Registered: Jan 2003
Location: Utah, USA
Distribution: Mandrake 9.2
Posts: 51

Rep: Reputation: 15
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.
 
Old 12-23-2003, 02:45 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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?
 
Old 12-23-2003, 03:43 PM   #3
dingding66
Member
 
Registered: Jan 2003
Location: Utah, USA
Distribution: Mandrake 9.2
Posts: 51

Original Poster
Rep: Reputation: 15
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!
 
Old 12-23-2003, 05:33 PM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
The modules should be located here:
/lib/modules/2.6.0/kernel/net/ipv4/netfilter/
 
Old 12-23-2003, 09:56 PM   #5
dingding66
Member
 
Registered: Jan 2003
Location: Utah, USA
Distribution: Mandrake 9.2
Posts: 51

Original Poster
Rep: Reputation: 15
/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.

Last edited by dingding66; 12-23-2003 at 10:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables and kernel 2.6 rb2k Linux - Networking 3 02-13-2004 10:38 AM
IPTABLES 1.2.9 on Kernel 2.6.1 kemplej Linux - Security 6 01-16-2004 08:03 AM
Kernel 2.6.0 + iptables Waldi Slackware 3 01-02-2004 08:29 AM
kernel 2.4.20 and iptables? jownas Linux - Networking 2 07-01-2003 07:44 PM
why me (kernel/iptables) Robert0380 Linux - Software 14 06-17-2003 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration