You are not logged in.
Hello,
My goal is to run certain programs (like my IRC and torrent clients) under a VPN (most likely OpenVPN) while the rest of the traffic on my system goes through the network as usual. I have tried to use vopono but I'm currently unable to get it working properly in a configuration which satisfies me, see the issue I created for more info.
Ideally I want to be able to create discrete systemd units for the namespace as well as the programs I want to run under that namespace which routes all traffic through a VPN.
I know that I can use Docker etc. to create a whole new OS environment but I really don't want to do that. I just want something that I can use directly on my system.
I've tried to figure out how to do this but my network knowledge is very rudimentary so I'm confused, so please guide me through this process.
Thanks in advance!
Offline
Discussion from IRC for reference:
[08:49:07] <Edu4rdSHL> TheDcoder, ip netns will help you
[08:50:37] <TheDcoder> Edu4rdSHL: I tired to understand name spaces but it kind of went over my head, lol
[08:50:58] <TheDcoder> So I need more info that I can digest
[08:51:44] <Edu4rdSHL> TheDcoder, here's a simple tldr https://linuxhint.com/use-linux-network-namespace/
[08:51:45] <phrik> Title: How to Use Linux Network Namespace (at linuxhint.com)
[08:52:17] <Edu4rdSHL> You can even run your vpn directly on the network namespace and just run the programs there with ip netns exec $network_namespace $commandOffline
I just found an article on the internet which literally addresses this exact question!
https://kitsunemimi.pw/notes/posts/putt … a-vpn.html
I will try it soon and report back if there are any issues ![]()
Offline
Another solution at https://gist.github.com/brauliobo/94ac3 … 8d0a1da207
Offline