tyage / my-kitchen

0 stars 0 forks source link

check if vpn client is up on startup #5

Closed tyage closed 7 years ago

tyage commented 7 years ago

Failed case

Jul 19 22:27:19 yukari daemon.sh[1333]: The SoftEther VPN Client service has been started.
Jul 19 22:27:19 yukari daemon.sh[1333]: vpncmd command - SoftEther VPN Command Line Management Utility
Jul 19 22:27:19 yukari daemon.sh[1333]: SoftEther VPN Command Line Management Utility (vpncmd command)
Jul 19 22:27:19 yukari daemon.sh[1333]: Version 4.22 Build 9634   (English)
Jul 19 22:27:19 yukari daemon.sh[1333]: Compiled 2016/11/27 15:23:56 by yagi at pc30
Jul 19 22:27:19 yukari daemon.sh[1333]: Copyright (c) SoftEther VPN Project. All Rights Reserved.
Jul 19 22:27:19 yukari vmnetBridge[1988]: RTM_NEWLINK: name:vpn_vpn index:4 flags:0x00011043
Jul 19 22:27:19 yukari vmnetBridge[1988]: Adding interface vpn_vpn index:4
Jul 19 22:27:20 yukari daemon.sh[1333]: Error occurred. (Error code: 1)
Jul 19 22:27:20 yukari daemon.sh[1333]: Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct.
Jul 19 22:27:20 yukari dhclient[2103]: DHCPREQUEST of 192.168.30.11 on vpn_vpn to 255.255.255.255 port 67 (xid=0x47e1f0e9)

Succeeded case

Jul 19 22:29:07 yukari daemon.sh[5775]: The SoftEther VPN Client service has been started.
Jul 19 22:29:07 yukari vmnet-natd[2253]: RTM_NEWLINK: name:vpn_vpn index:9 flags:0x00001002
Jul 19 22:29:07 yukari vmnetBridge[1988]: RTM_NEWLINK: name:vpn_vpn index:9 flags:0x00001002
Jul 19 22:29:07 yukari vmnet-natd[2253]: RTM_NEWLINK: name:vpn_vpn index:9 flags:0x00001002
Jul 19 22:29:07 yukari vmnetBridge[1988]: RTM_NEWLINK: name:vpn_vpn index:9 flags:0x00001002
Jul 19 22:29:07 yukari vmnetBridge[1988]: RTM_NEWLINK: name:vpn_vpn index:9 flags:0x00011043
Jul 19 22:29:07 yukari vmnetBridge[1988]: Adding interface vpn_vpn index:9
Jul 19 22:29:07 yukari vmnet-natd[2253]: RTM_NEWLINK: name:vpn_vpn index:9 flags:0x00011043
Jul 19 22:29:07 yukari daemon.sh[5775]: vpncmd command - SoftEther VPN Command Line Management Utility
Jul 19 22:29:07 yukari daemon.sh[5775]: SoftEther VPN Command Line Management Utility (vpncmd command)
Jul 19 22:29:07 yukari daemon.sh[5775]: Version 4.22 Build 9634   (English)
Jul 19 22:29:07 yukari daemon.sh[5775]: Compiled 2016/11/27 15:23:56 by yagi at pc30
Jul 19 22:29:07 yukari daemon.sh[5775]: Copyright (c) SoftEther VPN Project. All Rights Reserved.
Jul 19 22:29:07 yukari daemon.sh[5775]: Connected to VPN Client "localhost".
Jul 19 22:29:07 yukari daemon.sh[5775]: VPN Client>AccountConnect VPN
Jul 19 22:29:07 yukari daemon.sh[5775]: AccountConnect command - Start Connection to VPN Server using VPN Connection Setting
Jul 19 22:29:07 yukari daemon.sh[5775]: The command completed successfully.
Jul 19 22:29:07 yukari dhclient[5810]: DHCPREQUEST of 192.168.30.11 on vpn_vpn to 255.255.255.255 port 67 (xid=0x3691e05b)
Jul 19 22:29:07 yukari dhclient[5810]: DHCPACK of 192.168.30.11 from 192.168.30.1
Jul 19 22:29:09 yukari dhclient[5810]: bound to 192.168.30.11 -- renewal in 3410 seconds.