View previous topic :: View next topic |
Author |
Message |
CogSci n00b
Joined: 05 Jun 2003 Posts: 19 Location: Whidbey Island
|
Posted: Thu Jun 05, 2003 5:19 am Post subject: iptables problem |
|
|
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 |
|
|
Highlands Guru
Joined: 22 Apr 2003 Posts: 366 Location: Sundsvall, Sweden
|
Posted: Thu Jun 05, 2003 6:50 am Post subject: |
|
|
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 |
|
|
CogSci n00b
Joined: 05 Jun 2003 Posts: 19 Location: Whidbey Island
|
Posted: Thu Jun 05, 2003 11:41 pm Post subject: |
|
|
I'm pretty sure that I compiled it into the kernel, - not as module. Was this wrong? _________________ Best regards,
CogSci |
|
Back to top |
|
|
mfairchi n00b
Joined: 23 Apr 2002 Posts: 57 Location: Ventura, California
|
Posted: Fri Jun 06, 2003 6:36 am Post subject: |
|
|
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 |
|
|
mfairchi n00b
Joined: 23 Apr 2002 Posts: 57 Location: Ventura, California
|
Posted: Fri Jun 06, 2003 7:02 am Post subject: |
|
|
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 |
|
|
CogSci n00b
Joined: 05 Jun 2003 Posts: 19 Location: Whidbey Island
|
Posted: Sat Jun 07, 2003 1:21 am Post subject: |
|
|
Got the solution. Thanks!
I screwed up while compiling my kernel. I forgot make clean.
Now my internet sharing works. _________________ Best regards,
CogSci |
|
Back to top |
|
|
|