Score:0

Route all traffic to docker except tun0

in flag

I want to connect to a primary VPN (tun0) and use secondary vpn (docker) over it. How can route my host traffic to docker except primary VPN (tun0) traffic

I can't use vpn-chain instead of docker, the secondary VPN is Lokinet. Primary VPN however is an OpenVPN profile with static IP remote server address

Current route output:

$ route 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    50     0        0 tun0
default         _gateway        0.0.0.0         UG    600    0        0 wlan0
5.253.204.153   _gateway        255.255.255.255 UGH   600    0        0 wlan0
10.7.112.0      0.0.0.0         255.255.255.0   U     50     0        0 tun0
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
192.168.43.0    0.0.0.0         255.255.255.0   U     600    0        0 wlan0
_gateway        0.0.0.0         255.255.255.255 UH    600    0        0 wlan0

Noob friendly please

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.