On Thu, Nov 23, 2006 at 01:47:24PM -0500, Arnaud Bergeron wrote: > On 11/23/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote: > >On Thu, Nov 23, 2006 at 12:24:21PM -0500, Alden Pierre wrote: > >> Hello all, > >> > >> I'm able to get userland pppoe working, but I'm having a hard time > >> getting kernel pppoe to work properly. Here are my config > >> files. Is there anything I'm doing wrong, I believe my config file > >> follows what man 4 pppoe states. > >> > >> # file /etc/hostname.pppoe0 > >> > >> inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev xl0 \ > >> authproto pap authname 'username' \ > > ^--------^-- NEEDED? > >> authkey 'password' up > > ^--------^---------- NEEDED? > >> !/sbin/route add default 0.0.0.1 > > > >I did not verify whether it matters, but I do not use `'` in my > >hostname.pppoe0. > > This ends up getting run by /bin/sh so it is a matter of > interpretation by the shell: > > $ echo foo > foo > $ echo 'foo' > foo > > And since the command receives the same string there is no problem. > If the username/password are purely alphanumeric it is not needed, but > if they contain special characters for the shell, they should be > between single quotes so that ifconfig gets them right.
Thanks for clarification. I didn't think about /etc/netstart being a shell script and normal shell expansion taking place. Since it never _hurts_ should pppoe(4) modified to always have `'` because quite a few passwords use special chars (hopefully). --- /usr/src/share/man/man4/pppoe.4.orig Thu Nov 23 22:48:03 2006 +++ /usr/src/share/man/man4/pppoe.4 Thu Nov 23 22:48:32 2006 @@ -106,7 +106,7 @@ .Bd -literal -offset indent inet 0.0.0.0 255.255.255.255 NONE \e pppoedev ne0 authproto pap \e - authname testcaller authkey donttell up + authname 'testcaller' authkey 'donttell' up dest 0.0.0.1 !/sbin/route add default 0.0.0.1 .Ed > > >> # file /etc/hostname.xl0 > >> up > >> > >> Regards, > >> Alden > > > >Regards, > >ahb