mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #228] k8s安装运行无错误,但是不能接入,怀疑地址绑定没有0.0.0.0 #212
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 @nickelzhang on GitHub (Feb 19, 2021).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/228
任务列表
问题描述
使用清楚简明的语言描述这个 bug。
如题
pluto[266]: 2 CPU cores online
pluto[266]: starting up 2 helper threads
pluto[266]: started thread for helper 0
pluto[266]: seccomp security for helper not supported
pluto[266]: started thread for helper 1
pluto[266]: Using Linux XFRM/NETKEY IPsec kernel support code on 5.4.0-65-generic
pluto[266]: seccomp security not supported
pluto[266]: seccomp security for helper not supported
pluto[266]: added IKEv1 connection "l2tp-psk"
pluto[266]: added IKEv1 connection "xauth-psk"
pluto[266]: listening for IKE messages
pluto[266]: Kernel supports NIC esp-hw-offload
pluto[266]: adding UDP interface eth0 10.42.1.106:500
pluto[266]: adding UDP interface eth0 10.42.1.106:4500
pluto[266]: adding UDP interface lo 127.0.0.1:500
pluto[266]: adding UDP interface lo 127.0.0.1:4500
pluto[266]: adding UDP interface lo [::1]:500
pluto[266]: loading secrets from "/etc/ipsec.secrets"
重现步骤
重现该 bug 的步骤:
期待的正确结果
简要地描述你期望的正确结果。
日志
启用日志,检查 VPN 状态,并且添加错误日志以帮助解释该问题(如果适用)。
服务器信息(请填写以下信息)
客户端信息(请填写以下信息)
其它信息
添加关于该 bug 的其它信息。
@nickelzhang commented on GitHub (Feb 19, 2021):
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 0.0.0.0:1701 0.0.0.0:* 1/xl2tpd
udp 0 0 127.0.0.1:4500 0.0.0.0:* 4590/pluto
udp 0 0 10.42.1.106:4500 0.0.0.0:* 4590/pluto
udp 0 0 127.0.0.1:500 0.0.0.0:* 4590/pluto
udp 0 0 10.42.1.106:500 0.0.0.0:* 4590/pluto
udp6 0 0 ::1:500 :::* 4590/pluto
@hwdsl2 commented on GitHub (Feb 19, 2021):
@nickelzhang 你好!Libreswan默认不绑定
0.0.0.0,而是绑定主机的一个或多个 IP 地址(如你的netstat 输出所示)。这是正常的,对 VPN 接入没有影响。你的日志显示 VPN 服务器成功启动并等待客户端连接。我觉得应该是你的配置有其它问题。示例配置你可以参见这个 PR:https://github.com/hwdsl2/setup-ipsec-vpn/pull/915@nickelzhang commented on GitHub (Feb 20, 2021):
谢谢您的回复,我再研究一下,感谢。