Override MPD PPPoE client timeout?

Is there a way to override the MPD pppoe client timeout waiting for PAD (PADO mainly) packets? not the keep-alive.

My ISP is very slow to respond to the PADI packets (11-15 seconds minimum) so MPD in pfsense keeps timing out after 9 seconds and retrying forever. If I could just make it wait for 5 more seconds it'll work. I tried editing mpd_wan.conf and adding set pad_timeout 30, but it doesn't do anything.

Any idea how I can do that? Thanks in advance!
 
yea but it does use MPD that is used by pfsense, MPD is not made exclusively for pfsense. The same issue is there when I used a vanilla freebsd
 
and I have also tried everything with pfsense support they say it is basically not from pfsense and they don't even control it, I am simply asking for advice
 
/usr/ports/net/mpd5/
make extract patch
edit work/mpd-5.9/src/pppoe.c and search for #define PPPOE_CONNECT_TIMEOUT 9 and change it
make all deinstall install
test
hope
enjoy
Code:
--- work/mpd-5.9/src/pppoe.c.orig    2020-09-06 17:33:02.000000000 +0300
+++ work/mpd-5.9/src/pppoe.c    2023-09-27 19:51:27.072745000 +0300
@@ -32,7 +32,7 @@
 #define PPPOE_MTU        1492    /* allow room for PPPoE overhead */
 #define PPPOE_MRU        1492

-#define PPPOE_CONNECT_TIMEOUT    9
+#define PPPOE_CONNECT_TIMEOUT    25

 #define ETHER_DEFAULT_HOOK    NG_ETHER_HOOK_ORPHAN
 
/usr/ports/net/mpd5/
make extract patch
edit work/mpd-5.9/src/pppoe.c and search for #define PPPOE_CONNECT_TIMEOUT 9 and change it
make all deinstall install
test
hope
enjoy
Code:
--- work/mpd-5.9/src/pppoe.c.orig    2020-09-06 17:33:02.000000000 +0300
+++ work/mpd-5.9/src/pppoe.c    2023-09-27 19:51:27.072745000 +0300
@@ -32,7 +32,7 @@
 #define PPPOE_MTU        1492    /* allow room for PPPoE overhead */
 #define PPPOE_MRU        1492

-#define PPPOE_CONNECT_TIMEOUT    9
+#define PPPOE_CONNECT_TIMEOUT    25

 #define ETHER_DEFAULT_HOOK    NG_ETHER_HOOK_ORPHAN
Thank you! I will try it out, appreciate it a lot!
 
Back
Top