Howdy, I'm wondering what is the best solution to add a command line to startup? I'm using FC5.
Here is the line :
Code:
iptables -t nat -A PREROUTING -s 192.168.0.0/255.255.255.0
-p tcp -m tcp --dport 80 -j REDIRECT --to-port 3128
-First option
Use iptables-save to save current state. Does it loads back by itself?
-Second option
Put the script into /etc/rc.d/init.d/scriptname
chmod 755
Then add a link into /etc/rc.d/rc3.d/S09scriptname
Just not sure which one to use.
Thanks