lug-bg: pppoe-server problem....
- Subject: lug-bg: pppoe-server problem....
- From: oneofus@xxxxxxxxxxxxx
- Date: Wed, 20 Aug 2003 14:29:45 +0300 (EEST)
- Importance: Normal
hi all ,
imam slednia problem. Opitwam se da podkaram pppoe-server + radius auth.
and etc shit's , no w momenta sum zapecnal edwa na pppoe-server-a s
pap/chap authorization. kakwo sum naprawil do momenta:
2 linux mashini:
LinuxBOx1 -> eth0 (connected to internet) eth1 (pppoe-server running here)
LinuxBox2 -> eth0 (pppoe client) vruzkata mejdu dwete mashini e cross
cable (UTP CAT5 :)))
configuration na LinuxBOX1:
root:/etc/ppp# cat pap-secrets
"dido" * "parolka" *
root:/etc/ppp# egrep -v '#|^ *$' options
auth
lock
+pap
-chap
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
root:/etc/ppp# egrep -v '#|^ *$' pppoe-server-options
require-pap
login
lcp-echo-interval 10
lcp-echo-failure 2
run-vam pppoe-server sus slednite parametri:
pppoe-server -I eth1 -C InetgPPPoE -S inetgPPPoE -R 10.0.0.2
i v obshti linii towa e configuraciata na pppoe-server-a, sledva config
files na LinuxBOX2:
[root@test ppp]# egrep -v '#|^ *$' options
lock
defaultroute
noipdefault
modem
crtscts
debug
auth
passive
asyncmap 0
name "dido"
[root@test ppp]# cat pap-secrets
"dido" * "parolka" *
[root@test ppp]# egrep -v '#|^ *$' pppoe.conf
ETH='eth0'
USER=dido
DEMAND=no
DNSTYPE=NOCHANGE
PEERDNS=no
DNS1=
DEFAULTROUTE=yes
CONNECT_TIMEOUT=30
CONNECT_POLL=2
ACNAME=InetgPPPoE
SERVICENAME=inetgPPPoE
PING="."
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-adsl.pid"
CLAMPMSS=1412
LCP_INTERVAL=20
LCP_FAILURE=3
PPPOE_TIMEOUT=80
FIREWALL=STANDALONE
LINUX_PLUGIN=
PPPOE_EXTRA=""
PPPD_EXTRA=""
i v obshti linii towa sa config files:
kakvo se poluchawa:
server-a e pusnat po nachina koito posochih po gore (pppoe-server -I eth1
-C InetgPPPoE -S inetgPPPoE -R 10.0.0.2)
ot linuxbox2 puskam:
adsl-start, i poluchawam towa:
[root@test ppp]# adsl-start
................TIMED OUT
/usr/sbin/adsl-start: line 191: 19877 Terminated $CONNECT
"$@" >/dev/null 2>&1
ot logs na LinuxBOX1 wijdam slednoto:
tail /var/log/syslog
Aug 20 14:23:34 crew pppd[31077]: PAP peer authentication failed for dido
Aug 20 14:23:34 crew pppoe[31078]: read (asyncReadFromPPP): Session 4:
Input/output error
Aug 20 14:23:34 crew pppoe-server[31000]: PADT: Generic-Error: RP-PPPoE:
System call error
tail /var/log/messages
Aug 20 14:23:20 crew pppoe-server[31041]: Session 2 created for client
00:50:fc:c1:38:44 (10.0.0.3) on eth1 using Service-Name 'inetgPPPoE'
Aug 20 14:23:20 crew pppd[31041]: pppd 2.4.2b1 started by root, uid 0
Aug 20 14:23:20 crew pppd[31041]: Using interface ppp0
Aug 20 14:23:20 crew pppd[31041]: Connect: ppp0 <--> /dev/pts/9
Aug 20 14:23:20 crew /etc/hotplug/net.agent: assuming ppp0 is already up
Aug 20 14:23:21 crew pppd[31041]: Connection terminated.
Aug 20 14:23:21 crew pppd[31041]: Exit.
Aug 20 14:23:21 crew pppoe-server[31000]: Session 2 closed for client
00:50:fc:c1:38:44 (10.0.0.3) on eth1
Aug 20 14:23:21 crew pppoe-server[31000]: Sent PADT
a v logs na LinuxBOX2 ->
[root@test ppp]# tail /var/log/messages
Sep 19 14:24:05 test pppd[20994]: Connect: ppp0 <--> /dev/pts/1
Sep 19 14:24:05 test pppoe[20995]: PPP session is 6
Sep 19 14:24:06 test pppd[20994]: Remote message: Login incorrect
Sep 19 14:24:06 test pppd[20994]: PAP authentication failed
Sep 19 14:24:06 test pppoe[20995]: Session terminated -- received PADT
from peer
Sep 19 14:24:06 test pppoe[20995]: PADT: Generic-Error: RP-PPPoE: Child
pppd process terminated
Sep 19 14:24:06 test pppd[20994]: Modem hangup
Sep 19 14:24:06 test pppd[20994]: Connection terminated.
Sep 19 14:24:06 test pppd[20994]: Exit.
Sep 19 14:24:06 test adsl-connect: ADSL connection lost; attempting
re-connection.
........ Шах ? :)
prekarah dosta wreme w opiti da namerq chetiwo za implementacia na
pppoe-server no za sujalenie ne uspqh da namerq nishto poweche ot
nqkolko-redovi "HOWTO"-ta , obshto wzeto documentaciata about e malko
oskudna. Shte sum blagodaren na wseki koito se opita dori da mi dade ideq
ot kakwo moje da se poluchi towa , ili oshte poweche da uspee da mi dade
chitavo chetivo za towa ....
P.s. Probwah i s CHAP-Auth , no tam efekta beshe pocheti sushtia....
BR,
Danail Petrow
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|