How to access your office PC if you forgot to set port forwarding

It is not very common that you would have a DNZ at the office pointing to a Linux server with openssh-server installed, but if you do, this will allow you to use that PC as a proxy to access your internal network.

Yesterday, While changing the router (A small office Linksys router) for some reason that i can not remember, or simply because i like to switch stuff for no known reason, i forgot to redirect port 3389 which is the default for RDP to my computer ! damn it, now i can not access my PC tonight, and with this insomnia, life is not much fun without my PC !

So, the DMZ or demilitarized zone on the router points to a linux machine inside my network, so the plan now is to access the network through that machine, open the router settings page that is only accessible from within the network, Point the RDP port to my PC, and get on with my life.

How i plan to do that is simple, openssh-server is already installed on the linux machine that the DMZ points to !

Putty is an application that allows me to connect, and then use it as a socks proxy !

Here is a screenshot of the steps i need to do with putty

The steps are as follows

Open Putty…

In Hostname or IP address, put my office IP address, in Saved sessions i enter MyOffic
On the left go to Connection > ssh > tunnels and enter the info as follows

Source port 9999
Change local to dynamic
Click Add
you should now see D9999 in the list
Go back to Session at the top of the list on the left, Click save again, we are done with putty, connect and login to the remote PC…

Now open firefox then tools > options > Advanced tab > Network subtab > Settings button under Connection > manual proxy configuration, then fill in 127.0.0.1 into socks host, chose socks V5 radio button, and port 9999 (because we chose it with putty)

Ok yourself out of the menus and point your browser to the router on the office network, there we are, my office router accessed from home !

Added RDP port 3389 to the forwarding list so that it forwards Remote Desktop Connections to my own PC at the office, And it works, Now i can get the password to my wordpress blog :)

This entry was posted in Networking, Routers. Bookmark the permalink.

One Response to How to access your office PC if you forgot to set port forwarding

  1. Pingback: KIRK

Leave a Reply