www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

PPPoE not connecting !!!

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Signal a BUG
View previous topic :: View next topic  
Author Message
Alderon



Joined: 23 Jun 2011
Posts: 20

PostPosted: Sun Aug 12, 2012 3:34 pm    Post subject: PPPoE not connecting !!! Reply with quote

I use PPPoE with aDSL modem. It was working on zs1b16 without problems, but after upgrading to zs2rc1 PPPoE client is unable to connect to the server. PPPoE is not working also with new configured profile.

pppd log:

17:17:38 pppd 2.4.3 started by root, uid 0
17:17:38 Using interface ppp0
17:17:38 Connect: ppp0 <--> /dev/pts/0
17:18:09 LCP: timeout sending Config-Requests
17:18:09 Connection terminated.
17:18:09 Using interface ppp0
17:18:09 Connect: ppp0 <--> /dev/pts/1
17:18:14 Child process /usr/sbin/pppoe -p /tmp/pppoe-ppp0.pid.pppoe -I ETH02 -T 80 -U -m 1412 (pid 17047) terminated with signal 15
17:18:14 tcflush failed: Bad file descriptor
17:18:14 Exit.
17:18:19 pppd 2.4.3 started by root, uid 0
17:18:20 Using interface ppp0
17:18:20 Connect: ppp0 <--> /dev/pts/0
17:18:25 LCP terminated by peer
17:18:25 Modem hangup
17:18:25 Connection terminated.
17:18:25 Exit.
....

17:27:56 pppd 2.4.3 started by root, uid 0
17:27:56 Using interface ppp0
17:27:56 Connect: ppp0 <--> /dev/pts/0
17:27:57 LCP terminated by peer
17:27:57 Modem hangup
17:27:57 Connection terminated.
17:27:57 Exit.

This log was created after puting ppp0 intreface from down to up state.
Back to top
View user's profile Send private message
aemarx



Joined: 15 Jul 2010
Posts: 17

PostPosted: Sun Aug 12, 2012 11:42 pm    Post subject: Reply with quote

have you try reset the modem?
Back to top
View user's profile Send private message
Alderon



Joined: 23 Jun 2011
Posts: 20

PostPosted: Tue Aug 14, 2012 9:06 pm    Post subject: Reply with quote

I tried reset, factory default and reconfigure modem, but without effect. But manualy configuring and starting pppoe client was working. Problem is probably in pppoe configuration script.[/url][/code]
Back to top
View user's profile Send private message
iames



Joined: 24 Aug 2012
Posts: 1

PostPosted: Fri Aug 24, 2012 10:25 pm    Post subject: Reply with quote

I am having the same issue. It seems no /etc/pap-secrets or /etc/chap-secrets file are created, so pppd is unable to login.

Adding the following piece of code to Pre-Boot Script solves the problem (quick and dirty fix).

Code:
echo "\"iames\" *       \"PASSWORD\"" > /etc/ppp/pap-secrets
echo "\"iames\" *       \"PASSWORD\"" > /etc/ppp/chap-secrets
chmod 600 /etc/ppp/chap-secrets /etc/ppp/pap-secrets


*NOTE: replace PASSWORD with your corresponding password.
Back to top
View user's profile Send private message
Alderon



Joined: 23 Jun 2011
Posts: 20

PostPosted: Sat Aug 25, 2012 11:10 am    Post subject: Reply with quote

Thanks for your solution iames. It works great!
Back to top
View user's profile Send private message
pomidorov



Joined: 12 Nov 2010
Posts: 7
Location: Ukraine

PostPosted: Mon Aug 27, 2012 6:37 pm    Post subject: Reply with quote

Thank you, iames. It's works!
Back to top
View user's profile Send private message
deepzero



Joined: 19 Apr 2012
Posts: 2

PostPosted: Wed Aug 29, 2012 4:10 pm    Post subject: Solving Reply with quote

Hi all Guys!


the problem there is no softlink at the /tmp/ppp-secrets in /etc/ppp directory.
I guess is a GUI issue.

I'm posting my own work-aroud in Pre Boot:

ln -s /tmp/ppp-secrets /etc/ppp/pap-secrets
ln -s /tmp/ppp-secrets /etc/ppp/chap-secrets
chmod 600 /etc/ppp/chap-secrets
chmod 600 /etc/ppp/pap-secrets

Byez
Back to top
View user's profile Send private message
pomidorov



Joined: 12 Nov 2010
Posts: 7
Location: Ukraine

PostPosted: Sat Sep 08, 2012 5:12 pm    Post subject: Reply with quote

Thank you deepzero!
Back to top
View user's profile Send private message
ztao



Joined: 01 Nov 2012
Posts: 7

PostPosted: Sat Nov 03, 2012 3:53 am    Post subject: Reply with quote

chmod 600 /etc/ppp/chap-secrets
chmod: failed to get attributes of `/etc/ppp/chap-secrets': No such file or directory
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Signal a BUG All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group