Wednesday, March 4, 2015

iptables - URL Redirect to IP on LAN








wOk here is what I need to do:



Listen on various ports and route to LAN IP addresses based on url and port.



So I have a number of domain names assigned to the same IP address and I need to redirect based on url–



Server1.domain.com:5902 --> 192.168.0.100:5902
Server2.domain.com:5902 --> 192.168.0.101:5902

Server1.domain.com:23 --> 192.168.0.110:23
Server2.domain.com:23 --> 192.168.0.111:23



I have an IIS server that does this kind of thing fine for http stuff but other ports are bupkis.



Can this be done sith squid or iptables or ????

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...