[GH-ISSUE #188] 大兄弟、大佬,能指导下关闭PSK吗 #171

Closed
opened 2026-03-02 07:44:27 +03:00 by kerem · 3 comments
Owner

Originally created by @cdoer on GitHub (May 7, 2020).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/188

我的路由器不支持PSK,我尝试修改run.sh这个文件 ,改一些参数,比如authby=nerver,
删掉配置
cat > /etc/ipsec.secrets <<EOF
$PUBLIC_IP %any : PSK "$VPN_IPSEC_PSK"
EOF

能正常运行,但是无法连接

Originally created by @cdoer on GitHub (May 7, 2020). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/188 我的路由器不支持PSK,我尝试修改run.sh这个文件 ,改一些参数,比如authby=nerver, 删掉配置 cat > /etc/ipsec.secrets <<EOF $PUBLIC_IP %any : PSK "$VPN_IPSEC_PSK" EOF 能正常运行,但是无法连接
kerem closed this issue 2026-03-02 07:44:27 +03:00
Author
Owner

@hwdsl2 commented on GitHub (May 7, 2020):

@cdoer 你好!不支持关闭L2TP的预共享秘钥,因为不带 IPsec 的 L2TP 模式没有任何加密,使用 VPN 也就失去了意义。

<!-- gh-comment-id:625023870 --> @hwdsl2 commented on GitHub (May 7, 2020): @cdoer 你好!不支持关闭L2TP的预共享秘钥,因为不带 IPsec 的 L2TP 模式没有任何加密,使用 VPN 也就失去了意义。
Author
Owner

@cdoer commented on GitHub (May 7, 2020):

@hwdsl2 感谢回复,不为加密,只为组网。 翻了其它的issues ,看到不少同样的问题,那只能放弃了。

<!-- gh-comment-id:625025195 --> @cdoer commented on GitHub (May 7, 2020): @hwdsl2 感谢回复,不为加密,只为组网。 翻了其它的issues ,看到不少同样的问题,那只能放弃了。
Author
Owner

@TomLiu-GitHub commented on GitHub (Jun 1, 2021):

同样的问题!
华为路由器不支持PSK
image

<!-- gh-comment-id:852050607 --> @TomLiu-GitHub commented on GitHub (Jun 1, 2021): 同样的问题! 华为路由器不支持PSK ![image](https://user-images.githubusercontent.com/32833966/120316329-e347ee80-c30f-11eb-8807-8be1ce345c71.png)
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#171
No description provided.