Click to See Complete Forum and Search --> : IPtables acting very wierd


vrek
08-09-2003, 12:14 AM
I have 2 problems with IPtables. The first is I set up a script to activate net sharing and my proxy server on start up. First the sharing then the proxy. I put it in /etc/rcS.d/S99netsharing. Well, the request for iptables to masquerade is denied saying it doesn't have permission yet the one to redirect all on port 80 to port 3150(proxy port) goes through fine. I have to manually start the sharing. Why is this and how can I fix it?

My second problem is that I can use IPtable fine. It all works and everything is perfect. Yet when I do iptables -L or iptables -a anything it says there is no iptables module nor in the kernel(I compiled it in). What is going on? How can I resolve this?

je_fro
08-09-2003, 01:10 AM
You have to do a lot of iptables stuff as su.

vrek
08-09-2003, 01:48 PM
This is as root.

Jinx
08-11-2003, 07:47 PM
iptables -t nat -L

I am guessing this will show a prerouting rule to redirect any source port 80 to your local proxy server port.

Prerouting happens before a routing decission, so in the case of port 80, it will then enter your INPUT chain, not the FORWARD chain, as it's destination is being changed to the local proxy server?

Hope that helps.

Cya round
Jinx

kam
08-11-2003, 08:56 PM
Originally posted by vrek
My second problem is that I can use IPtable fine. It all works and everything is perfect. Yet when I do iptables -L or iptables -a anything it says there is no iptables module nor in the kernel(I compiled it in). What is going on? How can I resolve this? modprobe ip_tables Then post the output of:iptables -L