mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 10:05:48 +03:00
[GH-ISSUE #456] ikev2 模式如何设置指定多个子网走vpn, 多网段。 #426
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 @alan699 on GitHub (Nov 13, 2024).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/456
我编辑了变量,VPN_SPLIT_IKEV2=172.29.208.0/20 容器的ikev2.conf文件里leftsubnet=172.29.208.0/20是对的,但我想添加多个网段怎么弄?我试过了加2个"不行,隔一个空格加网段也不行。
@hwdsl2 commented on GitHub (Nov 13, 2024):
@alan699 你好!对于你的用例,请参见以下链接:
github.com/hwdsl2/setup-ipsec-vpn@5525c407c5https://github.com/libreswan/libreswan/issues/832
https://libreswan.org/man/ipsec.conf.5.html
之前在 Libreswan 较早版本,leftsubnets 参数不工作,所以项目文档去掉了相关的说明(见第一个链接)。现在 Libreswan 版本更新了,有可能已修复,你可以尝试一下。具体步骤(包括 IKEv2 已配置的情况)请参见 VPN 分流。
@alan699 commented on GitHub (Nov 14, 2024):
我试试,谢谢。
@alan699 commented on GitHub (Nov 19, 2024):
补充,分流在安卓的ikev2 生效了,