How To: Automatically remove Tunnelblick route after disconnect

Tunnelblick has been working great except for one problem. On macOS 10.11.6 I need to manually delete the route after I change gateways (home vs school vs coffee shop)

I have been using

  • sudo route delete <ip address or dynamic URL to server> 

But found the issue on the github page and the solution


  • Comment out these 2 lines in my .ovpn
    • fileuser nobody
    • group nogroup
  • Why this works?  the route is set up as root, but when the connection is taken down the user is no longer root, so the route can’t be deleted

Related Articles: