Score:0

Linux connect to OpenVPN but leave a separate local connection

ca flag

I'm trying to create a Debian server where one connection is to an OpenVPN VPN and another is direct. I've got a VPS in the cloud but it's only got a single Ethernet NIC (does that matter?). I'm only using the VPN connection to backup the VPS drives to my SMB drives, and I want everything else to go thru a non-tunneled connection.

How can I do this?

Is there a way I can direct which internet interface a command on the terminal goes through?

Score:1
ar flag

It's generally called split routing.

You'd have to set up a routing table, telling your operating system that the backup target is reachable over VPN, and the rest of the internet is reachable via some other means.

tymur999 avatar
ca flag
I'll look into this
tymur999 avatar
ca flag
Thanks. I used `route no-pull` in my client.conf file which meant that routes were not pulled from the server. Then I explicitly defined my routes, of which I only defined my LAN, so the rest would go through normally. Thanks again
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.