ppp-project/ppp

pppd dont replace defaultroute

Closed this issue · 7 comments

default route dont change even if defaultroute configured
from quick search there is some configuration like "replacedefaultroute" but when configured I got
unrecognized option 'replacedefaultroute
Thanks,

As a workaraound, create executable shell script at: /etc/ppp/ip-up.d:

#!/bin/sh

/sbin/route add default dev ppp0

and at /etc/ppp/ip-down.d:

#!/bin/sh

/sbin/route del default dev ppp0

I usually install pppd on ubuntu or debian where replacedefaultroute is available. Now I have to configure an arch linux installation, and I found that replacedefaultroute is not available under arch.
(I hope I'm posting this message on the correct upstream project ;))

Could someone import the debian patch for replacedefaultrote ?
The debian patch is available here and it seems to come from opensuse.

I looked at the patch. I can't take it as-is because:

  • It doesn't have any authorship information or signed-off-by.
  • I think the replacedefaultroute option should be privileged.
  • The option should really be implemented for Solaris as well as Linux.
* The option should really be implemented for Solaris as well as Linux.

I don't think you will ever find peope available to patch it for free in solaris, due to its extremly low diffusion and commercial vocation.
So, as I can understand, linux will never have a standardized "replacedefaultroute" until we find a solaris developer expert and someone will pay for this solaris patch.
Or someone will fork this project calling it "ppp for linux".

Well, it's not completely "perfect" as in it doesn't implement it on Solaris, but it now has author information and replacedefaultroute is now made a privileged option.