[CentOS] iptables local forwarding
maxhetrick at verizon.net
Thu Oct 23 13:28:25 UTC 2008
Tom Brown wrote:
> I am trying to forward port 80 to 8080 locally using iptables with the
> /sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT
> --to-port 8080
> However this does not get put into the iptables configuration even after
> running iptables-save
> Have i missed something along the way?
Try adding it manually to the iptables config.
# vim /etc/sysconfig/iptables
And then restart iptables.
More information about the CentOS