On 28.Aug.2013, at 21:49, Miguel González wrote:
So, how can I redirect for instance 443 traffic to a specific IP to the local IP address of the local server? I have tried this:
iptables -t nat -A PREROUTING -d XXX.XXX.XXX.XXX -p tcp --dport 80
-j DNAT --to YYY.YYY.YYY.YYY
I think you has to do POSTROUTING anyway, check the port, it is wrong at least in your post - 80 vs. 443
or
dummy interface, in ifcfg-dummy, something similar to this:
DEVICE=dummy BOOTPROTO=none ONBOOT=yes TYPE=Ethernet NETMASK=255.255.255.255 IPADDR=XXX.XXX.XXX.XXX