-
Notifications
You must be signed in to change notification settings - Fork 326
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
Add script option #153
Add script option #153
Conversation
The script specified will be run after tunnel buildup and before teardown. Very similar to OpenVPN's up/down options. The script will receive info about the tunnel as VPN_* environment variables. This option can be used as an alternative to pppd ip-up/ip-down scripts. Use cases are implementing split DNS, and/or overriding gateway specified routes.
I have modified your branch so that it passes the lint test. |
Thanks for fixing that. I have seen the lint errors in travis, but have not had the time so far to fix them. |
The commits should be logical units with the commit message describing the nature of the change and the reasoning behind it. You seem to have split a single change into multiple commits and didn't provide explanations, which make it sort of difficult to review the changes. Perhaps they could just be squashed together? |
@lkundrak : I agree with you, my merge request contained only a sinlge commit, but turned out that it had lint errors. Dimitri fixed this, so the other commits came from this. |
@terdei While a |
can we close this one? We have added some information on our wiki how to use the already existing pppd mechanism |
what shall we do with this one? One would probably have to squash and rebase the changes manually, but as stated already before, similar functionality is provided by pppd ip-up/down scripts. |
Oh, I have scrolled over my earlier message - so sorry for asking the same question again. Given the fact that nobody has replied in a month I assume we can close it. |
The script specified will be run after tunnel buildup and before teardown. Very similar to OpenVPN's up/down options.
The script will receive info about the tunnel as VPN_* environment variables.
Use cases are implementing split DNS, and/or overriding gateway specified routes.
After implementing this feature for myself, I noticed #101, and the option to use pppd ip-up/ip-down scripts for this task. So this is an alternative to that.