How to recover a lost PPPoE password

10 10 2007

Our DSL provider recently upgraded our internet connection to 6 Mbps. This lead to problems with our DSL modem, though, because it was over 5 years old and wasn’t designed for this. As a result, the modem didn’t sync anymore and we were left without net access for a couple of days until a replacement was shipped to us. The problem: The replacement was DSL modem and router in one, and required configuration, including the original login and password for our DSL service. The documents couldn’t be found and we didn’t want go through the hassle of resetting our account and wait for a new password, so I tried to retrieve it from the old DSL router (a D-Link box) instead. Here’s how:

First, emerge net-dialup/rp-pppoe. This should automatically emerge net-dialup/ppp, too.
Put the following into /etc/ppp/pppoe-server-options
lcp-echo-interval 10
lcp-echo-failure 2

Then enter your DSL account login into /etc/ppp/pap-secrets (otherwise it will refuse access without asking for a password)
# Secrets for authentication using PAP
# client server secret IP addresses
"" * ""

Now start the PPPoE server as root: pppoe-server -F -k -I eth0
If you now connect your DSL router to the eth0 network interface of your linux box and monitor /var/log/messages you should see the connection attempts with the password in cleartext. Done!




3 responses

25 01 2008
Robbie Plank

I am trying to recover my pppoe password using the above method and I get to the point where you are supposed to monitor /var/log/messages and I can’t seem to locate where the password should be in plain text. If you could point me in the right direction that would be great.

18 04 2008

Sorry, I didn’t see your comment until just yet. I’m not able to redo this myself at the moment, so I can’t show you what the debug info would look like. It is rather obvious to spot once the connection attempt is made, though.

It should be sufficient to do a tail -f /var/log/messages and hook up the router to the ethernet port of the pppoe-server box. But your router has to be forced to make the connection attempt, so you need some other device behind it which is requesting access to the internet. Maybe that’s what you were missing?

22 08 2010

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: