linux pppoe server troubles - PPP

This is a discussion on linux pppoe server troubles - PPP ; hi2all I have problem with setting up pppoe-server. On this page I get instruction for setting http://listas.conectiva.com.br/lista.../06/msg00025.h tml Well - on LCP phase - PPPd writes to syslog wl1 pppd[11794]: sent [LCP ConfReq id=0x1 0x453aa6f6>] BUT!!! my tcpdump or tethereal ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: linux pppoe server troubles

  1. linux pppoe server troubles

    hi2all
    I have problem with setting up pppoe-server.

    On this page I get instruction for setting
    http://listas.conectiva.com.br/lista.../06/msg00025.h
    tml

    Well - on LCP phase - PPPd writes to syslog

    wl1 pppd[11794]: sent [LCP ConfReq id=0x1 0x453aa6f6>]

    BUT!!! my tcpdump or tethereal don`t see such frame!! ((
    Meantime - I see such LCP requests from pppoe client

    # in syslog:
    wl1 pppd[11794]: rcvd [LCP ConfReq id=0x0 ]

    # in tethereal - sniffer :
    ----------------------------------------------------------------------------
    ----------
    Frame 7 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:32.934606000
    Time delta from previous packet: 0.003523000 seconds
    Time relative to first packet: 8.601848000 seconds
    Frame Number: 7
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Session (0x8864)
    PPP-over-Ethernet Session
    Version: 1
    Type: 1
    Code: Session Data
    Session ID: 0001
    Payload Length: 16
    Point-to-Point Protocol
    Protocol: Link Control Protocol (0xc021)
    PPP Link Control Protocol
    Code: Configuration Request (0x01)
    Identifier: 0x00
    Length: 14
    Options: (10 bytes)
    Maximum Receive Unit: 1492
    Magic number: 0x00337571
    ----------------------------------------------------------------------------
    ----------

    Its not good news for me...
    Maybe somebody listen about such sitiation?
    Help!

    thx2all


  2. Re: linux pppoe server troubles

    "Evgeny Boksha" writes:

    ]hi2all
    ]I have problem with setting up pppoe-server.

    ]On this page I get instruction for setting
    ]http://listas.conectiva.com.br/listas/linuxisp-br/arquivo/2003/06/msg00025.h
    ]tml

    ]Well - on LCP phase - PPPd writes to syslog

    ]wl1 pppd[11794]: sent [LCP ConfReq id=0x1 ]0x453aa6f6>]

    ]BUT!!! my tcpdump or tethereal don`t see such frame!! ((
    ]Meantime - I see such LCP requests from pppoe client

    ]# in syslog:
    ]wl1 pppd[11794]: rcvd [LCP ConfReq id=0x0 ]

    ]# in tethereal - sniffer :
    ]----------------------------------------------------------------------------
    ]----------
    ]Frame 7 (60 on wire, 60 captured)
    ] Arrival Time: Dec 25, 2003 15:35:32.934606000
    ] Time delta from previous packet: 0.003523000 seconds
    ] Time relative to first packet: 8.601848000 seconds
    ] Frame Number: 7
    ] Packet Length: 60 bytes
    ] Capture Length: 60 bytes
    ]Ethernet II
    ] Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    ] Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    ] Type: PPPoE Session (0x8864)
    ]PPP-over-Ethernet Session
    ] Version: 1
    ] Type: 1
    ] Code: Session Data
    ] Session ID: 0001
    ] Payload Length: 16
    ]Point-to-Point Protocol
    ] Protocol: Link Control Protocol (0xc021)
    ]PPP Link Control Protocol
    ] Code: Configuration Request (0x01)
    ] Identifier: 0x00
    ] Length: 14
    ] Options: (10 bytes)
    ] Maximum Receive Unit: 1492
    ] Magic number: 0x00337571
    ]----------------------------------------------------------------------------
    ]----------

    ]Its not good news for me...
    ]Maybe somebody listen about such sitiation?
    ]Help!

    ppp is not ethernet. Only once ppp is actually up and running does it
    act like ethernet. Ie, tcpdump is not the way the debug ppp setup.
    Now if you tell us what your problem is then maybe we could help.


  3. Re: linux pppoe server troubles

    > ppp is not ethernet. Only once ppp is actually up and running does it
    > act like ethernet. Ie, tcpdump is not the way the debug ppp setup.
    > Now if you tell us what your problem is then maybe we could help.


    I see.
    (Thank you for reply)

    Problem...

    OS <> pppd <> rp-pppoe plugin <> pppoe == media == pppoe-client

    1. at first, as I understand - only pppoe frames negotiation (PADI, PADO,
    PADR, PADS)
    2. Then - LCP negotiation - and pppd generates LCP-Config Requests.
    3. This LCP requests passed via rp-pppoe plugin to pppoe
    And there, I think, I have problem.


    When PPPD writes to syslog
    wl1 pppd[11794]: sent [LCP ConfReq id=0x1
    ]
    - tcpdump (or ethereal) Dont see such frame!


    And when I tests pppoe on WinXP and when pppoe session successful
    (Server - is hardware router AT-AR410) - I see frames with LCP-Conf Requests
    on client side (with sniffer Ethereal)


    Look to logs:

    # syslog

    wl1 pppoe-server[11794]: Session 1 created for client 00:30:84:a6:13:c5
    (10.0.0.2) on eth1
    wl1 pppd[11794]: Plugin rp-pppoe.so loaded.
    wl1 pppd[11794]: RP-PPPoE plugin version 3.3 compiled against pppd 2.4.2b3
    wl1 pppd[11794]: pppd 2.4.2b3 started by root, uid 0
    wl1 pppd[11794]: using channel 78
    wl1 pppd[11794]: Using interface ppp0
    wl1 pppd[11794]: Connect: ppp0 <--> /dev/pts/0

    # this frames really dont pass trough interface :
    wl1 pppd[11794]: sent [LCP ConfReq id=0x1 0x453aa6f6>]
    wl1 last message repeated 3 times

    wl1 pppd[11794]: rcvd [LCP ConfReq id=0x0 ]

    # this frame really dont pass trough interface :
    wl1 pppd[11794]: sent [LCP ConfAck id=0x0 ]

    wl1 pppd[11794]: sent [LCP ConfReq id=0x1 0x453aa6f6>]
    wl1 last message repeated 3 times
    wl1 pppd[11794]: rcvd [LCP ConfReq id=0x0 ]
    wl1 pppd[11794]: sent [LCP ConfAck id=0x0 ]
    wl1 pppd[11794]: sent [LCP ConfReq id=0x1 0x453aa6f6>]
    wl1 pppd[11794]: sent [LCP ConfReq id=0x1 0x453aa6f6>]
    wl1 pppoe-server[11792]: Sent PADT
    wl1 pppd[11794]: Terminating on signal 15.
    wl1 pppd[11794]: sent [LCP TermReq id=0x2 "User request"]


    Sniffer log
    #tethereal -V

    #Client 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    #Server 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)

    =========
    Frame 1 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:24.332758000
    Time delta from previous packet: 0.000000000 seconds
    Time relative to first packet: 0.000000000 seconds
    Frame Number: 1
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Session (0x8864)
    PPP-over-Ethernet Session
    Version: 1
    Type: 1
    Code: Session Data
    Session ID: 0009
    Payload Length: 16
    Point-to-Point Protocol
    Protocol: Link Control Protocol (0xc021)
    PPP Link Control Protocol
    Code: Configuration Request (0x01)
    Identifier: 0x00
    Length: 14
    Options: (10 bytes)
    Maximum Receive Unit: 1492
    Magic number: 0x0032f4a7

    Frame 2 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:30.432779000
    Time delta from previous packet: 6.100021000 seconds
    Time relative to first packet: 6.100021000 seconds
    Frame Number: 2
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Discovery (0x8863)
    PPP-over-Ethernet Discovery
    Version: 1
    Type: 1
    Code: Active Discovery Terminate (PADT)
    Session ID: 0009
    Payload Length: 0
    PPPoE Tags

    Frame 3 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:32.927034000
    Time delta from previous packet: 2.494255000 seconds
    Time relative to first packet: 8.594276000 seconds
    Frame Number: 3
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: ff:ff:ff:ff:ff:ff (ff:ff:ff:ff:ff:ff)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Discovery (0x8863)
    PPP-over-Ethernet Discovery
    Version: 1
    Type: 1
    Code: Active Discovery Initiation (PADI)
    Session ID: 0000
    Payload Length: 12
    PPPoE Tags
    Tag: Host-Uniq
    Binary Data: (4 bytes)
    Tag: Service-Name

    Frame 4 (63 on wire, 63 captured)
    Arrival Time: Dec 25, 2003 15:35:32.927335000
    Time delta from previous packet: 0.000301000 seconds
    Time relative to first packet: 8.594577000 seconds
    Frame Number: 4
    Packet Length: 63 bytes
    Capture Length: 63 bytes
    Ethernet II
    Destination: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Source: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Type: PPPoE Discovery (0x8863)
    PPP-over-Ethernet Discovery
    Version: 1
    Type: 1
    Code: Active Discovery Offer (PADO)
    Session ID: 0000
    Payload Length: 43
    PPPoE Tags
    Tag: AC-Name
    String Data: wl1
    Tag: Service-Name
    Tag: AC-Cookie
    Binary Data: (20 bytes)
    Tag: Host-Uniq
    Binary Data: (4 bytes)

    Frame 5 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:32.930656000
    Time delta from previous packet: 0.003321000 seconds
    Time relative to first packet: 8.597898000 seconds
    Frame Number: 5
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Discovery (0x8863)
    PPP-over-Ethernet Discovery
    Version: 1
    Type: 1
    Code: Active Discovery Request (PADR)
    Session ID: 0000
    Payload Length: 36
    PPPoE Tags
    Tag: Service-Name
    Tag: Host-Uniq
    Binary Data: (4 bytes)
    Tag: AC-Cookie
    Binary Data: (20 bytes)

    Frame 6 (32 on wire, 32 captured)
    Arrival Time: Dec 25, 2003 15:35:32.931083000
    Time delta from previous packet: 0.000427000 seconds
    Time relative to first packet: 8.598325000 seconds
    Frame Number: 6
    Packet Length: 32 bytes
    Capture Length: 32 bytes
    Ethernet II
    Destination: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Source: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Type: PPPoE Discovery (0x8863)
    PPP-over-Ethernet Discovery
    Version: 1
    Type: 1
    Code: Active Discovery Session-confirmation (PADS)
    Session ID: 0001
    Payload Length: 12
    PPPoE Tags
    Tag: Service-Name
    Tag: Host-Uniq
    Binary Data: (4 bytes)

    ===== OK - first phase passed. Next - LCP . ==

    # I see full information about client`s LCP requests
    # but I dont see such frame from server on interface...

    Frame 7 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:32.934606000
    Time delta from previous packet: 0.003523000 seconds
    Time relative to first packet: 8.601848000 seconds
    Frame Number: 7
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Session (0x8864)
    PPP-over-Ethernet Session
    Version: 1
    Type: 1
    Code: Session Data
    Session ID: 0001
    Payload Length: 16
    Point-to-Point Protocol
    Protocol: Link Control Protocol (0xc021)
    PPP Link Control Protocol
    Code: Configuration Request (0x01)
    Identifier: 0x00
    Length: 14
    Options: (10 bytes)
    Maximum Receive Unit: 1492
    Magic number: 0x00337571

    Frame 8 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:39.032480000
    Time delta from previous packet: 6.097874000 seconds
    Time relative to first packet: 14.699722000 seconds
    Frame Number: 8
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Session (0x8864)
    PPP-over-Ethernet Session
    Version: 1
    Type: 1
    Code: Session Data
    Session ID: 0001
    Payload Length: 16
    Point-to-Point Protocol
    Protocol: Link Control Protocol (0xc021)
    PPP Link Control Protocol
    Code: Configuration Request (0x01)
    Identifier: 0x00
    Length: 14
    Options: (10 bytes)
    Maximum Receive Unit: 1492
    Magic number: 0x00337571

    Frame 9 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:45.132379000
    Time delta from previous packet: 6.099899000 seconds
    Time relative to first packet: 20.799621000 seconds
    Frame Number: 9
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Session (0x8864)
    PPP-over-Ethernet Session
    Version: 1
    Type: 1
    Code: Session Data
    Session ID: 0001
    Payload Length: 16
    Point-to-Point Protocol
    Protocol: Link Control Protocol (0xc021)
    PPP Link Control Protocol
    Code: Configuration Request (0x01)
    Identifier: 0x00
    Length: 14
    Options: (10 bytes)
    Maximum Receive Unit: 1492
    Magic number: 0x00337571

    Frame 10 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:51.232259000
    Time delta from previous packet: 6.099880000 seconds
    Time relative to first packet: 26.899501000 seconds
    Frame Number: 10
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Session (0x8864)
    PPP-over-Ethernet Session
    Version: 1
    Type: 1
    Code: Session Data
    Session ID: 0001
    Payload Length: 16
    Point-to-Point Protocol
    Protocol: Link Control Protocol (0xc021)
    PPP Link Control Protocol
    Code: Configuration Request (0x01)
    Identifier: 0x00
    Length: 14
    Options: (10 bytes)
    Maximum Receive Unit: 1492
    Magic number: 0x00337571

    Frame 11 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:35:57.332079000
    Time delta from previous packet: 6.099820000 seconds
    Time relative to first packet: 32.999321000 seconds
    Frame Number: 11
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Session (0x8864)
    PPP-over-Ethernet Session
    Version: 1
    Type: 1
    Code: Session Data
    Session ID: 0001
    Payload Length: 16
    Point-to-Point Protocol
    Protocol: Link Control Protocol (0xc021)
    PPP Link Control Protocol
    Code: Configuration Request (0x01)
    Identifier: 0x00
    Length: 14
    Options: (10 bytes)
    Maximum Receive Unit: 1492
    Magic number: 0x00337571

    # ==== Clent by timeout drop session =========================

    Frame 12 (60 on wire, 60 captured)
    Arrival Time: Dec 25, 2003 15:36:03.432117000
    Time delta from previous packet: 6.100038000 seconds
    Time relative to first packet: 39.099359000 seconds
    Frame Number: 12
    Packet Length: 60 bytes
    Capture Length: 60 bytes
    Ethernet II
    Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Type: PPPoE Discovery (0x8863)
    PPP-over-Ethernet Discovery
    Version: 1
    Type: 1
    Code: Active Discovery Terminate (PADT)
    Session ID: 0001
    Payload Length: 0
    PPPoE Tags


    Frame 13 (37 on wire, 37 captured)
    Arrival Time: Dec 25, 2003 15:36:03.432423000
    Time delta from previous packet: 0.000306000 seconds
    Time relative to first packet: 39.099665000 seconds
    Frame Number: 13
    Packet Length: 37 bytes
    Capture Length: 37 bytes
    Ethernet II
    Destination: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    Source: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    Type: PPPoE Discovery (0x8863)
    PPP-over-Ethernet Discovery
    Version: 1
    Type: 1
    Code: Active Discovery Terminate (PADT)
    Session ID: 0001
    Payload Length: 17
    PPPoE Tags
    Tag: Generic-Error
    String Data: Received PADT

    ================================================== =====

    LINUX 2.4.21
    pppd 2.4.2b3
    rp-pppoe 3.3

    Network Scheme :
    LINUX --DWL1700 <802.11.b> DWL810+ --AT-AR220E with NAT(pppoeclient)-LAN

    Thank you



  4. Re: linux pppoe server troubles

    Evgeny Boksha wrote:
    > hi2all
    > I have problem with setting up pppoe-server.


    > On this page I get instruction for setting
    > http://listas.conectiva.com.br/lista.../06/msg00025.h
    > tml


    Exactly following this may not be the correct thing to do. In any case,
    the source for pppd version 2.4.2b3 is available at ftp.samba.org in
    /pub/ppp, and it includes the source for a rp-pppoe PPPoE plugin. It
    may be more compatible with that pppd than one from the RP site.

    If you change to the pppd/plugins directory and do "make" that should
    compile a PPPoE plugin compatible with the later 2.4.x series kernels
    where much of PPPoE is now a part of the kernel. The Makefile line
    # SUBDIRS += radius
    may have to be uncommented for a server setup.

    > Well - on LCP phase - PPPd writes to syslog


    > wl1 pppd[11794]: sent [LCP ConfReq id=0x1 > 0x453aa6f6>]


    > BUT!!! my tcpdump or tethereal don`t see such frame!! ((
    > Meantime - I see such LCP requests from pppoe client


    Yes, from the sniffer output it looked like that that no PPPoE
    frame that was sent appeared on the interface. I've not done PPPoE
    (thankfully), so the suggestion above is the only one that comes
    to mind.

    > # in syslog:
    > wl1 pppd[11794]: rcvd [LCP ConfReq id=0x0 ]


    > # in tethereal - sniffer :
    > ----------------------------------------------------------------------------
    > ----------
    > Frame 7 (60 on wire, 60 captured)
    > Arrival Time: Dec 25, 2003 15:35:32.934606000
    > Time delta from previous packet: 0.003523000 seconds
    > Time relative to first packet: 8.601848000 seconds
    > Frame Number: 7
    > Packet Length: 60 bytes
    > Capture Length: 60 bytes
    > Ethernet II
    > Destination: 00:50:fc:cd:7c:61 (EDIMAX_cd:7c:61)
    > Source: 00:30:84:a6:13:c5 (ALLIED_a6:13:c5)
    > Type: PPPoE Session (0x8864)
    > PPP-over-Ethernet Session
    > Version: 1
    > Type: 1
    > Code: Session Data
    > Session ID: 0001
    > Payload Length: 16
    > Point-to-Point Protocol
    > Protocol: Link Control Protocol (0xc021)
    > PPP Link Control Protocol
    > Code: Configuration Request (0x01)
    > Identifier: 0x00
    > Length: 14
    > Options: (10 bytes)
    > Maximum Receive Unit: 1492
    > Magic number: 0x00337571
    > ----------------------------------------------------------------------------
    > ----------


    > Its not good news for me...
    > Maybe somebody listen about such sitiation?
    > Help!


    > thx2all



    --
    Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13"
    PPP-Q&A links, downloads: http://ckite.no-ip.net/
    /* My confidence in this answer (X), on a scale of 0 to 10:
    |----|----|----|----|----|----|----|----|----|----|
    0----1----2----3----4----5----6----7----8----9----10 */


+ Reply to Thread