我必须连接到 vpn 服务器。它在 Windows 上有效,但在 Ubuntu 10.04 上无效。选项数量让我感到困惑。我有以下输入:
VPN 的 IP 地址
预共享密钥进行身份验证
使用 MS-CHAPv2 的信息
VPN 的登录名和密码
我尝试使用network manager
和 使用 来实现这一点L2TP IPsec VPN Manager 1.0.9
,但都失败了。以下是一些来自 的记录信息L2TP IPsec VPN Manager 1.0.9
:
Nov 09 15:21:46.854 ipsec_setup: Stopping Openswan IPsec...
Nov 09 15:21:48.088 Stopping xl2tpd: xl2tpd.
Nov 09 15:21:48.132 ipsec_setup: Starting Openswan IPsec U2.6.23/K2.6.32-49-generic...
Nov 09 15:21:48.308 ipsec__plutorun: Starting Pluto subsystem...
Nov 09 15:21:48.318 ipsec__plutorun: adjusting ipsec.d to /etc/ipsec.d
Nov 09 15:21:48.338 ipsec__plutorun: 002 added connection description "my_vpn_name"
Nov 09 15:21:48.348 ipsec__plutorun: 003 NAT-Traversal: Trying new style NAT-T
Nov 09 15:21:48.348 ipsec__plutorun: 003 NAT-Traversal: ESPINUDP(1) setup failed for new style NAT-T family IPv4 (errno=19)
Nov 09 15:21:48.349 ipsec__plutorun: 003 NAT-Traversal: Trying old style NAT-T
Nov 09 15:21:48.994 104 "my_vpn_name" #1: STATE_MAIN_I1: initiate
Nov 09 15:21:48.994 003 "my_vpn_name" #1: received Vendor ID payload [RFC 3947] method set to=109
Nov 09 15:21:48.994 003 "my_vpn_name" #1: received Vendor ID payload [Dead Peer Detection]
Nov 09 15:21:48.994 106 "my_vpn_name" #1: STATE_MAIN_I2: sent MI2, expecting MR2
Nov 09 15:21:48.994 003 "my_vpn_name" #1: NAT-Traversal: Result using RFC 3947 (NAT-Traversal): i am NATed
Nov 09 15:21:48.994 108 "my_vpn_name" #1: STATE_MAIN_I3: sent MI3, expecting MR3
Nov 09 15:21:48.994 004 "my_vpn_name" #1: STATE_MAIN_I4: ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY cipher=oakley_3des_cbc_192 prf=oakley_sha group=modp1024}
Nov 09 15:21:48.995 117 "my_vpn_name" #2: STATE_QUICK_I1: initiate
Nov 09 15:21:48.995 004 "my_vpn_name" #2: STATE_QUICK_I2: sent QI2, IPsec SA established transport mode {ESP=>0x0c96795d <0x483e1a42 xfrm=AES_128-HMAC_SHA1 NATOA=none NATD=none DPD=none}
Nov 09 15:21:49.996 [ERROR 210] Failed to open l2tp control file 'c my_vpn_name'
来自syslog
:
Nov 9 15:21:46 o99 L2tpIPsecVpnControlDaemon: Opening client connection
Nov 9 15:21:46 o99 L2tpIPsecVpnControlDaemon: Executing command ipsec setup stop
Nov 9 15:21:46 o99 ipsec_setup: Stopping Openswan IPsec...
Nov 9 15:21:48 o99 kernel: [ 4350.245171] NET: Unregistered protocol family 15
Nov 9 15:21:48 o99 ipsec_setup: ...Openswan IPsec stopped
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Command ipsec setup stop finished with exit code 0
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Executing command invoke-rc.d xl2tpd stop
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Command invoke-rc.d xl2tpd stop finished with exit code 0
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Opening client connection
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Closing client connection
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Executing command ipsec setup start
Nov 9 15:21:48 o99 kernel: [ 4350.312483] NET: Registered protocol family 15
Nov 9 15:21:48 o99 ipsec_setup: Starting Openswan IPsec U2.6.23/K2.6.32-49-generic...
Nov 9 15:21:48 o99 ipsec_setup: Using NETKEY(XFRM) stack
Nov 9 15:21:48 o99 kernel: [ 4350.410774] Initializing XFRM netlink socket
Nov 9 15:21:48 o99 kernel: [ 4350.413601] padlock: VIA PadLock not detected.
Nov 9 15:21:48 o99 kernel: [ 4350.427311] padlock: VIA PadLock Hash Engine not detected.
Nov 9 15:21:48 o99 kernel: [ 4350.441533] padlock: VIA PadLock not detected.
Nov 9 15:21:48 o99 ipsec_setup: ...Openswan IPsec started
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Command ipsec setup start finished with exit code 0
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Executing command invoke-rc.d xl2tpd start
Nov 9 15:21:48 o99 ipsec__plutorun: adjusting ipsec.d to /etc/ipsec.d
Nov 9 15:21:48 o99 pluto: adjusting ipsec.d to /etc/ipsec.d
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Command invoke-rc.d xl2tpd start finished with exit code 0
Nov 9 15:21:48 o99 ipsec__plutorun: 002 added connection description "my_vpn_name"
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Executing command ipsec auto --ready
Nov 9 15:21:48 o99 ipsec__plutorun: 003 NAT-Traversal: Trying new style NAT-T
Nov 9 15:21:48 o99 ipsec__plutorun: 003 NAT-Traversal: ESPINUDP(1) setup failed for new style NAT-T family IPv4 (errno=19)
Nov 9 15:21:48 o99 ipsec__plutorun: 003 NAT-Traversal: Trying old style NAT-T
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Command ipsec auto --ready finished with exit code 0
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Executing command ipsec auto --up my_vpn_name
Nov 9 15:21:48 o99 L2tpIPsecVpnControlDaemon: Command ipsec auto --up my_vpn_name finished with exit code 0
Nov 9 15:21:49 o99 L2tpIPsecVpnControlDaemon: Closing client connection
有人能告诉我更多关于此的信息吗?错误在哪里?
答案1
看起来你遇到了 xl2tpd 中的错误。请查看此链接https://answers.launchpad.net/l2tp-ipsec-vpn/+question/169775