JP Vossen on 30 Jun 2009 10:35:23 -0700

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Find Open Ports

BUGFIXES in-line.

JP Vossen wrote:
>  > Date: Mon, 29 Jun 2009 21:07:17 -0400
>  > From: Casey Bralla <>
>  >
>  > My employer is very aggressive in closing off ports.  This makes it
>  > hard for me to access my home network from work.  Luckily, port 23 is
>  > open so I can ssh in, and of course, port 80 is left alone.
> As others have pointed out, SSH is 22, not 23.  But it doesn't really 
> matter if you have your SSHd listen on 23 or your firewall foes port 
> address translation (PAT) for 23 --> 22.

As Brian Vagnoni pointer out, doing this may be a violation of company 
policy.  I should have mentioned that, but I got caught up in the 
technical challenge.  :-)

SO.  For educational purposes only...

> Fortunately, there is a MUCH better and easier way to do what you want. 
> Since you said you can ssh, just use that.  SSH has this really cool 
> ability to create tunnels.  See my preso on the topic, which has 
> examples for exactly what you want! 
> My examples are for IMAP, but it's the same thing for your web servers. 
> Let's assume that you have 3 web servers at home, like so:
>     INSIDE            OUTSIDE, from work
>        << FW PAT 81
>        << FW PAT 82
>        << FW PAT 83
> So at work, use PuTTY, SecureCRT (on Win) or OpenSSH (on anything else) 
> and set up your port forwards.  See my PDF, but it would be something 
> like this for OpenSSH, just use the GUI on the other clients:
> ~/.ssh/config
>     Host home
>         HostName
>         Port 23
>         User root
>         Compression yes
>         ServerAliveInterval = 100
           # BUGFIXES for ending IPA and ports
           #               WORK   -->   Home LAN
           LocalForward localhost:81
           LocalForward localhost:82
           LocalForward localhost:83

Now, on your local machine at *work*, browse to http://localhost:81
to get to, etc.

Good luck,
JP Vossen, CISSP            |:::======|
My Account, My Opinions     |=========|
"Microsoft Tax" = the additional hardware & yearly fees for the add-on
software required to protect Windows from its own poorly designed and
implemented self, while the overhead incidentally flattens Moore's Law.
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --