[CentOS] iptables local forwarding
Max Hetrick
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
> following
>
> /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.
Regards,
Max
More information about the CentOS
mailing list