Files
openvpn/README.create-ccd-files
T

27 lines
669 B
Plaintext

# ===================================
# Client Specific Configuration files
# ===================================
CCD_PATH=/etc/openvpn/server/home/ccd
# ---
# die höchste derzeit vergebene IPv4 Adresse (OpenVPN Netz)
# ---
# die höchste derzeit vergebene IPv4 Adresse (OpenVPN Netz)
#
grep -rh '^ifconfig-push' ${CCD_PATH} | awk '{print $2}' | sort -t. -k1,1n -k2,2n -k3,3n -k4,4n | tail -n1
# oder etwas kürzer
#
grep -rh '^ifconfig-push' ${CCD_PATH} | awk '{print $2}' | sort -V | tail -n1
# oder mit Ausgabe des Accounts:
#
grep -rH '^ifconfig-push' ${CCD_PATH} \
| sed -E 's/^([^:]+):ifconfig-push ([0-9.]+) .*/\1 \2/' \
| sort -k2,2V \
| tail -n1