Take the tour ×  I have three EC2 instances. I'd like to route
all http requests to one machine and all ssh traffic on the
standard port to another. The third machine will be used for
routing, but only has one interface: eth0. The idea is that the
user gets a single endpoint URL for both http and ssh requests.
Right now I have to use a subdomain for the ssh box, which makes
commands quite long.  Is there a way to set this up with
IPTables? I've tried to set this up with a forward rule, but
when trying to ssh in via an external network, the connection
times out.  share|improve this question Ho< did the forward rule
you tried look? –  Bart De Vos Jun 20 '11 at 8:04 add comment  1
Answer  Port forwarding is usually done for machines that are
hidden behind a firewall and not otherwise directly accessible.
In order to work properly, it requires some form of NAT, which
by the sounds of it isn't going to be there in your case. That
will make such a setup very awkward.  Effectively you would need
to make it such that