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 need to forward everything that comes to proxy.www.some.domain:80 to
it is for forwarding ssh connection cause some of my friends are sitting behind very restrictive firewall which allows only connections to port 80

is there any solution for that ?

share|improve this question
what are you in china? – Marm0t Nov 14 '10 at 5:40

ssh-http-tunneling is what you are looking for. Hope this helps you and your friend!

share|improve this answer
I was going to suggest pretty much the same thing, but you beat me to it! – Steven Monday Nov 14 '10 at 6:08

This should work ( not 100% sure, i wrote it on my iphone hehe)

iptables -t nat -A PREROUTING -p tcp -i eth0 -d --dport 80 -j DNAT --to

iptables -A FORWARD -p tcp -i eth0 -d --dport 22 -j ACCEPT

share|improve this answer
well this isn't what i need cause now with this everything on port is redirected to ssh. Even my normal website on www.some.domain and i wan't only connection to proxy.www.some.domain to be redirected... – Dawid Nov 14 '10 at 4:33
Just simply put some source information in the forward statement so it only forwards that ip. – Arenstar Nov 14 '10 at 4:39

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.