Last active
December 22, 2017 18:22
-
-
Save SkaTeMasTer/32cb706b12665ec691abce189692f94b to your computer and use it in GitHub Desktop.
Print the status of the OpenVPN connection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# --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