Suggestion: adds this script to the "pivpn debug" command #1811
fernandog
started this conversation in
Feature requests
Replies: 1 comment
-
Also this one:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
IPv4dev=$(ip -f inet address show $(cat /etc/pivpn/wireguard/setupVars.conf | grep IPv4dev= | cut -d "=" -f2) | grep inet | awk '{print $2}' | cut -d '/' -f 1)
IPv4addr=$(cat /etc/pivpn/wireguard/setupVars.conf | grep IPv4addr= | cut -d "=" -f2 | cut -d "/" -f1)
if [ "$IPv4dev" = "$IPv4addr" ]; then echo "IPv4dev and IPv4addr are equal."; else echo "IPv4dev and IPv4addr are not equal."; fi
Check tutorial from here: https://github.com/pivpn/pivpn/wiki/FAQ
Beta Was this translation helpful? Give feedback.
All reactions