Jun-24-2018, 06:28 AM
program 1 starts the named tunnel:
if self is already running for this tunnel, quit
finds the module describing the named vpn tunnel
imports that module and gets tunnel parameters
invokes openvpn with arguments to start this tunnel
loop gracefully until tunnel comes up
success
program 2 start using the named vpn:
if self is already running for this tunnel, quit
finds the module describing the named vpn tunnel
imports that module and gets tunnel parameters
loop gracefully until tunnel comes up
adds v4 and v6 routes appropriate for this vpn
loop gracefully until target can be reached.
success
i may just want to set (and unset) desired states and have the big main loop take care of everything. tunnels will have to be defined with which end listens and which end connects. a listen end is not up until the client end connects successfully. tunnels are also defined with what routes to add at what priority.
the aws version may involve starting a cloud instance.
there are more programs, such as taking tunnels and vpn down, doing monitoring and restarts.
more ... later ...
if self is already running for this tunnel, quit
finds the module describing the named vpn tunnel
imports that module and gets tunnel parameters
invokes openvpn with arguments to start this tunnel
loop gracefully until tunnel comes up
success
program 2 start using the named vpn:
if self is already running for this tunnel, quit
finds the module describing the named vpn tunnel
imports that module and gets tunnel parameters
loop gracefully until tunnel comes up
adds v4 and v6 routes appropriate for this vpn
loop gracefully until target can be reached.
success
i may just want to set (and unset) desired states and have the big main loop take care of everything. tunnels will have to be defined with which end listens and which end connects. a listen end is not up until the client end connects successfully. tunnels are also defined with what routes to add at what priority.
the aws version may involve starting a cloud instance.
there are more programs, such as taking tunnels and vpn down, doing monitoring and restarts.
more ... later ...
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.