1
0
mirror of synced 2024-11-28 23:56:04 +03:00
setup-ipsec-vpn/docs/enable-multiple-users.txt
2016-05-17 11:26:51 -05:00

27 lines
880 B
Plaintext

To create multiple VPN users with different credentials for IPsec/L2TP,
find and replace these lines in the script:
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!
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.
4. To create multiple VPN users for IPsec/XAUTH, add more lines to file
"/etc/ipsec.d/passwd". Refer to the VPN script for correct format.