Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Elastic IP on AWS that I want to forward to a Public IP outside of AWS.

Any ideas how I could accomplish this?

share|improve this question
You'd need to have na instance running at the AWS IP, but you could proxy everything to the second IP via iptables.… Not sure why you wouldn't want to just use the real public IP, though. – ceejayoz Mar 14 '13 at 15:16

as @ceejayoz mentioned, iptables can do the redirection on layer 3/4, however, if you are serving up a tcp protocol, such as http, you could use haproxy or nginx to redirect on layer 7, and that would allow you more fine-grained control (ie. url rewriting, etc)

share|improve this answer

Depending what is behind the EIP you could use local port SSH tunneling.

This does assume you have a linux box running behind the EIP. If you have an EIP alone and no EC2 behind it, I don't think you will be able to, besides, its seems like a strange problem to be trying to solve, what are you actually trying to do?

share|improve this answer

Your Answer


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.