setup-ipsec-vpn/docs/enable-multiple-users.txt

25 lines
723 B
Plaintext
Raw Normal View History

2016-05-13 08:46:26 +02:00
To enable multiple VPN users with different credentials,
find and replace these lines in the script:
2016-05-11 09:30:40 +02:00
cat > /etc/ppp/chap-secrets <<EOF
# Secrets for authentication using CHAP
# client server secret IP addresses
"$VPN_USER" l2tpd "$VPN_PASSWORD" *
EOF
with the following:
cat > /etc/ppp/chap-secrets <<EOF
"user1" l2tpd "password1" *
"user2" l2tpd "password2" *
EOF
-----------------
IMPORTANT NOTES
-----------------
1. Make sure there is NO SPACE after both EOF above!
2016-05-13 08:46:26 +02:00
2. This example shows user1 with password1, and user2 with password2.
You can add more users, use one line for each user.
3. The characters \ and " within your username/password (if present)
MUST be escaped as \\ and \", respectively.