iptables port forward
I'm trying to forward port 80 to port 10080 for my dvarchive server.
I use this script.
/usr/sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 10080
/usr/sbin/iptables-save
This works fine until I restart my system. I'm guessing the Yast frontend to susefirewall2 or iptables is rewriting the file. How do I keep this as a permanant setting without adding this as a startup script(/etc/init.d/boot.local)?
Thanks
|