OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: franco on February 22, 2016, 08:31:46 am

Title: [MERGED INTO 16.1.5] MTU > 1492 in PPPoE -- RFC 4638
Post by: franco on February 22, 2016, 08:31:46 am
Hi guys,

The latest development version finally offers GUI support for RFC 4638, we appreciate any help in testing this so it can be merged into 16.1.4 or 16.1.5 for general availability.

The feature ticket is here: https://github.com/opnsense/core/issues/572

The RFC for the avid reader can be found here: https://tools.ietf.org/html/rfc4638


Cheers,
Franco
Title: Re: [CALL FOR TESTING] MTU > 1492 in PPPoE -- RFC 4638
Post by: franco on February 25, 2016, 10:02:15 am
Still need some help here :)
Title: Re: [CALL FOR TESTING] MTU > 1492 in PPPoE -- RFC 4638
Post by: windozer on February 29, 2016, 10:09:34 am
Couldn't get it to work. I did a reboot and checked ifconfig after setting MTU 1500 in (1)Interfaces>Wan, and (2)Interfaces>PTP>pppoe-advanced. I didn't try setting 1&2 together. I didn't see anything in the GUI; I'm on the latest dev.

I noticed that the MTU info field in Interfaces>Overview>Wan/lan is missing.
Title: Re: [CALL FOR TESTING] MTU > 1492 in PPPoE -- RFC 4638
Post by: AdSchellevis on February 29, 2016, 12:02:18 pm
Hi windozer,

Can you try to setup all via the interface itself? if your wan connection uses pppoe it will show the size its going to use for the pppoe connection and you shouldn't have to change any advanced settings then.

Thanks in advance,

Regards,

Ad
Title: Re: [CALL FOR TESTING] MTU > 1492 in PPPoE -- RFC 4638
Post by: windozer on March 01, 2016, 08:15:54 am
Updated, did setup wizard after factory reset, twice. The Interface>WAN shows "calculated ppp mtu : 1492"
Title: Re: [CALL FOR TESTING] MTU > 1492 in PPPoE -- RFC 4638
Post by: AdSchellevis on March 01, 2016, 08:21:03 am
That's correct, you setup the physical layer, the ppp mtu is calculated according to that. So if you want ppp(oe) to use 1500, you need to setup 1508 here.
Title: Re: [CALL FOR TESTING] MTU > 1492 in PPPoE -- RFC 4638
Post by: windozer on March 01, 2016, 08:54:31 am
Okay great. As soon as I type 1508 into the MTU, the "calculated ppp mtu :" changes to 1500. After WAN reconnect, it's working.

Code: [Select]
root@OPNsense:~ # ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1508
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:0c:29:70:8a:70
        inet6 fe80::20c:29ff:fe70:8a70%em0 prefixlen 64 scopeid 0x1
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet 1000baseT <full-duplex>
        status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:0c:29:70:8a:7a
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::1:1%em1 prefixlen 64 scopeid 0x2
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
pflog0: flags=100<PROMISC> metric 0 mtu 33160
pfsync0: flags=0<> metric 0 mtu 1500
        syncpeer: 0.0.0.0 maxupd: 128 defer: off
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
enc0: flags=0<> metric 0 mtu 1536
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pppoe0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1500
        inet6 fe80::20c:29ff:fe70:8a70%pppoe0 prefixlen 64 scopeid 0x7
        inet 2.97.45.156 --> 92.51.208.1 netmask 0xffffffff
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

