当前位置:首页 > CN2资讯 > 正文内容

linux下连接windows2003 ppoe 服务器windows连接linux服务器

7小时前CN2资讯

1,在CentOS6.3下用

/usr/sbin/pppd  pty "/usr/sbin/pptp publicip --nolaunchpppd" file /etc/ppp/options.pptp user user1 password password1
再用tail -f /var/log/messages看到log如下
Oct  8 03:25:41 localhost pppd[2057]: pppd 2.4.5 started by root, uid 0
Oct  8 03:25:41 localhost pppd[2057]: Using interface ppp0
Oct  8 03:25:41 localhost pppd[2057]: Connect: ppp0 <--> /dev/pts/2
Oct  8 03:25:41 localhost pptp[2058]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Oct  8 03:25:41 localhost pptp[2066]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Oct  8 03:25:41 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Oct  8 03:25:41 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Oct  8 03:25:42 localhost pptp[2066]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Oct  8 03:25:42 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Oct  8 03:25:42 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 19561).
Oct  8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct  8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is 00000000, recv_accm is FFFFFFFF
Oct  8 03:25:45 localhost pptp[2066]: anon warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
Oct  8 03:25:45 localhost pppd[2057]: CHAP authentication succeeded
Oct  8 03:25:45 localhost pppd[2057]: LCP terminated by peer (tM-+)^R^@<M-Mt^@^@^BM-f)
Oct  8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct  8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is FFFFFFFF, recv_accm is FFFFFFFF
Oct  8 03:25:45 localhost pptp[2066]: anon warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
Oct  8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:912]: Received Call Clear Request.
Oct  8 03:25:48 localhost pppd[2057]: Connection terminated.
Oct  8 03:25:48 localhost pppd[2057]: Modem hangup
Oct  8 03:25:48 localhost pptp[2058]: anon warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Oct  8 03:25:48 localhost pptp[2058]: anon warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Oct  8 03:25:48 localhost pptp[2066]: anon log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Oct  8 03:25:48 localhost pptp[2066]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Oct  8 03:25:48 localhost pptp[2066]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Oct  8 03:25:48 localhost pppd[2057]: Exit.

2,google查资料得到修改下面这个文件
cat /etc/ppp/options
require-mppe
require-mppe-128
mppe-stateful
CentOS6.3中默认是lock,我把这个删除了,加上上面的内容,问题解决

3,重新拨号log信息如下
Oct 10 08:09:39 localhost kernel: PPP generic driver version 2.4.2
Oct 10 08:09:39 localhost pppd[2019]: pppd 2.4.5 started by root, uid 0
Oct 10 08:09:39 localhost pptp[2020]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Oct 10 08:09:39 localhost pppd[2019]: Using interface ppp0
Oct 10 08:09:39 localhost pppd[2019]: Connect: ppp0 <--> /dev/pts/2
Oct 10 08:09:39 localhost pptp[2030]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Oct 10 08:09:39 localhost pptp[2030]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Oct 10 08:09:39 localhost pptp[2030]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Oct 10 08:09:40 localhost pptp[2030]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Oct 10 08:09:40 localhost pptp[2030]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Oct 10 08:09:40 localhost pptp[2030]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 47065).
Oct 10 08:09:43 localhost pptp[2030]: anon log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct 10 08:09:43 localhost pptp[2030]: anon log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is 00000000, recv_accm is FFFFFFFF
Oct 10 08:09:43 localhost pptp[2030]: anon warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
Oct 10 08:09:43 localhost pppd[2019]: CHAP authentication succeeded
Oct 10 08:09:43 localhost kernel: PPP MPPE Compression module registered
Oct 10 08:09:43 localhost pppd[2019]: MPPE 128-bit stateless compression enabled
Oct 10 08:09:45 localhost pppd[2019]: local  IP address 10.0.0.4
Oct 10 08:09:45 localhost pppd[2019]: remote IP address 10.0.0.1



后来这个问题在Debian 6.0中同样出现了,用同样的方法解决

    你可能想看:

    扫描二维码推送至手机访问。

    版权声明:本文由皇冠云发布,如需转载请注明出处。

    本文链接:https://www.idchg.com/info/32891.html

    分享给朋友:

    “linux下连接windows2003 ppoe 服务器windows连接linux服务器” 的相关文章

    如何通过 NameCheap 注册 $0.99 便宜域名并选择合适后缀

    在如今的网络世界,获取一个合适的域名可以说是非常关键的。对我来说,域名不仅是一个网站的门牌,更是品牌的第一印象。最近,NameCheap 推出了一个令人兴奋的优惠活动,注册域名低至 $0.99 每年,这绝对是个让人心动的机会。想到能够以这样的低价拥有一个域名,真的是让我忍不住想赶紧注册。 相信大家对...

    选择合适的域名注册商,轻松完成域名注册流程

    在如今数字化的时代,域名注册变得越来越重要。它不仅是建立个人或企业在线身份的第一步,也是一种品牌保护和业务推广的手段。在互联网上,域名就像是你的地址,方便别人找到你。因此,选择一个合适的域名注册商显得尤为重要。 域名注册商,是那些提供域名注册、管理和支持服务的公司。可以想象成他们是光明正大的中介,帮...

    搬瓦工:新手必备的VPS主机服务与瓦工实践经验分享

    1. 搬瓦工的概述 你好,今天我们来聊聊“搬瓦工”。这个名字可能对很多人来说有些陌生,但实际上它是一个由加拿大IT7 Networks公司推出的VPS主机品牌。简单来说,搬瓦工为用户提供了一种虚拟的服务器租赁服务,尤其适合那些想要搭建网站或学习Linux的新手。最吸引人的是,它的性价比非常高,价格也...

    如何有效使用WP Rocket插件提升WordPress网站性能

    WP Rocket是一个强大的高级WordPress缓存插件,它的使用对于提升网站的速度和性能起着至关重要的作用。如今,网站的加载速度对于用户体验和SEO排名都有着重要的影响。WP Rocket通过一系列功能和设置,帮助用户轻松优化自己的网站,进而增加访问量和客户满意度。 在使用WP Rocket插...

    全面解析VPS测评:如何选择最佳虚拟专用服务器

    了解VPS(虚拟专用服务器)对许多人来说并不陌生。在我们的网络环境中,VPS作为一种重要的服务器解决方案,广泛应用于网站托管、应用开发、以及各种在线服务的支持。VPS让用户可以在共享环境中获得类似独立服务器的资源,提供了灵活性和更好的性能。与共享主机相比,VPS的显著优势在于更高的资源保障和自定义能...

    如何使用 Linode Backups 保障数据安全与恢复

    在现代数字世界中,数据的安全性与可恢复性至关重要。Linode Backups 正是为此而生的一项服务。Linode Backups 是 Linode 提供的一项付费服务,旨在自动化用户数据的备份过程,能够让用户更加轻松地管理和恢复数据。对我来说,这项服务让人感到安心,尤其是在处理重要项目时,存在这...