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 |
I use fedora myself, and I can do it two ways:
# /etc/init.d/iptables save or to use iptables-save you must supply an output file: # iptables-save > /path/to/firewall/rules |
All times are GMT -5. The time now is 06:49 PM. |