Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pppd dont replace defaultroute #115

Closed
dojolabs-ci opened this issue Feb 27, 2019 · 7 comments
Closed

pppd dont replace defaultroute #115

dojolabs-ci opened this issue Feb 27, 2019 · 7 comments

Comments

@dojolabs-ci
Copy link

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,

@razorness
Copy link

razorness commented Mar 5, 2019

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

@giox069
Copy link

giox069 commented Oct 23, 2019

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.

@paulusmack
Copy link
Collaborator

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.

@giox069
Copy link

giox069 commented Nov 9, 2020

* 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".

@sthibaul
Copy link
Contributor

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.

@Neustradamus
Copy link
Member

Good news: @paulusmack has merged #200.

Thanks to @sthibaul!

cc @giox069, @dojolabs-ci, @razorness, @rogers0, @madhatter0, @Firefishy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants