Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

how to transparently forward

203.131.xxx.xxx:8443 
to 
173.236.xxx.xxx:443

can ignore the certification error, just need to change the port number, and let web page content to be display in browser

we CANNOT manage the low level of 173.236.xxx.xxx

  • shall we use iptable?
share|improve this question

migrated from stackoverflow.com Jun 8 '12 at 8:46

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 2 down vote accepted

I would use iptables:

iptables -t nat -A PREROUTING -p tcp -m state --state ESTABLISHED,RELATED,NEW -d 203.131.xxx.xxx --dport 8443 -j DNAT --to-destination 173.236.xxx.xxx :443

share|improve this answer

It can be done at a packet level with iptables or at the application level with a load balancer like HAProxy

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.