On Fri, Mar 23, 2018 at 01:55:30PM -0600, Jon Martin wrote:
> 
> Yes, my Win 10 box can establish a PPPoE connection with the modem in
> bridge mode.  I will see what WinDump or Wireshark can reveal about what
> it is doing.

Well well, this is interesting.  Win10 told to only use CHAP fails.  Told
to only use PAP works.  So double authentication must not be necessary.

My observations inline.  I edited out the timestamps and a bunch of other
things so I could do diffs across the various dumps I took.

Windows using only PAP:

%time% :TELUS: :WINDOWS: 8863 76: PPPoE-Discovery
        code Offer, version 1, type 1, id 0x0000, length 56
        tag AC-Name, length 12 EDTNABXTAR03
        tag Host-Uniq, length 12 \037\000\000\000\000\000\000\0002\000\000\000
        tag Service-Name, length 0
        tag AC-Cookie, length 16 
\266b\003\242\336R\261\237\337\001\\200|\360\301\360
%time% :WINDOWS: :TELUS: 8863 60: PPPoE-Discovery
        code Request, version 1, type 1, id 0x0000, length 40
        tag Service-Name, length 0
        tag Host-Uniq, length 12 \037\000\000\000\000\000\000\0003\000\000\000
        tag AC-Cookie, length 16 
\266b\003\242\336R\261\237\337\001\\200|\360\301\360
%time% :TELUS: :WINDOWS: 8863 60: PPPoE-Discovery
        code Confirm, version 1, type 1, id 0x1234, length 20
        tag Service-Name, length 0
        tag Host-Uniq, length 12 \037\000\000\000\000\000\000\0003\000\000\000
%time% :WINDOWS: :TELUS: 8864 43: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 23
        LCP: Configure-Request, Max-Rx-Unit=1480, Magic-Number=193158203, 
Prot-Field-Compr PFC, Add-Ctrl-Field-Compr ACFC, Call-Back[|lcp]

*** These extra fields are something OpenBSD doesn't do, but I don't think
    they are significant. ***

%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 21
        LCP: Configure-Request, Max-Rx-Unit=1460, Auth-Prot CHAP/MD5, 
Magic-Number=1287494669, Vendor-Ext
%time% :WINDOWS: :TELUS: 8864 30: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 10
        LCP: Configure-Nak, Auth-Prot PAP[|lcp]

*** Telus wants to do CHAP, Windows says no, just like Open does. ***

%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 9
        LCP: Configure-Reject, Call-Back, Vendor-Ext
%time% :WINDOWS: :TELUS: 8864 40: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Request, Max-Rx-Unit=1480, Magic-Number=193158203, 
Prot-Field-Compr PFC, Add-Ctrl-Field-Compr ACFC[|lcp]
%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Request, Max-Rx-Unit=1460, Auth-Prot PAP, 
Magic-Number=1287494669, Vendor-Ext
%time% :WINDOWS: :TELUS: 8864 40: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Ack, Max-Rx-Unit=1460, Auth-Prot PAP, 
Magic-Number=1287494669[|lcp]
%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Ack, Max-Rx-Unit=1480, Magic-Number=193158203, 
Prot-Field-Compr PFC, Add-Ctrl-Field-Compr ACFC, Vendor-Ext

*** Some arguing about configuration. ***

%time% :WINDOWS: :TELUS: 8864 40: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: 0x0c
%time% :WINDOWS: :TELUS: 8864 45: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 25
        LCP: 0x0c
%time% :WINDOWS: :TELUS: 8864 46: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 26
        LCP: 0x0c

*** LCP identification packets? ***

%time% :WINDOWS: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere
%time% :WINDOWS: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere
%time% :WINDOWS: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere
%time% :WINDOWS: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere
%time% :WINDOWS: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere
%time% :WINDOWS: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere
%time% :WINDOWS: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere

*** I have no idea why Windows spams this. It also pops up a dialog three
    times to enter this. ***

%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Request, Max-Rx-Unit=1452, Auth-Prot PAP, 
Magic-Number=404795686, Vendor-Ext
%time% :WINDOWS: :TELUS: 8864 40: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Request, Max-Rx-Unit=1480, Magic-Number=193158203, 
Prot-Field-Compr PFC, Add-Ctrl-Field-Compr ACFC[|lcp]
%time% :WINDOWS: :TELUS: 8864 40: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Ack, Max-Rx-Unit=1452, Auth-Prot PAP, 
Magic-Number=404795686[|lcp]
%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Ack, Max-Rx-Unit=1480, Magic-Number=193158203, 
Prot-Field-Compr PFC, Add-Ctrl-Field-Compr ACFC, Vendor-Ext
%time% :WINDOWS: :TELUS: 8864 40: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: 0x0c
%time% :WINDOWS: :TELUS: 8864 45: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 25
        LCP: 0x0c
%time% :WINDOWS: :TELUS: 8864 46: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 26
        LCP: 0x0c

*** Still arguing about configuration and more id packets. ***

%time% :WINDOWS: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere
%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 7
        PAP: Authenticate-Ack

*** Authentication successful.  From this point on Windows diverges
    from Open. ***

%time% :WINDOWS: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        IPCP: Configure-Request, IP-Address=0.0.0.0
%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 18
        IPCP: Configure-Reject, Unknown IPCP code 0x82
%time% :WINDOWS: :TELUS: 8864 44: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 24
        IPCP: Configure-Request, IP-Address=0.0.0.0
%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 24
        IPCP: Configure-Nak, IP-Address=192.252.228.129
