Ladies and gentlemen, nevermind. Finally, I used ppp(8) with pppoe(8) and it works fine with MS-CHAP.
Sorry for the noise. Best regards, Yuri Spirin > Hello, misc. > I have a connection to ISP that requires PPPoE. No hardware like DSL > modem/router, just Ethernet cable from ISP. I setting up PPPoE on my > 3.8-release router using pppoe(4). > # ifconfig pppoe0 create > # cat /etc/hostname.pppoe0 > pppoedev fxp2 > !/sbin/ifconfig fxp2 up > !/usr/sbin/spppcontrol \$if \ > myauthproto=chap \ > myauthname=mylogin \ > myauthkey=mypassword > !/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0xffffffff > !/sbin/route add default 0.0.0.1 > up > All the way like in man 4 pppoe. > # sh /etc/netstart > # spppcontrol pppoe0 > pppoe0: phase=establish > myauthproto=chap myauthname="mylogin" > hisauthproto=chap hisauthname="" > And connection is never up, just hangs on 'establish' phase. > # tcpdump -neti fxp2 //0:a0:c9:8c:75:67 is my MAC, > //0:13:7f:8d:e5:1a is ISP server MAC > 0:a0:c9:8c:75:67 ff:ff:ff:ff:ff:ff 8863 32: PPPoE-Discovery > code Initiation, version 1, type 1, id 0x0000, length 12 > tag Service-Name, length 0 > tag Host-Uniq, length 4 \000~\227o > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8863 60: PPPoE-Discovery > code Offer, version 1, type 1, id 0x0000, length 40 > tag Service-Name, length 0 > tag Host-Uniq, length 4 \000~\227o > tag AC-Name, length 4 k7-1 > tag AC-Cookie, length 16 I'p[:eC E\221z\025\221+pk > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8863 52: PPPoE-Discovery > code Request, version 1, type 1, id 0x0000, length 32 > tag Service-Name, length 0 > tag AC-Cookie, length 16 I'p[:eC E\221z\025\221+pk > tag Host-Uniq, length 4 \000~\227o > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8863 60: PPPoE-Discovery > code Confirm, version 1, type 1, id 0xf6aa, length 32 > tag Service-Name, length 0 > tag AC-Cookie, length 16 I'p[:eC E\221z\025\221+pk > tag Host-Uniq, length 4 \000~\227o > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 32: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 12 > LCP: Configure-Request, Magic-Number=204725418, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 12 > LCP: Configure-Ack, Magic-Number=204725418, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5 > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5 > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 21 > LCP: Configure-Request, Max-Rx-Unit=1492, Auth-Prot CHAP/Microsoft, > Magic-Number=-421802100, Vendor-Ext > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 31: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 11 > LCP: Configure-Reject, Auth-Prot CHAP/MD5, Vendor-Ext > 0:13:7f:8d:e5:1a 0:a0:c9:8c:75:67 8864 60: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 6 > LCP: Terminate-Request > 0:a0:c9:8c:75:67 0:13:7f:8d:e5:1a 8864 26: PPPoE-Session > code Session, version 1, type 1, id 0xf6aa, length 6 > LCP: Terminate-Ack > I suspect that ISP uses Microsoft software that doesn't understand > CHAP/MD5. Or my router doesn't understand CHAP/Microsoft. > Two questions then: > 1) Am I wrong? > 2) If I'm not wrong, is there any workaround for this? Or I just > missed something simple and obviuos? > Thank you for your attention. > Yuri Spirin > mailto:[EMAIL PROTECTED]