Quoting Stiven Andre, from the post of Wed, 27 Nov: > Hi List. > > I have my home network being masqueraded by linux router(RH8.0). > Network topology: > Linux router(192.168.1.1): eth0 to LAN, eth1 to adsl modem. > LAN = 192.168.1.*
> I wrote iptables script that masquerades my network, but the problem is > when I run the script from the first time from /etc/rc.d/rc.local it works. > But if I then rerun it manualy (by root of couse) it stops working. Inside > hosts don't have access to the internet. My script does clear all old rules > at the start of it but it doesn't help or else... maybe it's not doing a very thorough job. did you try and have a look at my script? http://ira.abramov.org/linux/ADSLnetfilter.init or if you like syntax highlighting: http://ira.abramov.org/linux/ADSLnetfilter.init.html > I tryed to clear all old rules manualy and then run the script, no luck > still not working. I tryed to unload all iptables modules then "insmod > ip_tables" and after that to run the script again, nothing it doesn't help how are you trying to clear the rules? see how I'm doing it and compare. note I'm using a separate script, rc.local is not the right place... > too... Can someone understand what is going on ? Why it works only the > first time ? After the second excution the rules are seem to be the same > but inside hosts can't ping internet. and the gateway can? -- A ticking time-bomb Ira Abramov http://ira.abramov.org/email/ This post is encrypted twice with ROT-13. Documenting or attempting to crack this encryption is illegal.
msg23560/pgp00000.pgp
Description: PGP signature