Step 1. Find out which IP address this www.forbidden-web.com site has. You can use nslookup, host or dig commands for that, e.g.
$ nslookup www.forbidden-web.comIn this example, you are interested in the last line, i.e. IP address f.f.f.f.
Server: name_or_ip_address
Address: some_ip_address_and_port
Name: www.forbidden-web.com
Address: f.f.f.f
Step 2. Edit your local /etc/hosts file and add the following line in it.
Step 3. Create tunnel:127.0.0.1 www.forbidden-web.com
ssh -L 80:f.f.f.f:80 remoteuser@o.o.o.oYou have to be root in order to run that command. Furthermore, if the target site is accessed via https instead of http, change both number 80 into 443.
Step 4. Open Web browser and try to access forbidden Web site.
And that's it, you are done.
Of course there are some gotchas. For example, if the site you managed to access references some other forbidden site, then things won't fully work. Also, if it switches between protected (https) and unprotected (http) access you'll have problems using this simple method. Still, you can basically get around all those problems in many cases using variations of the previously given procedure.
No comments:
Post a Comment