%time% :WINDOWS: :TELUS: 8864 44: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 24
        IPCP: Configure-Request, IP-Address=192.252.228.129
%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 12
        IPCP: Configure-Request, IP-Address=76.10.191.4
%time% :TELUS: :WINDOWS: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 24
        IPCP: Configure-Ack, IP-Address=192.252.228.129
%time% :WINDOWS: :TELUS: 8864 32: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 12
        IPCP: Configure-Ack, IP-Address=76.10.191.4
%time% :WINDOWS: :TELUS: 8864 62: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 42
        IP: 192-252-228-129.dsl.teksavvy.com > igmp.mcast.net: igmp-2 [v2] [ttl 
1]
%time% :WINDOWS: :TELUS: 8864 350: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 330
        IP: 192-252-228-129.dsl.teksavvy.com.bootpc > 255.255.255.255.bootps: 
htype-#8 hlen:0 xid:0x44e9c760 secs:1536 C:192-252-228-129.dsl.teksavvy.com 
vend-rfc1048 DHCP:INFORM 
CID:0.241.124.24.140.120.190.255.70.143.99.91.213.25.40.226.11 HN:"mywindows" 
VC:77.83.70.84.32.53.46.48 PR:NS+WNS+VO+SM+249+DN

*** A bit of debate over addresses and then Windows is online. ***


OpenBSD using only PAP:

%time% :TELUS: :OPENBSD: 8863 68: PPPoE-Discovery
        code Offer, version 1, type 1, id 0x0000, length 48
        tag AC-Name, length 12 EDTNABXTAR03
        tag Host-Uniq, length 4 K\200H\214
        tag Service-Name, length 0
        tag AC-Cookie, length 16 \222\377q-,p\230I\037:t\250\251\322\031h
%time% :OPENBSD: :TELUS: 8863 52: PPPoE-Discovery
        code Request, version 1, type 1, id 0x0000, length 32
        tag Service-Name, length 0
        tag AC-Cookie, length 16 \222\377q-,p\230I\037:t\250\251\322\031h
        tag Host-Uniq, length 4 K\200H\214
%time% :TELUS: :OPENBSD: 8863 60: PPPoE-Discovery
        code Confirm, version 1, type 1, id 0x1234, length 12
        tag Service-Name, length 0
        tag Host-Uniq, length 4 K\200H\214
%time% :OPENBSD: :TELUS: 8864 36: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Request, Magic-Number=-617813364, Max-Rx-Unit=1492[|lcp]
%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 21
        LCP: Configure-Request, Max-Rx-Unit=1460, Auth-Prot CHAP/MD5, 
Magic-Number=306492429, Vendor-Ext
%time% :OPENBSD: :TELUS: 8864 31: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 11
        LCP: Configure-Nak, Auth-Prot PAP[|lcp]

*** CHAP please?  No. ***

%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Ack, Magic-Number=-617813364, Max-Rx-Unit=1492, 
Vendor-Ext
%time% :OPENBSD: :TELUS: 8864 36: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Request, Magic-Number=-617813364, Max-Rx-Unit=1492[|lcp]
%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Ack, Magic-Number=-617813364, Max-Rx-Unit=1492, 
Vendor-Ext
%time% :OPENBSD: :TELUS: 8864 36: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Request, Magic-Number=-617813364, Max-Rx-Unit=1492[|lcp]
%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Ack, Magic-Number=-617813364, Max-Rx-Unit=1492, 
Vendor-Ext
%time% :OPENBSD: :TELUS: 8864 36: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Request, Magic-Number=-617813364, Max-Rx-Unit=1492[|lcp]
%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Ack, Magic-Number=-617813364, Max-Rx-Unit=1492, 
Vendor-Ext
%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Request, Max-Rx-Unit=1460, Auth-Prot PAP, 
Magic-Number=306492429, Vendor-Ext
%time% :OPENBSD: :TELUS: 8864 40: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Ack, Max-Rx-Unit=1460, Auth-Prot PAP, 
Magic-Number=306492429[|lcp]
%time% :OPENBSD: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere
%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Request, Max-Rx-Unit=1452, Auth-Prot PAP, 
Magic-Number=1462616641, Vendor-Ext
%time% :OPENBSD: :TELUS: 8864 40: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 20
        LCP: Configure-Ack, Max-Rx-Unit=1452, Auth-Prot PAP, 
Magic-Number=1462616641[|lcp]
%time% :OPENBSD: :TELUS: 8864 36: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Request, Magic-Number=-617813364, Max-Rx-Unit=1492[|lcp]
%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 16
        LCP: Configure-Ack, Magic-Number=-617813364, Max-Rx-Unit=1492, 
Vendor-Ext
%time% :OPENBSD: :TELUS: 8864 56: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 36
        PAP: Authenticate-Request, Peer-Id=myteka...@teksavvy.com, 
Passwd=HiThere
%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 7
        PAP: Authenticate-Ack

*** Roughly the same debate about configuration, then successful
    authentication. ***

%time% :OPENBSD: :TELUS: 8864 26: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 6
        LCP: Terminate-Request

*** Ker-plonk.  Instead of working on getting an IP address, Open
    requests termination. ***

%time% :TELUS: :OPENBSD: 8864 60: PPPoE-Session
        code Session, version 1, type 1, id 0x1234, length 6
        LCP: Terminate-Ack
%time% :OPENBSD: :TELUS: 8863 20: PPPoE-Discovery
        code Terminate, version 1, type 1, id 0x1234, length 0

*** Which Telus duly obliges. ***


I feel like I'm missing something very obvious.

Reply via email to