Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    thanks so much! But how do you make sure certain applications only connect to the internet via the namespace in which vpn is running? Commented Mar 3, 2020 at 17:23
  • Use ip netns exec vpn yourcommand and make sure yourcommand is never run by itself. If you want to make completely sure it is never run by itself, you can make a bash script named yourcommand that runs ip netns exec vpn yourcommand and put it at a higher precedence in your PATH. Commented Mar 29, 2020 at 1:55