mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 18:15:50 +03:00
[GH-ISSUE #489] 关于在ImmortalWrt 24.10.4 的探索及建议 #457
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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模式,谢谢
@hwdsl2 commented on GitHub (Dec 6, 2025):
@zvic16 你好!感谢你的分享。目前 Libreswan 还不支持 IKEv2/IPsec MSCHAPv2 模式。
@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@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