1
0
mirror of synced 2024-11-26 06:46:06 +03:00
setup-ipsec-vpn/docs/enable-multiple-users.txt

27 lines
880 B
Plaintext
Raw Normal View History

2016-05-17 19:25:06 +03:00
To create multiple VPN users with different credentials for IPsec/L2TP,
2016-05-13 09:46:26 +03:00
find and replace these lines in the script:
2016-05-11 10:30:40 +03: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 09:46:26 +03: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.
2016-05-20 10:32:37 +03:00
4. To create multiple VPN users for IPsec/XAuth, add more lines to file
2016-05-17 19:25:06 +03:00
"/etc/ipsec.d/passwd". Refer to the VPN script for correct format.