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.

3
  • This will very much depend on the type of network manager you're using. If this is the regular Network-Manager", you can just add a route for that IP towards the regular gateway via UI. If you have the CLI only run with "ip route add". "Like ip route add 192.168.200.200/32 dev eth0".
    – boro
    Commented Mar 17 at 0:30
  • But will this directu all traffic to a sever to eth0? I want other apps on the server to route through tun0 and others through eth0
    – bcsta
    Commented Mar 17 at 9:06
  • As that web app will likely not make its own routing decision but tell the OS to do it, it will likely be that way. However, your route defining the API IP (which may not be static) is unlikely to be used by other applications.
    – boro
    Commented Mar 18 at 21:13