Score:0

Binding VPN server to distant local network through VPN tunnel for local traffic only

au flag

Apologies if the title is a bit cryptic - not sure how to phrase it better. Hope this is not a duplicate question.

  • 1/ I have an Open VPN server running on my local network, which I connect to when I need access to my NAS and other devices at home. This works well, but this is quite slow when it comes to accessing the internet, outside the local network.

  • 2/ Aside from that, I have another OpenVPN server on a distant hosted VPS, which I use regularly, for security purpose, when travelling, using public wifi, etc.

  • The issue is that, obviously, I always end up having to chose between having access to my local network with a slow internet connection, and having a fast(er) VPN connection using my VPS but without access to my local network.


My question is: How do I bridge my VPS server with my local network over a VPN connection so that the VPS is acting both as VPN client to the local network and as VPN server with a direct gateway to the internet? In other words, my goal is to have a single VPN tunnel enabling remote access to my local network while having an acceptable internet connection speed.

The way I understand it, I would have to configure my VPS VPN to direct all external traffic directly to the web, and direct all local traffic to my home-based network, probably through yet another VPN tunnel. Is this possible? Beside, is it an OpenVPN configuration issue or an iptables one?

This is what I want to achieve Diagram: This is what I want to achieve

Thanks!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.