[HOW TO] from your intranet, use your public site as a VPN with ssh

Issues related to configuring your network
Post Reply
aegersz
Posts: 86
Joined: 2016/04/04 07:42:58

[HOW TO] from your intranet, use your public site as a VPN with ssh

Post by aegersz » 2017/07/21 12:51:37

This is an old subject but since i managed to implement it, i thought i would post my experience on here. I'm impressed with ssh lately.

I wanted to use a different IP address for my browsing. I have my own site on the 'net called, for example, my-public-site with IP address of 1.2.3.4, for example. it's firewall permits ssh by a tight IP address range.

I use my mobile phone for my entire home wired network because I am bit tight and yet resourceful. I have a CentOS 6.9 firewall/router/SQUID forward proxy [192.168.137.1] that has a WiFi/USB connection to a 3G router or my 4G phone on one interface and Ethernet (to my intranet via 192.168.137.2 -> WAN port of a real router and then to 192.168.0.xxx) on the other. On it, i run this:

ssh -D *:8090 my-public-site and wait until it connects you. you end up logged in to my-public-site.

Then I use Firefox (from anywhere on my intranet, 192.168.0.110 in this case) as it has robust SOCKS v5 support ... go to: Options > Advanced > Network > Connection > enter in your SOCKS Host (192.168.137.1) and Port (8190).

I then search for "myip" in the browser and it says 1.2.3.4.

gmail and hotmail will complain about your new "face". Enjoy !

Post Reply