You are not logged in.
Hey,
some of my programs require using a VPN connection to work, and I'm wondering, how one can instruct a specific program to only run on a specific network device. There are actually two possible scenarios (rather the desired ways to work):
1. I'm browsing the web, fetch my emails, etc. but program X must connect through a VPN, so all my traffic gets routed through the default adapter eth0/enp0s25, except X uses tun0/vpn0
2. I'm using a VPN by default, everything runs through tun0/vpn0, except program X must only be connected via eth0/enp0s25 in order to work.
Both cases happen to me and as of now I'm forced to either 1) route all other traffic through the VPN or 2) stop doing everything until program X can disconnect I can connect to my VPN again.
Can someone help me? Any suggestion would be highly appreciated!
Last edited by klenamenis (2014-11-01 18:41:49)
Offline
I just remembered this blog post that i read maybe it helps you, although is kind of complicated solution.
https://www.stgraber.org/2014/09/26/vpn-in-containers/
Maybe configuring some proxies in your computer???
Offline
Is not that all programs with a network connection may have a proxy configuration ?
do it good first, it will be faster than do it twice the saint
Offline
What programs exactly? "Some of my programs", "program X", etc is all a bit vague.
When I used a VPN, I made sure the right traffic went in the right direction by configuring the particular application e.g. I pointed irssi at 10.8.0.1, an irc server within the VPN, and in my fstab, I used 10.8.0.1 to mount the NFS shares within the VPN.
Offline
I think I'll try to accomplish it using network namespaces. No additional software required, "just" some ip and ifconfig lines.
I just remembered this blog post that i read maybe it helps you, although is kind of complicated solution.
https://www.stgraber.org/2014/09/26/vpn-in-containers/
Maybe configuring some proxies in your computer???
I already stumbled across network namespaces and LXC, vpn-container seems to be kind of a front end to that. Thanks for the link, though!
Is not that all programs with a network connection may have a proxy configuration ?
No, not all, and yes, but there is no possibility for me to use a proxy.
What programs exactly? "Some of my programs", "program X", etc is all a bit vague.
When I used a VPN, I made sure the right traffic went in the right direction by configuring the particular application e.g. I pointed irssi at 10.8.0.1, an irc server within the VPN, and in my fstab, I used 10.8.0.1 to mount the NFS shares within the VPN.
Sadly, they don't offer specific network configuration options.
Offline