PPTP 客户端连上VPN 之后不能访问公网

80 views
Skip to first unread message

Erin Peng

unread,
Sep 26, 2009, 12:56:55 AM9/26/09
to shlug
在 X86_64 Fedora 11 上装好 pptp client,用 pptpconfig 配置好,VPN可以连上了,但公网不能访问了。

看了看pptpconfi 的GUI,连VPN时,上面显示
pptpconfig: DNS changes made to /etc/resolv.conf

此时查看 /etc/resolv.conf,发现里面的公网DNS server被替换成VPN内网自己的DNS了。

断开VPN,UI显示
pptpconfig: routing and DNS configuration restored
再看/etc/resolv.conf,公网DNS恢复。公网又能访问了。

我在Windows XP上的VPN就没有这个问题,连上VPN,公网照上不误。

有什么办法在linux下连VPN时同时keep住内网公网DNS,内网公网同时访问呢?

另外在Window XP上的VPN设置里有DNS
suffix。在linux上不知道这个该怎么设,google了一下,有人说在pptpconfig的DNS
tab上,在options里填上search xxx.yyy, xxx.yyy 为DNS suffix.
但我发现options里填不填都能连VPN,但是怎么都连不了公网。

Erin Peng

unread,
Sep 26, 2009, 1:00:17 AM9/26/09
to shlug
补充,此VPN不用 default gateway on remote network.
在win xp中,Use default gateway on remote network 是 uncheck的。

HNWs

unread,
Sep 26, 2009, 3:09:12 PM9/26/09
to sh...@googlegroups.com
用nm的那个pptp吧。。pptpconfig已经过时了

2009/9/26 Erin Peng <erin....@gmail.com>

Erin Peng

unread,
Sep 29, 2009, 3:14:09 AM9/29/09
to sh...@googlegroups.com
NM 是指 NetworkManager 吗?好象不适用我的情况。

我装了NetworkManager的pptp plugin。配置的时候,它要求 gateway 必填,不然 Apply button 就是灰的,配不下去了。可我用的 vpn 是没有 default gateway的。

没办法后来找了过时的pptpconfig用。

2009/9/27 HNWs <hoverin...@gmail.com>

HNWs

unread,
Sep 29, 2009, 5:23:53 AM9/29/09
to sh...@googlegroups.com
那个gateway是你要连接的pptp服务器

2009/9/29 Erin Peng <erin....@gmail.com>

stone zhang

unread,
Sep 29, 2009, 9:30:53 AM9/29/09
to sh...@googlegroups.com
是的,用NetworkManager配置pptp vpn,很简单啊

2009/9/29 HNWs <hoverin...@gmail.com>



--
我是stone

Erin Peng

unread,
Sep 30, 2009, 9:27:30 AM9/30/09
to sh...@googlegroups.com
可是NM在我机器上就是玩不转 。之前也试过填pptp server 的,不行。无论IP还是hostname,总是连接失败。

虽然pptpconfig被pptp项目 deprecate 了,fedora 11 的官方文档还是推荐使用pptpconfig的。

刚才又折腾了半天,终于解决了。原来是要使用usepeerdns,在pptpconfig的DNS tab上选上Automatic。


2009/9/29 stone zhang <kelx...@gmail.com>
Reply all
Reply to author
Forward
0 new messages