[CentOS] Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?
Always Learning
centos at u68.u22.net
Tue Jun 21 14:46:29 UTC 2016
On Tue, 2016-06-21 at 16:24 +0200, Alexander Farber wrote:
> *nat
> :INPUT ACCEPT
> :OUTPUT ACCEPT
> :PREROUTING ACCEPT
> :POSTROUTING ACCEPT
> -A PREROUTING -p tcp --dst 144.76.184.154 --dport 8080 -j REDIRECT
> --to-port 80
http://www.karlrupp.net/en/computer/nat_tutorial
# IMPORTANT: Activate IP-forwarding in the kernel!
# Disabled by default!
$> echo "1" > /proc/sys/net/ipv4/ip_forward
~~~~~~~~~~~~~~~
Is that a solution ?
--
Regards,
Paul.
England, EU. England's place is in the European Union.
More information about the CentOS
mailing list