Re: redirecting web requests from localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

-- 
Markus
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux