Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Iptables Arrrghhh!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
james
n00b
n00b


Joined: 24 Apr 2002
Posts: 56
Location: Middle Smithfield, PA

PostPosted: Thu May 23, 2002 12:10 pm    Post subject: Iptables Arrrghhh! Reply with quote

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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Thu May 23, 2002 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
iptables
Guest





PostPosted: Thu May 23, 2002 12:49 pm    Post subject: Reply with quote

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
Tux's lil' helper


Joined: 18 May 2002
Posts: 100

PostPosted: Thu May 23, 2002 1:24 pm    Post subject: Reply with quote

Just get gShield - http://muse.linuxmafia.org
_________________
---
this space for rent
Back to top
View user's profile Send private message
james
n00b
n00b


Joined: 24 Apr 2002
Posts: 56
Location: Middle Smithfield, PA

PostPosted: Thu May 23, 2002 2:07 pm    Post subject: iptables.... Reply with quote

Good idea.......except it sez "need properly working netfilter/iptables....."
_________________
17 Opps It's 19 now ;-) Gentoo's and counting
Back to top
View user's profile Send private message
toxborrow
n00b
n00b


Joined: 18 May 2002
Posts: 15
Location: A little village, south-west UK

PostPosted: Thu May 23, 2002 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum