[afnog] ppp.conf help
Jacques Marneweck
jacques at powertrip.co.za
Wed Jul 19 16:11:53 EAT 2006
Alan Levin wrote:
Hi Alan
Copy the ppp.conf you currently use to ppp.conf.adsl1and ppp.conf.adsl2
for example. One could then cp /etc/ppp/ppp.conf.adsl2
/etc/ppp/ppp.conf and restart the userland ppp afterwards. One could in
theory use a script to copy based on which username already exists in
/etc/ppp/ppp.conf. The chgrep command in /usr/ports/sysutils/chgrep is
useful for finding text and replacing it:
chgrep oldusername newusername /etc/ppp/ppp.conf
chgrep oldpassword newpassword /etc/ppp/ppp.conf
I would hook up a menu (using pdmenu) for your wife's usage. Something
like Change ADSL Username which executes a script via sudo behind the
scenes.
Or one can use pppctl ("set server /var/run/ppp/loop-iburst") and use
pppctl to connect to /var/run/ppp/loop-iburst or whatever you called
that socket and issue commands to change username, password, etc.
Regards
--jm
> Hi,
>
> I want to configure my pppoe connection (using my home freebsd
> gateway) to try a second username when the first account caps. (or
> teach my wife how to edit ppp.conf herself, but this is less ideal
> for a many reasons). There are a few convoluted ways I considered but
> I'm looking for something simple. I've read userppp in the handbook,
> and I'm sufficiently incapable.
>
> This is my ppp.conf file...
>
> pppoe:
>
> set device PPPoE:fxp0
> set mru 1492
> set mtu 1492
> set speed sync
> enable lqr
> set lqrperiod 5
> set cd 5
> set dial
> set login
> set timeout 0
> set authname DSL***@****.net
> set authkey ***
> set ifaddr 172.16.0.1/0 172.16.0.2/0 255.255.255.0 0.0.0.0
> add default HISADDR
> enable dns
>
> Anyone know the elegant solution?
>
> cheers,
>
> aLan
>
> _______________________________________________
> afnog mailing list
>
More information about the afnog
mailing list