[GH-ISSUE #489] 关于在ImmortalWrt 24.10.4 的探索及建议 #457

Closed
opened 2026-03-02 08:19:04 +03:00 by kerem · 3 comments
Owner

Originally created by @zvic16 on GitHub (Dec 6, 2025).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/489

经过多次尝试,现在介绍一下我在ImmortalWrt 24.10.4下docker上使用的设置方法:
1.需要安装luci-app-libreswan,安装后关闭停止 pluto 服务:/etc/init.d/ipsec stop,禁用 pluto 服务:/etc/init.d/ipsec disable
2.不能使用--network=host模式
3.需要使用debian镜像
另外建议加入IKEv2/IPsec MSCHAPv2模式,谢谢

Originally created by @zvic16 on GitHub (Dec 6, 2025). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/489 经过多次尝试,现在介绍一下我在ImmortalWrt 24.10.4下docker上使用的设置方法: 1.需要安装luci-app-libreswan,安装后关闭停止 pluto 服务:/etc/init.d/ipsec stop,禁用 pluto 服务:/etc/init.d/ipsec disable 2.不能使用--network=host模式 3.需要使用debian镜像 另外建议加入IKEv2/IPsec MSCHAPv2模式,谢谢
kerem closed this issue 2026-03-02 08:19:04 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Dec 6, 2025):

@zvic16 你好!感谢你的分享。目前 Libreswan 还不支持 IKEv2/IPsec MSCHAPv2 模式。

<!-- gh-comment-id:3620407173 --> @hwdsl2 commented on GitHub (Dec 6, 2025): @zvic16 你好!感谢你的分享。目前 Libreswan 还不支持 IKEv2/IPsec MSCHAPv2 模式。
Author
Owner

@lexin8 commented on GitHub (Dec 8, 2025):

同源码,直接拉取hwdsl2/ipsec-vpn-server不行?思路是拉debian然后再里面安装ipsec-vpn-server?

docker run \ --name ipsec-vpn-server \ --restart=always \ -v ikev2-vpn-data:/etc/ipsec.d \ -v /lib/modules:/lib/modules:ro \ -p 500:500/udp \ -p 4500:4500/udp \ -d --privileged \ hwdsl2/ipsec-vpn-server

<!-- gh-comment-id:3625974821 --> @lexin8 commented on GitHub (Dec 8, 2025): 同源码,直接拉取hwdsl2/ipsec-vpn-server不行?思路是拉debian然后再里面安装ipsec-vpn-server? `docker run \ --name ipsec-vpn-server \ --restart=always \ -v ikev2-vpn-data:/etc/ipsec.d \ -v /lib/modules:/lib/modules:ro \ -p 500:500/udp \ -p 4500:4500/udp \ -d --privileged \ hwdsl2/ipsec-vpn-server`
Author
Owner

@zvic16 commented on GitHub (Dec 9, 2025):

@lexin8
具体没有详细研究,应该是openwrt缺少部分系统组件,需要主机安装libreswan补充,选择debian镜像就是安装命令后面上debian就行了。
docker run \ --name ipsec-vpn-server \ --restart=always \ -v ikev2-vpn-data:/etc/ipsec.d \ -v /lib/modules:/lib/modules:ro \ -p 500:500/udp \ -p 4500:4500/udp \ -d --privileged \ hwdsl2/ipsec-vpn-server:debain

<!-- gh-comment-id:3631063515 --> @zvic16 commented on GitHub (Dec 9, 2025): @lexin8 具体没有详细研究,应该是openwrt缺少部分系统组件,需要主机安装libreswan补充,选择debian镜像就是安装命令后面上debian就行了。 docker run \ --name ipsec-vpn-server \ --restart=always \ -v ikev2-vpn-data:/etc/ipsec.d \ -v /lib/modules:/lib/modules:ro \ -p 500:500/udp \ -p 4500:4500/udp \ -d --privileged \ hwdsl2/ipsec-vpn-server:debain
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#457
No description provided.