robbp86
By:
robbp86

How to route all droplet traffic through my residential IP address?

November 21, 2015 2.2k views
Networking VPN Linux Basics Ubuntu

I've setup a Ubuntu 14.0.4 droplet and have used vncserver to setup an XFCE desktop environment on the droplet. I've also installed firefox on the desktop environment and would now like to route all the firefox traffic through my residential IP address, if that makes sense. To elaborate, my droplet has IP address 159.202.xx.xx, and my home IP address is 99.103.xx.xx. If I visit whatismyip.com using the firefox browser on my droplet, the IP address shows up as 159.202.xx.xx, but I want to connect my droplet to my residential IP address and route all traffic through there via proxy, so that when I visit whatismyip.com on the firefox browser on the droplet, it will display my residential IP address.

Sorry for the noobish question. I believe this should be possible by setting up a SOCKS proxy from the vncserver droplet to my personal laptop at home, but I'm not sure how to do this. Any help in accomplishing this would be much appreciated.

1 comment
  • Hi Rob,

    I'm a new droplet user. I am currently running a Squid proxy server to monitoring outbound port 80 traffic on my network. I can't answer your question thoroughly, but broadly let me say:

    One way to do this:

    Run a proxy server on your home network behind 99.103.xx.xx. It will need its access list to be configured to accept requests from your droplet. Be careful about having an open proxy server; anyone that finds it can pose as 99.103.xx.xx when connecting somewhere else.

    You can configure the firefox browser on your droplet to use the proxy server on your lan behind 99.103.xx.xx. Only firefox would be routed through the proxy, not all droplet traffic.

    Another way to do it

    Create an SSH tunnel from your droplet to your laptop, and use the built in SOCKS proxy feature.

    (Your laptop will need to have an ssh server.)
    From your droplet, create an ssh tunnel and SOCKS proxy to your laptop using port 5678 (or your port of choice):

    ssh -D 5678 laptop@99.103.xx.xx

    Then on your droplet, go into Firefox and configure the proxy settings to use "localhost" port 5678.

    If it works you should then see 99.103.xx.xx from Firefox on your droplet at whatismyip.com

    If you get it all working properly, please share!

1 Answer

This question was answered by @dusty225:

Hi Rob,

I'm a new droplet user. I am currently running a Squid proxy server to monitoring outbound port 80 traffic on my network. I can't answer your question thoroughly, but broadly let me say:

One way to do this:

Run a proxy server on your home network behind 99.103.xx.xx. It will need its access list to be configured to accept requests from your droplet. Be careful about having an open proxy server; anyone that finds it can pose as 99.103.xx.xx when connecting somewhere else.

You can configure the firefox browser on your droplet to use the proxy server on your lan behind 99.103.xx.xx. Only firefox would be routed through the proxy, not all droplet traffic.

Another way to do it

Create an SSH tunnel from your droplet to your laptop, and use the built in SOCKS proxy feature.

(Your laptop will need to have an ssh server.)
From your droplet, create an ssh tunnel and SOCKS proxy to your laptop using port 5678 (or your port of choice):

ssh -D 5678 laptop@99.103.xx.xx

Then on your droplet, go into Firefox and configure the proxy settings to use "localhost" port 5678.

If it works you should then see 99.103.xx.xx from Firefox on your droplet at whatismyip.com

If you get it all working properly, please share!

View the original comment

Have another answer? Share your knowledge.