View previous topic :: View next topic |
Author |
Message |
james n00b
Joined: 24 Apr 2002 Posts: 56 Location: Middle Smithfield, PA
|
Posted: Thu May 23, 2002 12:10 pm Post subject: Iptables Arrrghhh! |
|
|
Hi All.
I am getting this message when I start iptables.
can't initalize iptables "NAT'
I turned on all the IPtables/netfilter options in the kernel, either built in or as modules.
The script is firewall.rules from the Gentoo Security How to page.
If I do "iptables -L" it shows the script loaded but the to and from say 'anywhere'.
Any help would be appreciated.
J _________________ 17 Opps It's 19 now Gentoo's and counting |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Thu May 23, 2002 12:16 pm Post subject: |
|
|
Did you remember to enable IP forwarding?
Code: | echo 1 > /proc/sys/net/ipv4/ip_forward |
Also, do a lsmod and make sure iptable_nat is loaded. (unless it's compiled into your kernel)
Finally, the NAT HOWTO is a good resource.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
iptables Guest
|
Posted: Thu May 23, 2002 12:49 pm Post subject: |
|
|
Hi Kurt.
I did the "echo 1 > /proc........thing. I don't have a /ipv4/ in the directory.
Insmod returns "no module by that name found, I think this is in the kernel.
I stumped.....
J |
|
Back to top |
|
|
id10t Tux's lil' helper
Joined: 18 May 2002 Posts: 100
|
Posted: Thu May 23, 2002 1:24 pm Post subject: |
|
|
Just get gShield - http://muse.linuxmafia.org _________________ ---
this space for rent |
|
Back to top |
|
|
james n00b
Joined: 24 Apr 2002 Posts: 56 Location: Middle Smithfield, PA
|
Posted: Thu May 23, 2002 2:07 pm Post subject: iptables.... |
|
|
Good idea.......except it sez "need properly working netfilter/iptables....." _________________ 17 Opps It's 19 now Gentoo's and counting |
|
Back to top |
|
|
toxborrow n00b
Joined: 18 May 2002 Posts: 15 Location: A little village, south-west UK
|
Posted: Thu May 23, 2002 2:55 pm Post subject: |
|
|
NAT needs to be added in your kernel config, go in there and double check under the "Netfilter Configuration" (i think that's its name) in one of the Networking sections.
It's probably best to compile it into the kernel rather than as a seperate module. |
|
Back to top |
|
|
|