Skip to content

Instantly share code, notes, and snippets.

@SkaTeMasTer
Last active December 22, 2017 18:22
Show Gist options
  • Save SkaTeMasTer/32cb706b12665ec691abce189692f94b to your computer and use it in GitHub Desktop.
Save SkaTeMasTer/32cb706b12665ec691abce189692f94b to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment