[GH-ISSUE #171] 开启额外账号后,额外账号不能连接. #157

Closed
opened 2026-03-02 07:28:09 +03:00 by kerem · 2 comments
Owner

Originally created by @ghost on GitHub (Feb 6, 2020).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/171

vpn.env配置如下:

VPN_IPSEC_PSK=abcdeabcdeabcdeabcde
VPN_USER=colin
VPN_PASSWORD=hui11241124
VPN_ADDL_USERS=zhangsan lisi
VPN_ADDL_PASSWORDS=zhangsan123 lisi123

配置额外账号后,重启容器,还是只有colin账号可用,其它账号连接失败.
使用docker logs查看日志信息如下:

docker logs vpn-server

Retrieving VPN credentials...
/opt/src/run.sh: 4: /opt/src/vpn.env: lisi: not found
/opt/src/run.sh: 5: /opt/src/vpn.env: lisi123: not found

Trying to auto discover IP of this server...

================================================

IPsec VPN server is now ready for use!

Connect to your new VPN with these details:

Server IP: 11xxxxxxx6
IPsec PSK: abcdeabcdeabcdeabcde
Username: colin
Password: hui11241124

Write these down. You'll need them to connect!

Important notes:   https://git.io/vpnnotes2
Setup VPN clients: https://git.io/vpnclients

================================================

Redirecting to: /etc/init.d/ipsec start
Starting pluto IKE daemon for IPsec: Initializing NSS database

.
xl2tpd[1]: Not looking for kernel SAref support.
xl2tpd[1]: Using l2tp kernel support.
xl2tpd[1]: xl2tpd version xl2tpd-1.3.12 started on 315b7cd766b5 PID:1
xl2tpd[1]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[1]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[1]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[1]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016
xl2tpd[1]: Listening on IP address 0.0.0.0, port 1701
Originally created by @ghost on GitHub (Feb 6, 2020). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/171 vpn.env配置如下: ``` VPN_IPSEC_PSK=abcdeabcdeabcdeabcde VPN_USER=colin VPN_PASSWORD=hui11241124 VPN_ADDL_USERS=zhangsan lisi VPN_ADDL_PASSWORDS=zhangsan123 lisi123 ``` 配置额外账号后,重启容器,还是只有colin账号可用,其它账号连接失败. 使用docker logs查看日志信息如下: ``` docker logs vpn-server Retrieving VPN credentials... /opt/src/run.sh: 4: /opt/src/vpn.env: lisi: not found /opt/src/run.sh: 5: /opt/src/vpn.env: lisi123: not found Trying to auto discover IP of this server... ================================================ IPsec VPN server is now ready for use! Connect to your new VPN with these details: Server IP: 11xxxxxxx6 IPsec PSK: abcdeabcdeabcdeabcde Username: colin Password: hui11241124 Write these down. You'll need them to connect! Important notes: https://git.io/vpnnotes2 Setup VPN clients: https://git.io/vpnclients ================================================ Redirecting to: /etc/init.d/ipsec start Starting pluto IKE daemon for IPsec: Initializing NSS database . xl2tpd[1]: Not looking for kernel SAref support. xl2tpd[1]: Using l2tp kernel support. xl2tpd[1]: xl2tpd version xl2tpd-1.3.12 started on 315b7cd766b5 PID:1 xl2tpd[1]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc. xl2tpd[1]: Forked by Scott Balmos and David Stipp, (C) 2001 xl2tpd[1]: Inherited by Jeff McAdams, (C) 2002 xl2tpd[1]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016 xl2tpd[1]: Listening on IP address 0.0.0.0, port 1701 ```
kerem closed this issue 2026-03-02 07:28:09 +03:00
Author
Owner

@anyuke commented on GitHub (Feb 21, 2022):

the same problem, How to fixed?

<!-- gh-comment-id:1046523181 --> @anyuke commented on GitHub (Feb 21, 2022): the same problem, How to fixed?
Author
Owner

@hwdsl2 commented on GitHub (Feb 21, 2022):

@anyuke Hello! If you bind mount the env file [1], be sure to first edit your env file and use single quotes '' to enclose the values of all variables. See [1] for more information.

[1] https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/docs/advanced-usage.md#bind-mount-the-env-file

<!-- gh-comment-id:1047075886 --> @hwdsl2 commented on GitHub (Feb 21, 2022): @anyuke Hello! If you bind mount the env file [1], be sure to first edit your env file and use single quotes '' to enclose the values of all variables. See [1] for more information. [1] https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/docs/advanced-usage.md#bind-mount-the-env-file
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#157
No description provided.