Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables problem
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
CogSci
n00b
n00b


Joined: 05 Jun 2003
Posts: 19
Location: Whidbey Island

PostPosted: Thu Jun 05, 2003 5:19 am    Post subject: iptables problem Reply with quote

Hi,
after reconfiguring my kernel and activating everything accordig to http://www.shorewall.net/kernel.htm
emerging iptables, I still get
bash-2.05b# echo 1 > /proc/sys/net/ipv4/ip_forward
bash-2.05b# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `nat': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
bash-2.05b#

What's wrong here?
_________________
Best regards,
CogSci
Back to top
View user's profile Send private message
Highlands
Guru
Guru


Joined: 22 Apr 2003
Posts: 366
Location: Sundsvall, Sweden

PostPosted: Thu Jun 05, 2003 6:50 am    Post subject: Reply with quote

are you sure that you have compiled ip_tables as a mdule and not kompiled it in the kernel?
_________________
If Windows is the answer, you don't understand the question!
http://counter.li.org/cgi-bin/certificate.cgi/339446
Back to top
View user's profile Send private message
CogSci
n00b
n00b


Joined: 05 Jun 2003
Posts: 19
Location: Whidbey Island

PostPosted: Thu Jun 05, 2003 11:41 pm    Post subject: Reply with quote

I'm pretty sure that I compiled it into the kernel, - not as module. Was this wrong?
_________________
Best regards,
CogSci
Back to top
View user's profile Send private message
mfairchi
n00b
n00b


Joined: 23 Apr 2002
Posts: 57
Location: Ventura, California

PostPosted: Fri Jun 06, 2003 6:36 am    Post subject: Reply with quote

what do you get from lsmod? Is ip_tables there?
if not try insmod on the actual ip_table.0 file.
-Michael
Back to top
View user's profile Send private message
mfairchi
n00b
n00b


Joined: 23 Apr 2002
Posts: 57
Location: Ventura, California

PostPosted: Fri Jun 06, 2003 7:02 am    Post subject: Reply with quote

i just reread this post and realizxed lsmod should not show the module, its in the kernel, duh, and that should be fine. But once or twice i have had something (cd burning stuff) only work when it was a module. I always have had my ip_tables stuff as module, but it shouldn't matter.
-michael
Back to top
View user's profile Send private message
CogSci
n00b
n00b


Joined: 05 Jun 2003
Posts: 19
Location: Whidbey Island

PostPosted: Sat Jun 07, 2003 1:21 am    Post subject: Reply with quote

Got the solution. Thanks!
I screwed up while compiling my kernel. I forgot make clean.
Now my internet sharing works. :D
_________________
Best regards,
CogSci
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