Openvpn连接没反应

今天想用Openvpn连到集群里面,但是一直没用反应,等待许久之后提示/var/run/Shimo/configs/xxxxb7591f.ovpn不存在,刚开始以为是Shimo配置文件的问题,清理Shimo无效。

查看线程 ps -ef | grep ovpn

    0  1602     1   0 12:39AM ??         0:00.14 /Applications/Shimo.app/Contents/MacOS/openvpn --config /var/run/Shimo/configs/bc6055f96efd0a0aacaac80177b7591f.ovpn --management-query-passwords --auth-nocache --cd /var/run/Shimo --daemon --log /var/folders/k9/fxdhq6qx2mxffv2f8r26b1cw0000gn/T/bc6055f96efd0a0aacaac80177b7591f.log --management-hold --script-security 2 --management 127.0.0.1 50720

发现有127.0.0.1的地址,突然想到之前把127.0.0.1的hosts修改了,查看/etc/hosts,果然里面没有127.0.0.1这条记录,重新加上,Shimo恢复正常

➜  configs cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255	broadcasthost
::1             localhost
192.168.99.100  zookeeper-0
192.168.99.100  kafka-0

VinkDong

open to open