Redirecting Port Failure
Posted: 2009/08/24 16:03:07
Hi to all:
I'm trying to redirect one port (8082) to another port (8080) in the same server, I'm putting this rule in the /etc/sysconfig/iptables file:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8082 -j REDIRECT --to-port 8080
And when I'm going to restart the iptables service, the system shows me this message:
iptables-restore v1.2.11: Line 49 seems to have a -t table option.
Error occurred at line: 49
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
What's wrong ? How can I do fix it ?
I'm trying to redirect one port (8082) to another port (8080) in the same server, I'm putting this rule in the /etc/sysconfig/iptables file:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8082 -j REDIRECT --to-port 8080
And when I'm going to restart the iptables service, the system shows me this message:
iptables-restore v1.2.11: Line 49 seems to have a -t table option.
Error occurred at line: 49
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
What's wrong ? How can I do fix it ?