OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • [isolated: see #91] PPPoE reconnect loop
« previous next »
  • Print
Pages: 1 ... 4 5 [6] 7

Author Topic: [isolated: see #91] PPPoE reconnect loop  (Read 55120 times)

schnipp

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 13
    • View Profile
Re: PPPoE reconnect loop
« Reply #75 on: March 20, 2018, 08:50:02 am »
Quote from: mimugmail on March 19, 2018, 10:05:22 am
@schnipp: Do you use VLANs for PPPoE? I can't imagine this is a general problem but perhaps something that with a reconnect mpd can't push into VLAN

Yes, my PPPoE connection needs VLAN encapsulation (ID 7). But in my case this is not a task of opnsense as in my setup VLAN encapsulation is done by the DSL modem (Fritzbox 7412). PPPoE forwarding by the DSL modem works flawlessly, only incoming packets of unknown PPPoE sessions will be filtered.

I guess mpd is not aware of vlan tagging since tagging is presumably done in the kernel and seems to be transparent to netgraph nodes connected to the virtual interface.

« Last Edit: March 20, 2018, 08:54:17 am by schnipp »
Logged
OPNsense 22.7.10_2-amd64

schnipp

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 13
    • View Profile
Re: PPPoE reconnect loop
« Reply #76 on: March 20, 2018, 08:57:55 am »
Quote from: mimugmail on March 19, 2018, 11:19:08 am
[...]
Perhaps you see something blocked in system.log or filter.log. Just a guess since it hit upon this rules which blocks everything and *could* be related to non ipv4/6

I don't know if this makes sense, because I directly tap the netgraph hooks of the mpd daemon.
Does anybody know where exactly firewall filtering takes place in the whole network stack?
Logged
OPNsense 22.7.10_2-amd64

nallar

  • Newbie
  • *
  • Posts: 15
  • Karma: 4
    • View Profile
Re: PPPoE reconnect loop
« Reply #77 on: March 20, 2018, 01:35:30 pm »
Quote from: franco on March 07, 2018, 04:50:27 pm
No rush, if you can let us know in a week or two. :)


Thanks,
Franco
Still seems to be working :)
Logged

Alphakilo

  • Newbie
  • *
  • Posts: 49
  • Karma: 5
    • View Profile
Re: PPPoE reconnect loop
« Reply #78 on: March 28, 2018, 09:51:38 pm »
Quote from: schnipp on February 21, 2018, 02:52:00 pm
I did some more investigation in this topic and increased the logging of the mpd daemon to get some more information of the ISP's LCP echo probing. I found out that the daemon processes echo request packets and itself claims to send out corresponding reply packets. Unfortunately, the echo reply packets are not seen on the WAN interface :-(

Boom:

Code: [Select]
# tcpdump -i re1_vlan7 pppoes and ppp proto 0xc021
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on re1_vlan7, link-type EN10MB (Ethernet), capture size 262144 bytes
21:08:29.423673 PPPoE  [ses 0x6cd1] LCP, Echo-Request (0x09), id 228, length 10
21:08:29.423880 PPPoE  [ses 0x6cd1] LCP, Echo-Reply (0x0a), id 228, length 10
21:08:39.423718 PPPoE  [ses 0x6cd1] LCP, Echo-Request (0x09), id 229, length 10
# Saved settings for WAN interface, triggering a reconnect
21:08:39.621649 PPPoE  [ses 0x6cd1] LCP, Term-Request (0x05), id 3, length 6
21:08:43.378083 PPPoE  [ses 0x8758] LCP, Conf-Request (0x01), id 1, length 20
21:08:43.380642 PPPoE  [ses 0x8758] LCP, Conf-Request (0x01), id 1, length 18
21:08:43.390085 PPPoE  [ses 0x8758] LCP, Conf-Reject (0x04), id 1, length 8
21:08:43.390547 PPPoE  [ses 0x8758] LCP, Conf-Request (0x01), id 2, length 16
21:08:43.400199 PPPoE  [ses 0x8758] LCP, Conf-Ack (0x02), id 2, length 16
21:08:45.400987 PPPoE  [ses 0x8758] LCP, Conf-Request (0x01), id 3, length 16
21:08:45.410645 PPPoE  [ses 0x8758] LCP, Conf-Ack (0x02), id 3, length 16
21:08:46.369960 PPPoE  [ses 0x8758] LCP, Conf-Request (0x01), id 2, length 20
21:08:46.370666 PPPoE  [ses 0x8758] LCP, Conf-Ack (0x02), id 2, length 20
21:08:57.028608 PPPoE  [ses 0x8758] LCP, Echo-Request (0x09), id 1, length 10
21:09:07.028322 PPPoE  [ses 0x8758] LCP, Echo-Request (0x09), id 2, length 10
21:09:17.027982 PPPoE  [ses 0x8758] LCP, Echo-Request (0x09), id 3, length 10
21:09:27.032313 PPPoE  [ses 0x8758] LCP, Term-Request (0x05), id 3, length 6

Take note of the identifier (id 3) of the last two packets.
If the endpoint follows RFC1661 that means the Term-Request is a direct consequence of the (unanswered) Echo-Request.

I think I owe you a beer, schnipp.

I have a lot going on on my installation (18.1.5). IDS, VPNs, DHCPv4/6, unbound, ...
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6281
  • Karma: 432
    • View Profile
Re: PPPoE reconnect loop
« Reply #79 on: March 29, 2018, 07:07:23 am »
I'd wonder what happens when you set LCP keepalive to be send every second?
Would this force OPN send Echo Requests instead of just receiving them?

Just an idea ...
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

schnipp

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 13
    • View Profile
Re: PPPoE reconnect loop
« Reply #80 on: March 29, 2018, 09:52:44 am »
Quote from: mimugmail on March 29, 2018, 07:07:23 am
I'd wonder what happens when you set LCP keepalive to be send every second?
Would this force OPN send Echo Requests instead of just receiving them?

Just an idea ...

In my configuration it is set by default (set link keep-alive 10 60). I tried to adjust these values in the past without success. I have not seen any keep-alive packets on wire sent out by the mpd daemon, presumably due to other incoming traffric (see http://mpd.sourceforge.net/doc5/mpd20.html).
Logged
OPNsense 22.7.10_2-amd64

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: PPPoE reconnect loop
« Reply #81 on: March 29, 2018, 10:00:55 am »
@schnipp

Is this problem apparent on a 'simple' setup, i.e. no IPS, no VLAN, no VPN etc, just a basic get me to the WAN system? I use pppoe and have zero problems. OK, my system is all statics, but I need pppoe for the initial link up.
« Last Edit: March 29, 2018, 10:03:09 am by marjohn56 »
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

mimugmail

  • Hero Member
  • *****
  • Posts: 6281
  • Karma: 432
    • View Profile
Re: PPPoE reconnect loop
« Reply #82 on: March 29, 2018, 10:09:50 am »
Quote from: schnipp on March 29, 2018, 09:52:44 am
Quote from: mimugmail on March 29, 2018, 07:07:23 am
I'd wonder what happens when you set LCP keepalive to be send every second?
Would this force OPN send Echo Requests instead of just receiving them?

Just an idea ...

In my configuration it is set by default (set link keep-alive 10 60). I tried to adjust these values in the past without success. I have not seen any keep-alive packets on wire sent out by the mpd daemon, presumably due to other incoming traffric (see http://mpd.sourceforge.net/doc5/mpd20.html).

I can add a field for this, but only if it works .. can you try to set it to 1 seconds? I'm not into it but I'd guess if you don't receive in given time the mpd starts sending self, if you set to 5 sec not really sure if this works but with 1 it should ... perhaps worth a try, but it's hard to debug from remote.
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

schnipp

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 13
    • View Profile
Re: PPPoE reconnect loop
« Reply #83 on: March 29, 2018, 10:26:26 am »
Of course, I can try it.
If somebody can tell me, I can alternatively modify the script/global config file with builds the mpd_wan.conf
Logged
OPNsense 22.7.10_2-amd64

schnipp

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 13
    • View Profile
Re: PPPoE reconnect loop
« Reply #84 on: April 05, 2018, 06:21:39 pm »
Over a longer period of time I noticed that this issue sometimes also occurs directly after rebooting the machine. So, it is not only related to a pppoe reconnect. Maybe it's a timing issue.
Logged
OPNsense 22.7.10_2-amd64

elektroinside

  • Hero Member
  • *****
  • Posts: 574
  • Karma: 51
    • View Profile
Re: PPPoE reconnect loop
« Reply #85 on: April 05, 2018, 06:26:32 pm »
This never happened to me...
Logged
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

schnipp

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 13
    • View Profile
Re: PPPoE reconnect loop
« Reply #86 on: April 15, 2018, 04:58:11 pm »
Quote from: mimugmail on March 29, 2018, 10:09:50 am
I can add a field for this, but only if it works .. can you try to set it to 1 seconds? I'm not into it but I'd guess if you don't receive in given time the mpd starts sending self, if you set to 5 sec not really sure if this works but with 1 it should ... perhaps worth a try, but it's hard to debug from remote.

Can you tell me, where OpnSense stores the initial PPP configuration data which builds mpd_wan.conf file at system bootup?
Logged
OPNsense 22.7.10_2-amd64

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13602
  • Karma: 1170
    • View Profile
Re: PPPoE reconnect loop
« Reply #87 on: April 16, 2018, 03:37:49 pm »
The data is inside /conf/config.xml ... the assembly takes place in /usr/local/etc/inc/interfaces.inc function interface_ppps_configure()


Cheers,
Franco
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6281
  • Karma: 432
    • View Profile
Re: PPPoE reconnect loop
« Reply #88 on: May 01, 2018, 06:38:33 pm »
Today I implemented my own OPNsense at home with pppoe and got to the same error. DSL was online and ran into LCP echo timeout.

I did some further investigation and saw that under Interfaces - Assignment the WAN was bound to igb0_vlan7 which is perfectly fine when setting up a DSL, but there is also pppoe_vlan7 available, and after changing to this it's stable now.

No idea if this would fit your problems too but worth a look at assignments.
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13602
  • Karma: 1170
    • View Profile
Re: PPPoE reconnect loop
« Reply #89 on: May 02, 2018, 03:54:33 pm »
pppoe0_vlan7, this sounds funky and not completely right... should be dead after reboot?
Logged

  • Print
Pages: 1 ... 4 5 [6] 7
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • [isolated: see #91] PPPoE reconnect loop
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2