Re: in-kernel PPPoE doesn't like my authname

2005-09-30 Thread Can Erkin Acar
Talmage wrote:
 I'm planning on implementing a OpenBSD all-in-one router/firewall/ 
 PPPoE_client/VPN_server and have been having issues getting the in- 
 kernel PPPoE to work which is the first thing I'm working on.  I've  
 checked the pppoe(4) manpages but still haven't been able to get it  
 to work.

Your hostname.pppoe0 is bad. See below:
[snip]
 
 $ cat /etc/hostname.pppoe0
 pppoedev em1
 !/sbin/ifconfig em1 up
 !/usr/sbin/spppcontrol \$if myauthproto=pap

there is no line continuation character at the end, so
the next line is passed to ifconfig as a new command.
either join the lines or use: 

  !/usr/sbin/spppcontrol \$if myauthproto=pap \

to connect the lines.

 [EMAIL PROTECTED] myauthkey=SECRET
 !/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0x
 !/sbin/route add default XXX.XXX.XXX.80
 up

For debugging pppoe authentication, you can use
spppcontrol -v pppoe0 to check see the current auth settings,
and tcpdump to watch what credentials are being sent.

an example tcpdump command would be:

  tcpdump -nevX -s 1500 -i em1 no ip



in-kernel PPPoE doesn't like my authname

2005-09-29 Thread Talmage
I'm planning on implementing a OpenBSD all-in-one router/firewall/ 
PPPoE_client/VPN_server and have been having issues getting the in- 
kernel PPPoE to work which is the first thing I'm working on.  I've  
checked the pppoe(4) manpages but still haven't been able to get it  
to work.


Here's the message I get while booting up
--
ifconfig: pppoe0: phase established
[EMAIL PROTECTED]: bad value
add net default: gateway XXX.XXX.XXX.80
...
--

Obviously somethings wrong with myauthname.  Does the in-kernel pppoe  
have problems with long usernames?  or the % character?

then once boot-up is complete I keep getting these messages

--
Sep 30 21:36:10 hostname /bsd: pppoe0: pap failure
Sep 30 21:36:10 hostname /bsd: pppoe0: phase terminate
Sep 30 21:36:10 hostname /bsd: pppoe0: phase dead
Sep 30 21:36:20 hostname /bsd: pppoe0: pap failure
Sep 30 21:36:20 hostname /bsd: pppoe0: phase terminate
Sep 30 21:36:20 hostname /bsd: pppoe0: phase dead
--

and keeps repeating every 10~20 sec.
Here are my config files and ifconfig (I cut out irrelevant info)


$ cat /etc/hostname.em1
inet XXX.XXX.XXX.81 255.255.255.248 NONE media autoselect

$ cat /etc/hostname.pppoe0
pppoedev em1
!/sbin/ifconfig em1 up
!/usr/sbin/spppcontrol \$if myauthproto=pap
[EMAIL PROTECTED] myauthkey=SECRET
!/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0x
!/sbin/route add default XXX.XXX.XXX.80
up

$ ifconfig
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9
em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
address: 00:e0:81:24:f5:da
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet XXX.XXX.XXX.81 netmask 0xfff8 broadcast XXX.XXX.XXX.87
pflog0: flags=0 mtu 33224
pfsync0: flags=0 mtu 2020
enc0: flags=0 mtu 1536
pppoe0: flags=8811UP,POINTOPOINT,SIMPLEX,MULTICAST mtu 1492
dev: em1 state: PADI sent
sid: 0x0 PADI retries: 22 PADR retries: 0
inet 0.0.0.0 -- 0.0.0.1 netmask 0x
inet6 fe80::207:e9ff:fe10:bedc%pppoe0 -  prefixlen 64  
scopeid 0xa



some more info:

-using stable branch of 3.7
-obviously my ISP uses PPPoE for authentication
-I have 5 static IP addressses XXX.XXX.XXX.81~86
-gateway to ISP is XXX.XXX.XXX.80, broadcast XXX.XXX.XXX.87
-ftth internet connection

em1 is going to be used as the WAN port with static IP XXX.XXX.XXX.81
em2 is not setup yet but will act as a bridge between em1 for static IPs
em3 is not setup yet but will be NAT interface for internal LAN


I still have a lot to configure to get it to work well but I need to  
get PPPoE working first so I can at least connect to the net.  I have  
no clue as to why PPPoE is not working besides the possible  
myauthname problem.  Any suggestions/help will be appreciated.  I can  
post my dmesg if that would help.  Thanks.


Kory T