所以这个周末我一直在拉头发。我一直在尝试连接到 VPN 服务器。我可以在办公室使用 Windows 成功完成此操作,但无法在家里使用 OpenSUSE 完成此操作。这是我的 Linux 盒子中的设置:
# This module isn't loaded initially
modprobe nf_conntrack_pptp
pptpsetup --create my_vpn --server xxx.xx.xxx.xx --username xxx --password xxx
pppd call my_vpn debug nodetach
结果如下:
using channel 6
Using interface ppp0
Connect: ppp0 <--> /dev/pts/4
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xac5d988f> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth chap MS-v2> <mru 1460> <magic 0x72d37196>]
sent [LCP ConfAck id=0x1 <auth chap MS-v2> <mru 1460> <magic 0x72d37196>]
rcvd [LCP ConfRej id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <magic 0xac5d988f>]
rcvd [LCP ConfAck id=0x2 <magic 0xac5d988f>]
sent [LCP EchoReq id=0x0 magic=0xac5d988f]
rcvd [CHAP Challenge id=0x1 <96a56e74b0a9c972625e5b2a6cfa7ff3>, name = "PS-RTR-INT@DC-CYBERCSF"]
added response cache entry 0
sent [CHAP Response id=0x1 <6878d2f9bafc93c3fd22d7ef83a17cea000000000000000053ed1f4039642a8acec3150b3168abc02cbfa9368595c2a900>, name = "imam"]
rcvd [LCP EchoRep id=0x0 magic=0x72d37196]
rcvd [CHAP Success id=0x1 "S=FB862D3ADF2E8883281F43948FDAF07A06F71780"]
response found in cache (entry 0)
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 20.20.20.1>]
sent [IPCP ConfAck id=0x1 <addr 20.20.20.1>]
rcvd [proto=0x8281] 01 01 00 04
Unsupported protocol 'MPLSCP' (0x8281) received
sent [LCP ProtRej id=0x3 82 81 01 01 00 04]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 20.20.20.10>]
sent [IPCP ConfReq id=0x3 <addr 20.20.20.10>]
rcvd [IPCP ConfAck id=0x3 <addr 20.20.20.10>]
local IP address 20.20.20.10
remote IP address 20.20.20.1
Terminating connection due to lack of activity.
Connect time 45.9 minutes.
Sent 12744 bytes, received 1344 bytes.
sent [LCP TermReq id=0x4 "Link inactive"]
rcvd [LCP TermAck id=0x4]
Connection terminated.
tcflush failed: Input/output error
Script pptp xxx.xx.xx.xx --nolaunchpppd finished (pid 4616), status = 0x0
如您所见,连接由于缺乏活动而终止。本地IP地址(20.20.20.10)显然指的是我的电脑,我可以正常使用它,但远程IP地址(20.20.20.1)仍然无法使用。
我的设置有什么问题吗?
答案1
我不太明白,但是:
modprobe nf_conntrack_pptp
并通过 GUI(而不是终端)打开 VPN 来完成这项工作:-/