PPPoE WAN fails to reconnect after link loss
-
@saswatasarkar13 said in PPPoE WAN fails to reconnect after link loss:
Link: reconnection attempt x in y seconds
If you can provoke this log sequence yourself ?
If so, what happens when you remove for a moment the physical Ethernet plug from pfSense.If the log sequence continues after a reconnect of the Ethernet WAN plug, what happens when you unplug this Ethernet cable, and plug it into a Windows PC that you have previously set up to connect and use this PPPoE connection : does it connect right away - or does it (the Windows PC) also spins around and not connect ?
-
@stephenw10 Sorry I am super late. Here is pcap file.packetcapture 06.02.22-3.cap.
Thanks a lot.
-
@gertjan Sorry for a very late reply, it reconnects on a linux box fine.
-
That pcap does not look to have been taken on the parent interface, I see no PPPoE traffic there so not much to see. I needs to be on the PPPoE parent so we can see if anything is coming back from the other side at all.
Steve
-
@stephenw10 I have done it on the wan side.The top interface the ss.
I have done it on the wan interface, Should I assign the" re0" to OPT1 or something else and then do the capture? -
Delete you actual WAN interface.
Assign the available "re0" to be your WAN - and select as connection type "PPPOE".
See also the documentation.Or
Assign the available "re0" to be your WAN (with IPv4 Configuration Type and IPv6 Configuration Type set to None).
Then goto Interfaces > Interface Assignments and select PPPs : -
I have configured it this way (The way you suggested now) from the first config of wan.
-
@saswatasarkar13
My second method isn't right I guess.Your re0 interface :
is not know as 'WAN'. That's not good ;)
Compare t with my image : my em0 is known as 'WAN'.Fall back first to the method - the one from from the pfSense manual.
-
Nope you need to assign re0 as a separate interface, it will appear as OPT1. Then you can packet capture on that in the gui and you will see the PPPoE traffic over it.
Alternatively you can capture at the command line and just choose re0 without assigning it.
https://docs.netgate.com/pfsense/en/latest/diagnostics/packetcapture/tcpdump.htmlSteve
-
@stephenw10
These were the settings while capturing packets.
This is the capture file. packetcapture 08.02.22.7z
-
Ok great you can see all the PPPoE traffic there.
What exactly happened during that capture?
The last incoming reply to your IP appears to be at 43s (6816). Then at 53s (6908) pfSense sends a PPPoE terminate request but never sees anything back. Shortly after that at 56s it starts trying to initiate a new PPPoE session but never sees a reply.
However some time after that there is traffic coming in for the old WAN IP using the old PPP session ID so it appears the remote side has not terminated the session and is still trying to use it.
After that we see some traffic arriving on re0 still but it is not PPP encapsulated so possibly other clients on the same ISP badly configured.
Once it's in that state does it eventually recover or do you need to do something to enable it?
Steve
-
@stephenw10 said in PPPoE WAN fails to reconnect after link loss:
What exactly happened during that capture?
I simulated an internet disconnection using the following steps:-
- Started the packet capture.
- Turned of my ONT (Fiber modem in bridge mode).
- Truened it back on again.
@stephenw10 said in PPPoE WAN fails to reconnect after link loss:
Once it's in that state does it eventually recover or do you need to do something to enable it?
I have to reboot the whole pfsense box. Then it gets connected automatically. But I have tried restarting the nic it does not help.
-
So nothing else restores it?
Rebooting the ONT again?
Reconneting the WAN Ethernet?
Disconnect/reconnect the PPPoE session in pfSense?
Steve
-
- I tested these before. But did these today again. Still Only rebooting works,
- No the same thing. But one thing When I dont use pfsence then the ONT on PPPoE mode does work fine.
- No It does not change anything.
4.I have done it form the gui and it shows that ir is up accually it is not.
When The pppoe Is connected.
When It is showing up but not connected.
-
Hmm, what about resaving the WAN interface?
That would recreate the conf files used for the connection etc.
Steve
-
@stephenw10 unfortunately it does not. I tried it multiple times.
-
Hmm, I wonder what changes then. You could try comparing the pppoe0 files in /tmp and the mpd conf file in /var/etc when it works and when it doesn't.
Steve
-
@stephenw10 The only difference I can see. when disconnected and probbilly trying to reconnect Then ont /temp the only file is the there is the pppoe0_defaultgw file with the address, And when it is all the files are there pppoe0_defaultgw, pppoe0_ip, pppoe0_router, pppoe0up all have the respective ip addresses. and on the other hand the mdp conf file does not change, The file is like this.
startup:
# configure the console
set console close
# configure the web server
set web closedefault:
pppoeclient:
create bundle static wan
set bundle enable ipv6cp
set iface name pppoe0
set iface disable on-demand
set iface idle 0
set iface enable tcpmssfix
set iface up-script /usr/local/sbin/ppp-linkup
set iface down-script /usr/local/sbin/ppp-linkdown
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
#log -bund -ccp -chat -iface -ipcp -lcp -linkcreate link static wan_link0 pppoe set link action bundle wan set link disable multilink set link keep-alive 10 60 set link max-redial 0 set link disable chap pap set link accept chap pap eap set link disable incoming set link mtu 1492 set auth authname "XXXX" set auth password XXXX set pppoe service "" set pppoe iface re0 open
Should I report a bug or something?
-
Hmm, the pcap looks like the remote side just stops responding. It never replies after the link is terminated. So it's hard to say what might be changing across a reboot that then allows it to connect when everything else that happens during a reboot, link disconnect etc does not.
If you use some other PPPoE client that is able to disconnect and reconnect?
Steve
-
@stephenw10 said in PPPoE WAN fails to reconnect after link loss:
If you use some other PPPoE client that is able to disconnect and reconnect?
Yes it does perfectly. Like if dont use ont on bridge mode, I use the pppoe mode. then it does work.