A way to increase PPPoE initialization timeout?
-
I need a way to increase the timeout for PPPoE.
My ISP is slow to respond to PADI packets and keeps retrying forever. The PADO packet comes back in 10-15 seconds, and pfsense timeouts within 9 seconds and I cant find a way to override it in pfsense. Can anyone tell me how I can do that?
Thanks,
-
-
@aelakkad anyone?
-
-
Hmm, OK, after some digging it appears that is the hard coded default:
https://sourceforge.net/p/mpd/svn/HEAD/tree/tags/RELEASE_5_9/src/pppoe.c#l34And I don't think it reads in anything else you can use to change it. You would have to recompile the mpd5 binary with a different value. Or patch it to read a conf value and then recompile.
Steve
-
@stephenw10 yes! I asked in freebsd forums and someone said the same thing! But the said the pppoe.c file would be under a couple of folders under /ports which I can't find. Do you have any idea where the file is in pfsense? Thanks!
-
@stephenw10 can you point me to where mpd5 binary is stored?
-
I don't believe the actual mpd5 code base is in the main FreeBSD repo. Probably some licensing restriction (Edit: Nope!). The port pulls the code from sourceforge when it build then applies some patches, which are present:
https://github.com/pfsense/FreeBSD-ports/tree/devel/net/mpd5/filesThe binary the port creates is in /usr/local/sbin
-
@stephenw10 any idea how to patch over the patch that pfsense already doesโ๏ธ
-
The real patch would require some coding. Ideally we would want to add that value as a conf variable that is read in and used if it's present. Probably not that hard for someone familiar with the code but that isn't me!
To simply test a longer timeout I would try just rebuilding the port with a different hardcoded value. That might mean an additional patch for that one line. Or changing the existing patch for that file.
-
@stephenw10 ok thank you I will try