{"id":876,"date":"2017-03-16T10:15:19","date_gmt":"2017-03-16T14:15:19","guid":{"rendered":"https:\/\/www.devolve.net\/blog\/?p=876"},"modified":"2018-07-13T10:24:18","modified_gmt":"2018-07-13T14:24:18","slug":"tunnelblick-disconnect-fails-to-remove-route","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/tunnelblick-disconnect-fails-to-remove-route\/","title":{"rendered":"Tunnelblick disconnect fails to remove route"},"content":{"rendered":"

Tunnelblick is an awesome OpenVPN client, which I have been using a lot lately on my Mac. I had a problem where it would connect the first time just fine, but then would never reconnect; it would seem to hang while trying to handshake with the server. I could get it to work again if I rebooted my machine, but that’s powerfully inconvenient.<\/p>\n

TL;DR<\/strong> temporary fix:
\nOn disconnect, Tunnelblick fails to remove a static route it used while active. I created a script that I run after disconnecting which drops the static route. It basically just does this:<\/p>\n

sudo \/sbin\/route -n delete SERVER_IP\/32 192.168.0.1<\/pre>\n

The 192 address makes an assumption that you didn’t customize that part of the config, so YMMV.<\/p>\n","protected":false},"excerpt":{"rendered":"

Tunnelblick is an awesome OpenVPN client, which I have been using a lot lately on my Mac. I had a problem where it would connect the first time just fine, but then would never reconnect; it would seem to hang while trying to handshake with the server. I could get it to work again if […]<\/p>\n","protected":false},"author":3,"featured_media":877,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[34,15,17,23,30,46],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/876"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=876"}],"version-history":[{"count":3,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/876\/revisions"}],"predecessor-version":[{"id":880,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/876\/revisions\/880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media\/877"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}