Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


Closed Thread
  Search this Thread
Old 12-22-2011, 10:32 AM   #1
LQ Newbie
Registered: Oct 2011
Posts: 26

Rep: Reputation: Disabled
ssh port forwarding to get around websense

The title explains a lot. I have linux installed on my USB (I just can't use windows anymore) so that I can use it at school. The other day I read an article where a man used port forwarding to get around hotel firewalls blocking his email. I was wondering first of all if I can use this to get around websense (that pain-in-the-*ss government web blocker at school that blocks pretty much all useful sites) by port forwarding through my laptop, and secondly, since this is important in this situation, how to ssh to my laptop from any computer with an internet connection (still can't get this to work, I think it's because I haven't configured openssh properly).

Okay then, so yeah, thanks
Old 12-24-2011, 01:03 PM   #2
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
It sounds like you have 2 separate problems that you want to resolve, with one depending on the other:

1. Be able to connect to your laptop from a remote location through the internet.
2. Use ssh tunneling to send web traffic through your laptop to bypass any restrictions from your current location

To solve issue 1, you will probably want to be able to connect to your home computer without having to remember a (probably dynamic) ip address, you can use one of the free dynamic dns services such as or Your home router may already have the capability to update these services automatically when your home ip address changes. Then enable either a dmz to your ssh server or specify port forwarding for the ssh service.

To solve issue 2, set up an ssh tunnel, then set up your web browser to use the ssh tunnel. Here is a tutorial for how to do that:

Note that the remote location that you are trying to connect from may very well block port 22 as well. You can modify the ssh server running from your home server to use a port that is not blocked (probably port 80).
Old 12-24-2011, 02:28 PM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Evading your school's firewall could be harmful to your schools network, and as such violates rule #14. This thread is being closed.

Closed Thread

remote login, ssh forwarding, ssh remote, web

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Port number used by server when using dynamic port forwarding in SSH? kreeder Linux - Networking 4 11-21-2011 02:07 PM
port forwarding with ssh lothario Linux - Networking 1 06-19-2010 08:47 PM
ssh port forwarding simpl Linux - Software 3 07-20-2006 01:41 AM
SSH Port Forwarding wwnexc Linux - Networking 4 09-29-2005 01:26 AM
Port forwarding for ssh Adriaan Linux - Networking 1 03-08-2004 09:11 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration