[isolated: see #91] PPPoE reconnect loop

Started by schnipp, February 11, 2018, 02:46:04 PM

Previous topic - Next topic
February 11, 2018, 02:46:04 PM Last Edit: May 06, 2018, 01:16:51 PM by schnipp
Hi all,

I am new here in this forum. First, I would like to thank all the guys involved in releasing Opnsense 18.1. You did a really great job. Unfortunately, I have a problem with my PPPoE connection on the WAN interface. I read a lot to get my problem solved, but no solution yet :'(. Both in the Opnsense forum and some other FreeBSD forums similar problems are discussed, but I am not sure whether they are coincident.

After booting the system the PPPoE WAN connection works fine. But after interruption of the connection (e.g. dropping the connection after 24h like my ISP forces, other failures etc.) the system does not get a new stable PPPoE connection.

I tracked this issue down to packet capture. In general my ISP sends "PPP LCP echo request" packets every 10 seconds which the Opnsense answers immediately. But after interruption and reestablishing the PPPoE connection, the Opnsense does not answer incoming "PPP LCP echo request" packets anymore. After the fifth unanswered echo request my ISP drops the PPPoE connection. Afterwards the Opnsense tries to reconnect and runs in the infinite reconnection loop.

The only solution known to me is to reboot the system.

References:

OPNsense 24.7.11_2-amd64

Hi,

I'm on OPNsense 18.1.2 and I'm facing the same problem. Solution so far is the cron reboot every day.

Kind regards,
Kay-Uwe

Hi Kay-Uwe,

kann you tell me, what kinnd of configuration (e.g. modem) do you have on your WAN site?

I have a Fritzbox7412 in native bridge encapsulation mode and allow PPPoE passthrough. So the Opnsense sends PPPoE packet to the Fritzbox which encapsulates them into VLAN7 before forwarding to the BRAS.

OPNsense 24.7.11_2-amd64

Do you guys have IPS enabled?


Cheers,
Franco

Heh :)
Just saw this.
@Franco, I guess I'm not alone :)
OPNsense v18 | HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s

Team Rebellion Member

February 13, 2018, 05:10:37 PM #5 Last Edit: February 13, 2018, 05:29:13 PM by schnipp
Quote from: franco on February 13, 2018, 03:04:08 PM
Do you guys have IPS enabled?

Hi Franco,

currently, I have still a basic setup without IDS/IPS installed. Details of my setup...

  • OPNsense 18.1.2_2
  • Policy based routing (4 Ethernet interfaces)
  • Mobile and LAN interconnected IPSec VPN
  • 2 Dynamic DNS
  • Inbound/Outbound NAT rules for using SIP-based VoIP
  • DHCPv4, NTP and Unbound DNS (with forwarder)

Furthermore, I have to use a self-compiled NIC driver from Intel, because the NICs of my Board (Intel Atom C3000 Series; Supermicro A2SDi-4C-HLN4F) are not supported by FreeBSD 11.1. But the NICs themselves run seamlessly.

The next steps I want to try are...

  • check PPPoE-forwarder of my DSL-Modem (Fritzbox 7412)
  • extract mpd5 config and test with a vanilla FreeBSD 11.1 installation (Virtual Box)

Kind regards,
schnipp
OPNsense 24.7.11_2-amd64

I was talking to another user today and we're handing out a custom kernel tomorrow to test a theory as we have one change that has not made it to FreeBSD yet...

https://reviews.freebsd.org/D9270


Cheers,
Franco

Hello all,

I just started with my own OPNsense setup and wanted to give some feedback.

So far everything works like a charm. Luckily, there are also no problems with PPPoE. On the WAN side I use the fiber optic bridge modem provided by my ISP Deutsche Telekom.

Regards,
glasi


February 13, 2018, 10:44:34 PM #8 Last Edit: February 13, 2018, 10:47:13 PM by elektroinside
Good to know some ISPs PPPoE link is ok, some are struggling :)
Thanks and welcome to OPNsense!
OPNsense v18 | HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s

Team Rebellion Member

Btw, if you disconnect the WAN network cable and reconnect after a few seconds, is the PPPoE working again? If not, reboot to fix :)
OPNsense v18 | HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s

Team Rebellion Member

Today at midday my Internet stopped working and my Opnsense entered the infinite reconnection loop. Maybe my ISP initiated the termination of the connection (24 hour reconnection?)

Anyhow, it was a good moment to do some more investigation in that situation. So I did some packet captures in parallel on three network interfaces:


  • WAN Interface of Opnsense (connected to 2.)
  • ETH Interface of DSL-Modem (Fritzbox 7412, PPPoEx packet forwarding to 3. and vice versa)
  • DSL Interface of DSL-Modem

Afterwards I rebooted the machine and in parallel started packet capturing of the two interfaces of the DSL-Modem.

Analyzing the capture files shows nothing really strange. The PPPoE packet forwarding between the modem interfaces looks fine. Only one reconfiguration request following a termination info from the ISP is not forwarded back to the Opnsense. This is ok, because there is no valid PPP-Session that moment.

The only difference in communication (1. connection after reboot and 2. reconnection loop) I can see is, that in the 2. case the Opnsense is not answering "LCP echo reply" packets sent by the ISP.

Presumably, there could be a timing issue or race condition somewhere in the PPPoE stack.
OPNsense 24.7.11_2-amd64

February 14, 2018, 11:38:28 PM #11 Last Edit: February 15, 2018, 12:06:35 AM by elektroinside
Perhaps this helps you as well, until this is fixed:
https://forum.opnsense.org/index.php?topic=7316.0
OPNsense v18 | HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s

Team Rebellion Member

Hi,

>Do you guys have IPS enabled?
No, not enabled.

>Btw, if you disconnect the WAN network cable and reconnect after a few seconds, is the PPPoE working again?
No, it needs a restart after.

Setup is:
Deutsche Telekom VDSL 50
Draytek Vigor 130 in PPPoE path-through /bridge mode
APU1D with OPNsense 18.1.2 on eth0

Kind regards,
Kay-Uwe

February 16, 2018, 12:13:48 AM #13 Last Edit: February 16, 2018, 12:17:02 AM by elektroinside
Well... I had a few adventures today with this. It has something to do with FreeBSD 11.1, because with OPNsense 17.7.12 if PPPoE is lost and then reconnected without a reboot, I get a new IPv4 - but IPv6 is lost.

With OPNsense 18.1 which is based on FreeBSD 11.1, only if I restart configd I get reconnected, but for some reason only for a few seconds.. then I get disconnected again and that's it, c'est fini until the next reboot.

So.. my automated method to reboot is the only thing that permanently brings back the PPPoE connection (so far).
OPNsense v18 | HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s

Team Rebellion Member

February 16, 2018, 08:33:26 AM #14 Last Edit: February 16, 2018, 08:41:32 AM by marjohn56
Quote from: elektroinside on February 16, 2018, 12:13:48 AM
With OPNsense 18.1 which is based on FreeBSD 11.1, only if I restart configd I get reconnected, but for some reason only for a few seconds.. then I get disconnected again and that's it, c'est fini until the next reboot.

Yet it does not affect all PPPoE users, me for example.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member