[arch-general] FYI: PPPoE with ppp script

Damjan Georgievski gdamjan at gmail.com
Sat Feb 27 17:37:05 EST 2010


This is a script I use to connect to PPPoE with plain pppd...
it expects the corresponding variables: INTERFACE, USERNAME and
PASSWORD set up beforehand.


/usr/sbin/pppd plugin rp-pppoe $INTERFACE \
   user "$USERNAME" password "$PASSWORD" \
   noipdefault noauth defaultroute default-asyncmap \
   noaccomp nodeflate nopcomp novj novjccomp \
   mtu 1492 mru 1492 \
   lcp-echo-interval 30 lcp-echo-failure 4

I usually add either or both of " nodetach debug " at the end for more
information about the status.


ps.
I know that the password "$PASSWORD" is not very secure (since the
pass is visible in "ps ax"),
but on a single user system it mostly doesn't matter. There are
alternatives to that too:

1. put the password in /etc/ppp/pap-secrets and chap-secrets
2. use the "passwordfd" plugin for pppd and write the password to a specific fd
3. use the "passprompt" plugin and only enter the password on the
terminal when you start pppd - no need to store the pass ever



-- 
damjan


More information about the arch-general mailing list