View previous topic :: View next topic |
Author |
Message |
guru4u n00b
Joined: 02 Jan 2003 Posts: 12
|
Posted: Sun Jan 05, 2003 5:09 am Post subject: IPtables don't work |
|
|
I need IP MASQUERADING after having troubles with module dependices
decide to go all in kernel
1 network packet filtering(ip_tables.o?)
2 ip_conntracking
3 ip_tables_nat
obvisouly this fix depmod(all in kernel)
but when I do this
iptables -A FORWARD -s 192.168.0.0 -i eth0 -o ppp0
I get this
modprobe: Can't locate module ip_tables
iptables v1.2.7a: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
????????????????
I thought that was copiled in!!!
and When I do this
iptables -t nat -A POSTROUTE -s 192.168.0.0 -o ppp0 -j MASQUERAD
I get this
iptables v1.2.7a: Couldn't load target `MASQUERAD':/lib/iptables/libipt_MASQUERAD.so: cannot open shared object file: No such file or directory
does this mean I need to recompile iptables with a special MASQ flag? cause that file is on my computer
Thanks
Z- _________________ Redhat is to windowish*
Debians software is anicant
slackware is pkg management hell
then there was gentoo
*windowish=doing bad things for no apparent reason |
|
Back to top |
|
|
Regor Guru
Joined: 06 Aug 2002 Posts: 545 Location: 39° 2' 48" N, 120° 59' 2" W
|
Posted: Sun Jan 05, 2003 9:58 am Post subject: |
|
|
Did you go througth The IP-Masqurade-HOWTO step-by-step?
I just built two NAT/MASQ boxen using it as a guide and had no major problems. I compiled in rather than making the stuff modular and it worked without complaint. Follow their guide for building a kernel and try the sample script they provide and you should be able to get it working with minimal fuss. If you've compiled in, comment out all the module loading parts of the example script.
If you've followed this guide and still aren't getting things to work, post again and we'll see if we can sort things out. |
|
Back to top |
|
|
|