Home    | Software    | Articles    | Tips'n Tricks    | Contacts    | Support Us  
Home arrow Tips'n Tricks arrow Linux arrow Tunneling Intranet Web Pages

Tunneling Intranet Web Pages

Basically the way to go is the same exposed here.
So, supposing that the firewall IP is X.X.X.X , that we have an ssh account on it(with username = user, i.e), and that our web server behind it has IP Y.Y.Y.Y ,from the command line we'll type:

ssh This e-mail address is being protected from spam bots, you need JavaScript enabled to view it -L 9080:Y.Y.Y.Y:80

Now, pointing your browser to :
http://127.0.0.1:9080
you'll be shown your remote web server default page.

One problem could arise if your remote web server defines virtual hosts(multiple web sites with different name but same IP). In this case your call will be resolved as to always take you to the default site hosted on the web server. A simple solution is to edit your /etc/hosts . For example, if your remote web server hosts 2 web sites named: firstsite.home and secondsite.home, ensure that you have the following line in your /etc/hosts file :

127.0.0.1 localhost firstsite.home secondsite.home

Now calling http://firstsite.home:9080 from your browser should resolve correctly.
 
< Prev   Next >

  Articles RSS feed

Latest Articles
Latest Software
   
designed by allmambo.com