Route all traffic except tun0 to docker #1

Open
opened 4 years ago by mahdi · 0 comments
mahdi commented 4 years ago

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

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

I want to run a primary VPN (tun0) and use lokinet over it. How can route my host traffic to lokinet docker except primary VPN (tun0) traffic 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
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: massivebox/dockerlokinet#1
Loading…
There is no content yet.