IPTABLES route, redirect, forwardc traffic

Posted by Anthony on Server Fault See other posts from Server Fault or by Anthony
Published on 2012-04-07T08:43:49Z Indexed on 2012/04/07 11:34 UTC
Read the original article Hit count: 252

Filed under:
|

I am trying to redirect traffic from one IP reached on a specific port to a website. For example I have two external ips, lets say 194.145.63.1 and 194.145.63.2 set on one network card as 194.145.63.1 - eth0 and 194.145.63.2 -eth0:1 mywebsite.com allows access only from 194.145.63.1 and I want to set my rules like if I hit http://194.145.63.2:8080 to open mywebsite.com trough 194.145.63.1.

Thanks in advance!

© Server Fault or respective owner

Related posts about iptables

Related posts about routing