1
0
mirror of synced 2024-11-21 20:46:10 +03:00

Quote VPN credentials in chap-secrets for safety

This commit is contained in:
hwdsl2 2016-01-14 15:05:50 -06:00
parent 46a3f9e0b1
commit 59c2817731
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ cat > /etc/ppp/chap-secrets <<EOF
# Secrets for authentication using CHAP
# client server secret IP addresses
$VPN_USER l2tpd $VPN_PASSWORD *
"$VPN_USER" l2tpd "$VPN_PASSWORD" *
EOF
/bin/cp -f /etc/sysctl.conf "/etc/sysctl.conf.old-$(date +%Y-%m-%d-%H:%M:%S)" 2>/dev/null

View File

@ -251,7 +251,7 @@ cat > /etc/ppp/chap-secrets <<EOF
# Secrets for authentication using CHAP
# client server secret IP addresses
$VPN_USER l2tpd $VPN_PASSWORD *
"$VPN_USER" l2tpd "$VPN_PASSWORD" *
EOF
/bin/cp -f /etc/sysctl.conf "/etc/sysctl.conf.old-$(date +%Y-%m-%d-%H:%M:%S)" 2>/dev/null