You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering whether moving the code that changes routing and name resolution parameters to an external script would help write and maintain openfortivpn. Typically most of ipv4.h/ipv4.c would move to that script. Additionally an option should be provided to run an alternative script.
Cons:
Spawning an external script instead of handling that internally in the C code is bad - or so I thought.
Providing an option to run an external script to be run with administrative rights is a security hole. This risk needs to be discussed and mitigated. See for example Wrapper for ip on the OpenVPN community site.
Pros:
A script language is probably more suited to changing routing and name resolution parameters in a portable way.
Relevant code would probably shrink at 10% of the initial C code and would be easier to maintain.
Would help implement and maintain alternative methods of handling the name resolution subsystems (NetworkManager, systemd-resolved, resolvconf) as envisioned in Improve DNS handling? #600.
Linux packagers have a chance to easily adapt the name resolution stuff to their specific distribution.
I'm wondering whether moving the code that changes routing and name resolution parameters to an external script would help write and maintain openfortivpn. Typically most of
ipv4.h/ipv4.cwould move to that script. Additionally an option should be provided to run an alternative script.Cons:
Pros:
pppd). See Revisit running openfortivpn as root? #650.