SkaTeMasTer
12/22/2017 - 6:10 PM

Print the status of the OpenVPN connection.

Print the status of the OpenVPN connection.

#
# --mlock         : Disable Paging -- ensures key material and tunnel
#                  data will never be written to disk.
# --up-delay      : Delay tun/tap open and possible --up script execution
#                  until after TCP/UDP connection establishment with peer.

/usr/sbin/openvpn --show-gateway --up-delay --mlock --single-session

#   outputs: 
#      Fri Dec 22 12:53:52 2017 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=eth0 HWADDR=b8:27:eb:27:5e:e1