1
General Discussion / Re: OpenVPN TAP all traffic through the tunnel
« on: June 08, 2019, 01:41:37 am »
Ok, everyone, SOLVED!
I browsed some very old threads and turns out that Mac OS (and I think Linux too) needs some time to negotiate DHCP addresses, so if the route is pushed before the machine gets the IP address, the routing table becomes a mess.
SOLUTION
Adding a delay to the route
Or
Where n is the value in seconds,
(I set 15 but you should do your own tests)
Windows has this value set to 30 by default while Mac OS (and I think Linux too) has 0 by default.
Maybe this solution was obvious but since I didn't found a TAP road warrior / all traffic through the tunnel guide anywhere, it took me some time.
Hope this is helpful to someone else too.
Bart, thank you for the support and troubleshooting tips!
I browsed some very old threads and turns out that Mac OS (and I think Linux too) needs some time to negotiate DHCP addresses, so if the route is pushed before the machine gets the IP address, the routing table becomes a mess.
SOLUTION
Adding a delay to the route
Code: [Select]
route-delay n
(In the client config file)Or
Code: [Select]
push “route-delay n”
In the server config file / advanced configuration in OPNsense (hoping that it won't be removed in a future release)Where n is the value in seconds,
(I set 15 but you should do your own tests)
Windows has this value set to 30 by default while Mac OS (and I think Linux too) has 0 by default.
Maybe this solution was obvious but since I didn't found a TAP road warrior / all traffic through the tunnel guide anywhere, it took me some time.
Hope this is helpful to someone else too.
Bart, thank you for the support and troubleshooting tips!