Code: [Select]
Mar 1 10:34:19 ppp: [wan] IFACE: Rename interface ng0 to pppoe0
Mar 1 10:34:19 ppp: [wan] IFACE: Up event
Mar 1 10:34:13 ppp: [wan] 2.97.48.166 -> 92.50.208.1
Mar 1 10:34:13 ppp: [wan] IPCP: LayerUp
Mar 1 10:34:13 ppp: [wan] IPCP: state change Ack-Sent --> Opened
Mar 1 10:34:13 ppp: [wan] SECDNS 8.8.8.8
Mar 1 10:34:13 ppp: [wan] PRIDNS 8.8.4.4
Mar 1 10:34:13 ppp: [wan] IPADDR 2.97.48.166
Mar 1 10:34:13 ppp: [wan] IPCP: rec'd Configure Ack #3 (Ack-Sent)
Mar 1 10:34:13 ppp: [wan] SECDNS 8.8.8.8
Mar 1 10:34:13 ppp: [wan] PRIDNS 8.8.4.4
Mar 1 10:34:13 ppp: [wan] IPADDR 2.97.48.166
Mar 1 10:34:13 ppp: [wan] IPCP: SendConfigReq #3
Mar 1 10:34:13 ppp: [wan] SECDNS 8.8.8.8
Mar 1 10:34:13 ppp: [wan] PRIDNS 8.8.4.4
Mar 1 10:34:13 ppp: [wan] 2.97.48.166 is OK
Mar 1 10:34:13 ppp: [wan] IPADDR 2.97.48.166
Mar 1 10:34:13 ppp: [wan] IPCP: rec'd Configure Nak #2 (Ack-Sent)
Mar 1 10:34:13 ppp: [wan] IPV6CP: LayerFinish
Mar 1 10:34:13 ppp: [wan] IPV6CP: state change Req-Sent --> Stopped
Mar 1 10:34:13 ppp: [wan] IPV6CP: protocol was rejected by peer
Mar 1 10:34:13 ppp: [wan_link0] LCP: protocol IPV6CP was rejected
Mar 1 10:34:13 ppp: [wan_link0] LCP: rec'd Protocol Reject #63 (Opened)
Mar 1 10:34:13 ppp: [wan] SECDNS 0.0.0.0
Mar 1 10:34:13 ppp: [wan] PRIDNS 0.0.0.0
Mar 1 10:34:13 ppp: [wan] IPADDR 0.0.0.0
Mar 1 10:34:13 ppp: [wan] IPCP: SendConfigReq #2
Mar 1 10:34:13 ppp: [wan] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Mar 1 10:34:13 ppp: [wan] IPCP: rec'd Configure Reject #1 (Ack-Sent)
Mar 1 10:34:13 ppp: [wan] IPCP: state change Req-Sent --> Ack-Sent
Mar 1 10:34:13 ppp: [wan] IPADDR 92.50.208.1
Mar 1 10:34:13 ppp: [wan] IPCP: SendConfigAck #119
Mar 1 10:34:13 ppp: [wan] 92.50.208.1 is OK
Mar 1 10:34:13 ppp: [wan] IPADDR 92.50.208.1
Mar 1 10:34:13 ppp: [wan] IPCP: rec'd Configure Request #119 (Req-Sent)
Mar 1 10:34:13 ppp: [wan] IPV6CP: SendConfigReq #1
Mar 1 10:34:13 ppp: [wan] IPV6CP: state change Starting --> Req-Sent
Mar 1 10:34:13 ppp: [wan] IPV6CP: Up event
Mar 1 10:34:13 ppp: [wan] SECDNS 0.0.0.0
Mar 1 10:34:13 ppp: [wan] PRIDNS 0.0.0.0
Mar 1 10:34:13 ppp: [wan] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Mar 1 10:34:13 ppp: [wan] IPADDR 0.0.0.0
Mar 1 10:34:13 ppp: [wan] IPCP: SendConfigReq #1
Mar 1 10:34:13 ppp: [wan] IPCP: state change Starting --> Req-Sent
Mar 1 10:34:13 ppp: [wan] IPCP: Up event
Mar 1 10:34:13 ppp: [wan] IPV6CP: LayerStart
Mar 1 10:34:13 ppp: [wan] IPV6CP: state change Initial --> Starting
Mar 1 10:34:13 ppp: [wan] IPV6CP: Open event
Mar 1 10:34:13 ppp: [wan] IPCP: LayerStart
Mar 1 10:34:13 ppp: [wan] IPCP: state change Initial --> Starting
Mar 1 10:34:13 ppp: [wan] IPCP: Open event
Mar 1 10:34:13 ppp: [wan] Bundle: Status update: up 1 link, total bandwidth 64000 bps
Mar 1 10:34:13 ppp: [wan_link0] Link: Join bundle "wan"
Mar 1 10:34:13 ppp: [wan_link0] Link: Matched action 'bundle "wan" ""'
Mar 1 10:34:13 ppp: [wan_link0] LCP: authorization successful
Mar 1 10:34:13 ppp: [wan_link0] MESG: Login ok
Mar 1 10:34:13 ppp: [wan_link0] PAP: rec'd ACK #1 len: 13
Mar 1 10:34:13 ppp: [wan_link0] LCP: LayerUp
Mar 1 10:34:13 ppp: [wan_link0] PAP: sending REQUEST #1 len: 22
Mar 1 10:34:13 ppp: [wan_link0] PAP: using authname "USERNAME"
Mar 1 10:34:13 ppp: [wan_link0] LCP: auth: peer wants PAP, I want nothing
Mar 1 10:34:13 ppp: [wan_link0] LCP: state change Ack-Sent --> Opened
Mar 1 10:34:13 ppp: [wan_link0] MAGICNUM 0x9d0944b8
Mar 1 10:34:13 ppp: [wan_link0] MRU 1500
Mar 1 10:34:13 ppp: [wan_link0] LCP: rec'd Configure Ack #2 (Ack-Sent)
Mar 1 10:34:13 ppp: [wan_link0] MAGICNUM 0x9d0944b8
Mar 1 10:34:13 ppp: [wan_link0] MRU 1500
Mar 1 10:34:13 ppp: [wan_link0] LCP: SendConfigReq #2
Mar 1 10:34:13 ppp: [wan_link0] PROTOCOMP
Mar 1 10:34:13 ppp: [wan_link0] LCP: rec'd Configure Reject #1 (Ack-Sent)
Mar 1 10:34:13 ppp: [wan_link0] LCP: state change Req-Sent --> Ack-Sent
Mar 1 10:34:13 ppp: [wan_link0] MAGICNUM 0x1b021611
Mar 1 10:34:13 ppp: [wan_link0] AUTHPROTO PAP
Mar 1 10:34:13 ppp: [wan_link0] MRU 1500
Mar 1 10:34:13 ppp: [wan_link0] LCP: SendConfigAck #62
Mar 1 10:34:13 ppp: [wan_link0] MAGICNUM 0x1b021611
Mar 1 10:34:13 ppp: [wan_link0] AUTHPROTO PAP
Mar 1 10:34:13 ppp: [wan_link0] MRU 1500
Mar 1 10:34:13 ppp: [wan_link0] LCP: rec'd Configure Request #62 (Req-Sent)
Mar 1 10:34:13 ppp: [wan_link0] MAGICNUM 0x9d0944b8
Mar 1 10:34:13 ppp: [wan_link0] MRU 1500
Mar 1 10:34:13 ppp: [wan_link0] PROTOCOMP
Mar 1 10:34:13 ppp: [wan_link0] LCP: SendConfigReq #1
Mar 1 10:34:13 ppp: [wan_link0] LCP: state change Starting --> Req-Sent
Mar 1 10:34:13 ppp: [wan_link0] LCP: Up event
Mar 1 10:34:13 ppp: [wan_link0] Link: UP event
Mar 1 10:34:13 ppp: [wan_link0] PPPoE: connection successful
Mar 1 10:34:13 ppp: [wan_link0] PPPoE: rec'd PPP-Max-Payload '1500'
Mar 1 10:34:13 ppp: PPPoE: rec'd ACNAME "AL301"
Mar 1 10:34:07 ppp: [wan_link0] PPPoE: Connecting to '1'
Mar 1 10:34:07 ppp: [wan_link0] PPPoE: Set PPP-Max-Payload to '1500'
Mar 1 10:34:07 ppp: [wan_link0] LCP: LayerStart
Mar 1 10:34:07 ppp: [wan_link0] LCP: state change Initial --> Starting
Mar 1 10:34:07 ppp: [wan_link0] LCP: Open event
Mar 1 10:34:07 ppp: [wan_link0] Link: OPEN event
Mar 1 10:34:07 ppp: [wan] Bundle: Interface ng0 created
Mar 1 10:34:07 ppp: web: web is not running
Mar 1 10:34:07 ppp: process 99678 started, version 5.8 (root@srv-opnsense-build64 22:05 23-Feb-2016)
Mar 1 10:34:07 ppp: 
Mar 1 10:34:07 ppp: Multi-link PPP daemon for FreeBSD
Mar 1 10:34:03 ppp: process 89947 terminated
Mar 1 10:34:03 ppp: [wan_link0] Link: Shutdown
Title: Re: [CALL FOR TESTING] MTU > 1492 in PPPoE -- RFC 4638
Post by: AdSchellevis on March 01, 2016, 08:55:44 am
Great! thank you very much for testing.
Title: Re: [CALL FOR TESTING] MTU > 1492 in PPPoE -- RFC 4638
Post by: franco on March 01, 2016, 08:10:37 pm
Will be shipped with tomorrow's 16.1.5, thanks! :D