pppoe服務器問題

发布于 2022-07-22 05:07:43 字数 2424 浏览 9 评论 6

Suse 10.1,ppp-2.4.3-31
去下载了rp-pppoe 3.8,然后
./configure --enalbe-plugin
make
make install

/etc/ppp/pap-secrets配置如下:
#client     server    secret     IP address
"usr"       *            "123"       *

/etc/ppp/chap-secrets的配置和pap-secrets一样

/etc/ppp/pppoe-server-options配置如下:
+pap
+chap
login
lcp-echo-interval 30
lcp-echo-failure 4
ms-dns 10.0.0.1

然后运行:
modprobe pppoe
pppoe-server -I eth0 -N 2 -L 10.0.0.1 -R 10.0.0.100 -r -u

client端提示:
Jan  1 00:05:23  pppd[86]: Starting link
Jan  1 00:05:23  pppd[86]: PPP session is 1
Jan  1 00:05:23  pppd[86]: Connect: ppp0 -> eth0
Jan  1 00:05:26  pppd[86]: Remote message: User not known to the underlying authentication module
Jan  1 00:05:26  pppd[86]: PAP authentication failed
Jan  1 00:05:26  pppd[86]: Connection terminated.
Jan  1 00:05:26  pppd[86]: Exit.

然后我用cat var/log/messages去看,纪录信息如下:
Oct 28 03:46:06 qt5 pppd[7795]: pppd 2.4.3 started by root, uid 0
Oct 28 03:46:06 qt5 pppd[7795]: Using interface ppp1
Oct 28 03:46:06 qt5 pppd[7795]: Connect: ppp1 <--> /dev/pts/2
Oct 28 03:46:07 qt5 pppd[7795]: Warning - secret file /etc/ppp/pap-secrets has world access
Oct 28 03:46:09 qt5 pppd[7795]: Warning - secret file /etc/ppp/pap-secrets has world access
Oct 28 03:46:09 qt5 pppd[7795]: PAP peer authentication failed for usr
Oct 28 03:46:09 qt5 pppd[7795]: Connection terminated.
Oct 28 03:46:09 qt5 pppoe[7796]: read (asyncReadFromPPP): Session 2: Input/output error
Oct 28 03:46:09 qt5 pppd[7795]: Script /usr/sbin/pppoe -n -I eth0 -e 2:00:15:f2:c7:e5:5d -S '' finished (pid 7796), status = 0x1
Oct 28 03:46:09 qt5 pppd[7795]: Exit.
Oct 28 03:46:09 qt5 pppoe-server[7794]: Session 2 closed for client 00:15:f2:c7:e5:5d (10.0.0.101) on eth0
Oct 28 03:46:09 qt5 pppoe-server[7794]: Sent PADT

请问问题出在哪里,是我的pap-scerets写的不对么?

[ 本帖最后由 ghoulr 于 2006-10-31 09:13 编辑 ]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

最终幸福 2022-07-27 23:49:36

另外再问一下,发生LCP timeout一般是什么原因

撩人痒 2022-07-27 23:16:02

我把引号去掉以后还是显示一样的信息。。。

心奴独伤 2022-07-27 20:53:17

把你的pap-secrets里面的引号去掉再看看?

奶茶白久 2022-07-26 03:43:24

恩,我是要用一个linux服务器,来模拟测试路由器的pppoe拨号的,环境里就只有一个服务器,ethernet card一个(eth0),与路由器(asus wl-500gP)的wan port连接起来。

配置文件就是上面说的那3个(pap-secrets,chap-secrets和pppoe-server-options)进行了修改。

然后在路由器里设置账号密码,就出现上面的log信息了。

橘亓 2022-07-26 01:43:50

环境, 配置写清楚一些!

小嗲 2022-07-24 04:05:16

没有人回么。。。顶起来等答案

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文