I have spent all of my working day to setup rp-pppoe server on Linux PC for test pppoe client.
so, I though it should be recoded to, for easy setup in the next time.
Mandrake 10.1
o ppp-2.4.2.
o ra-pppoe for plugin, which including pppoe-server.
[root@localhost ppp]# cat pppoe-server-options
# PPP options for the PPPoE server
# LIC: GPL
require-pap
login
lcp-echo-interval 10
lcp-echo-failure 2
plugin rp-pppoe.so
[root@localhost ppp]# cat chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
vincent * 1234 *
below message from debug.
[root@localhost root]# cat out
May 12 16:59:45 localhost pppd[11073]: nobsdcomp^I^I# (from command line)
May 12 16:59:45 localhost pppd[11073]: nodeflate^I^I# (from command line)
May 12 16:59:45 localhost pppd[11073]: pppd 2.4.2 started by root, uid 0
May 12 16:59:45 localhost pppd[11073]: Using interface ppp0
May 12 16:59:45 localhost pppd[11073]: Connect: ppp0 <--> /dev/pts/2
May 12 16:59:48 localhost pppd[11073]: Cannot determine ethernet address for proxy ARP
May 12 16:59:48 localhost pppd[11073]: local IP address 10.0.0.1
May 12 16:59:48 localhost pppd[11073]: remote IP address 10.67.15.4
May 12 17:00:00 localhost CROND[11097]: (mail) CMD (/usr/bin/python -S /usr/lib/mailman/cron/gate_news)
May 12 17:01:00 localhost CROND[11117]: (root) CMD (nice -n 19 run-parts /etc/cron.hourly)
May 12 17:01:10 localhost pppd[11073]: LCP terminated by peer (User request)
May 12 17:01:13 localhost pppd[11073]: Connection terminated.
May 12 17:01:13 localhost pppd[11073]: Connect time 1.5 minutes.
May 12 17:01:13 localhost pppd[11073]: Sent 54 bytes, received 54 bytes.
May 12 17:01:13 localhost pppoe[11074]: read (asyncReadFromPPP): Session 4: Input/output error
May 12 17:01:13 localhost pppd[11073]: Connect time 1.5 minutes.
May 12 17:01:13 localhost pppd[11073]: Sent 54 bytes, received 54 bytes.
May 12 17:01:13 localhost pppd[11073]: Exit.
May 12 17:01:13 localhost pppoe-server[10916]: Session 4 closed for client 00:50:c2:2b:d0:01 (10.67.15.4) on eth0
May 12 17:01:13 localhost pppoe-server[10916]: Sent PADT
May 12 17:01:21 localhost pppoe-server[11169]: Session 5 created for client 00:50:c2:2b:d0:01 (10.67.15.5) on eth0 using Service-Name ''
May 12 17:01:21 localhost pppd[11169]: Plugin rp-pppoe.so loaded.
May 12 17:01:21 localhost pppd[11169]: RP-PPPoE plugin version 3.3 compiled against pppd 2.4.2
May 12 17:01:21 localhost pppd[11169]: Plugin rp-pppoe.so loaded.
May 12 17:01:21 localhost pppd[11169]: RP-PPPoE plugin version 3.3 compiled against pppd 2.4.2
May 12 17:01:21 localhost pppd[11169]: pppd options in effect:
May 12 17:01:21 localhost pppd[11169]: debug debug debug^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: nodetach^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: idle 1800^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: logfd -1^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: connect-delay 5000^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: dump^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: plugin rp-pppoe.so^I^I# (from /etc/ppp/pppoe-server-options)
May 12 17:01:21 localhost pppd[11169]: plugin rp-pppoe.so^I^I# (from /etc/ppp/pppoe-server-options)
May 12 17:01:21 localhost pppd[11169]: require-pap^I^I# (from /etc/ppp/pppoe-server-options)
May 12 17:01:21 localhost pppd[11169]: name vincent^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: password ??????^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: login^I^I# (from /etc/ppp/pppoe-server-options)
May 12 17:01:21 localhost pppd[11169]: ^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: pty /usr/sbin/pppoe -n -I eth0 -e 5:00:50:c2:2b:d0:01 -S ''^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: crtscts^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: noaccomp^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: default-asyncmap^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: mru 1410^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: mtu 1410^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: nopcomp^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: passive^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: lcp-echo-failure 2^I^I# (from /etc/ppp/pppoe-server-options)
May 12 17:01:21 localhost pppd[11169]: lcp-echo-interval 10^I^I# (from /etc/ppp/pppoe-server-options)
May 12 17:01:21 localhost pppd[11169]: novj^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: novjccomp^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: ipcp-accept-local^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: ipcp-accept-remote^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: ms-dns xxx # [don't know how to print value]^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: ms-wins xxx # [don't know how to print value]^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: nodefaultroute^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: proxyarp^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: 10.0.0.1:10.67.15.5^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: noccp^I^I# (from /etc/ppp/options)
May 12 17:01:21 localhost pppd[11169]: nobsdcomp^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: nodeflate^I^I# (from command line)
May 12 17:01:21 localhost pppd[11169]: pppd 2.4.2 started by root, uid 0
May 12 17:01:21 localhost pppd[11169]: Using interface ppp0
May 12 17:01:21 localhost pppd[11169]: Connect: ppp0 <--> /dev/pts/2
May 12 17:01:24 localhost pppd[11169]: Cannot determine ethernet address for proxy ARP
May 12 17:01:24 localhost pppd[11169]: local IP address 10.0.0.1
May 12 17:01:24 localhost pppd[11169]: remote IP address 10.67.15.5
In client(dail out) just involved ...
# pppd plugin /lib/pppd/2.4.4/rp-pppoe.so eth1 user vincent password 1234 persist usepeerdns defaultroute unit 2
however, It seems could not dailin from windowsXP pppoe.
pppoe-server always complain source MAC should be 00:00:00:00:00:00 then
terminate with PADT.
沒有留言:
張貼留言