Route Traffic through a Private Network using Dynamic Port Forwarding and Proxy SwitchyOmega

December 20, 2021

If you have access to a machine or a gateway that is connected to a private network, you can then route your traffic through that machine and as a result, you have access to the private network. Here, we review a scenario that you can ssh into a machine (a gateway) that is connected to the private network, and then using a chrome extension named Proxy SwitchyOmega, we route a portion of your browser’s traffic through the gateway.

Getting Started

SSH to the gateway

Assuming the address of the gateway is and we have credentials to log in. We are going to use port 1200 when we open an ssh connection. For Linux and Windows:

ssh -D1200 <username>

In Windows, you need to use Putty to open an SSH connection. I assume you are familiar with Putty and know how to create an ssh connection. In order to configure a dynamic port forwarding, follow the steps below:

port forwarding using puuty windows
Modified image taken from

Proxy SwitchyOmega

After a successful log in to the gateway, now you can configure the Proxy SwitchyOmega to route all or a portion of your traffic through the gateway and hence, access the private network. Assume you would like to route traffic destined to network. That is all IPs ranging from to Then:

Proxy SwitchyOmega
1) From the left menu, modify the existing proxy profile like the image above. Configure Protocol and Server and Port accordingly, then click on Apply changes.
Proxy SwitchyOmega
2) Click on New profile and create a Switch Profile.
Proxy SwitchyOmega
3) Configure Connection Type, Connection Details and Profile accordingly. Click on the Apply changes then.
Proxy SwitchyOmega
4) Select the profile you created in the previous steps (auto ssh) to enable forwarding your traffic with any host within through the gateway.
Proxy SwitchyOmega
Yey! You can access an internal IP just like when you are connected to a private network!

That’s it!

Networking SAVI Linux