hi all

i have just managed to setup my linux box as a gateway for my windoz network

however, i had to manualy type in the iptable commands and these are lost on a reboot

i have tried, very unsuccesfully to have a go at a script, the only one i can get to work is

'hello world'!!

could some one show me how to set a script up which does this, and then tell me where to shove it!! should it go in /etc/5rc.d??

iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain

iptables --table nat --append POSTROUTING --out interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

at the moment i have to be root at a prompt in /sbin to get this going

cheers in advance m