开发者

VPN IP Bind Option for OSX? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 5 years ago.

Improve this question

This is an OSX specific question. I have been googling my a$$ off, looking at OpenVPN clients like tunnelblick and viscosity. Obviously I'd like to use tunnelblick, but I have no problem paying a couple bucks for开发者_JS百科 viscosity if I must.

Question: Do either tunnelblick or Viscosity (or any OpenVPN gui for OSX) provide the option for ip binding? Or whatever you call the option that, when my connection to my VPN is down, I am disconnected from the internet completely?

(From what I can tell tunnelblick will alert you that your connection is down. Viscosity I know nothing about.)


I assume that you're setup to "send all traffic over vpn" (redirect-gateway def1)

If so, when you disconnect, all routes related to OpenVpn should be automatically deleted, so that your prior network is restored (net_gateway)

However if you want to Block Internet Access after OpenVpn disconnects, there are several options.

One way is to route default to your vpn_gateway (ie 10.80.0.25 in the below example)

sudo route add default 10.80.0.25

This can be done with a down script or through Viscosity's GUI.

Other approaches to solve this problem can be found here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