Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IPtables don't work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
guru4u
n00b
n00b


Joined: 02 Jan 2003
Posts: 12

PostPosted: Sun Jan 05, 2003 5:09 am    Post subject: IPtables don't work Reply with quote

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


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Sun Jan 05, 2003 9:58 am    Post subject: Reply with quote

Did you go througth The IP-Masqurade-HOWTO step-by-step? :idea:

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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