Sunday, 1 April 2018

How to route internet connection through teamviewer's VPN?


I'm trying to VPN to my home computer using teamviewer.


i can connect successfully and can easily see the shared files/folders. But I also want my internet to go through this vpn connection so that I have access to my home's internet connection.


Does anyone know how to do this in Windows 7 ?


Thanks in advance...



Answer



Basically you need a solution to router the internet requests from your current computer (ouside your network), through your VPN and to your local network (and its internet access).


Using Teamviewer's VPN, you only get a direct connection between your current computer and the computer running Teamviewer (or a "private" network between them I could say). So, I believe you don't actually have access to your local network.


The only way you could have access to the internet on your network is through a proxy. The computer, inside your network, would receive requests over Teamviewer's VPN network and act as a proxy to your local network.


Here is how I accomplished that:


On the computer inside your network:



  1. Download and install a proxy server on your computer running Teamviewer server, inside your network. I suggest using Squid.

  2. Set up your proxy server and make sure it will accept all incoming requests, including from the Teamviewer VPN network (not a local network). I just gave access to "all" in "/etc/squid.conf" in the proper configuration parameters (please refer to the proper documentation).

  3. Initialize the proxy.

  4. Make sure Teamviewer is running as a service and that VPN connection is enabled.


On the computer outside your network



  1. Make sure you are connected through the Teamviewer VPN connection

  2. Go to your web browser proxy settings and set parameters same as below

  3. Surf the web using your private network's internet access.



proxy server: hosname or IP (you can used the IP address given by Teamviewer, but hostname is best)
connection port: 3128 (Squid's default port)


Use the same server for all protocols


PS.: You can setup a proxy server for the whole computer, using Internet Settings (IExplorer and Chrome), but Mozilla Firefox supports a "private" configuration, allowing you to surf the web via proxy only inside Firefox.



No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...