خرید بک لینک

I currently have a webserver that is behind a workplace firewall (so I cant access anything if im not behind that network). Currently this server (lets call it ServerA) has a website configured at port 8080, so if i got to ServersA local ip address when im behind the workplace firewall (localip:8080) I get served the webpage and everything is good.

Now I want to access this webpage when im at my home network. My home network has a ServerB sitting on it which I want to use as a relay. Currently I have successfully SSHed into ServerA this way by doing the following on ServerA

ssh -f -N -T -R 2828:localhost:22 user@my_public_home_ip

so when i ssh into ServerB I simply do

ssh -p 2828 ServerA_useame@localhost

and I succesfully SSH into ServerA behind the firewall.

So I essentially want to do the same thing but for the webserver. So on my home network router I have opened port 8888 to direct to ServerB, and on ServerA I try this

ssh -f -N -T -R 8888:localhost:8080 user@my_public_home_ip

but when i try to go to my_public_home_ip:8888 it does not show the webpage on ServerA and simply shows dropped coection in the browser.

My guess is that ServerB is not configured to handle the HTTP request being fowarded to it on port 8888, so im guessing some magic has to be done on serverB to send the HTTP request through the SSH tuel to ServerA and back?

Any help is appreciated!

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 14 مرداد 1395 ساعت: 9:34

صفحه بندی