summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/process.py
AgeCommit message (Collapse)Author
2018-03-28[refactor] move platform constants into leap.bitmaskRuben Pollan
The IS_${platform} constants are used in more places than the vpn module. Let's define them in leap.bitmask.
2018-03-02[bug] debug launchingKali Kaneko
2017-11-02[style] fix formattingKali Kaneko
2017-11-01[refactor] refactor status objectKali Kaneko
2017-11-01[feature] display vpn status on systrayKali Kaneko
2017-09-10[bug] avoid bogus failed statusKali Kaneko
there was an exception catched, AttributeError, that showed up as a transient "failed" state. - Resolves: #9044
2017-08-30[refactor] remove verbose debug infoKali Kaneko
2017-08-30[bug] assign initial empty stateKali Kaneko
2017-08-30[bug] assert vpn management folder existsKali Kaneko
2017-08-30[bug] return if cannot parse stateKali Kaneko
2017-08-30[refactor] mark the listener as implementer of IStateListenerKali Kaneko
2017-08-30[feature] comment out debugging stdoutKali Kaneko
2017-08-30[refactor] restart by allowing to send SIGUSR1 to openvpn processKali Kaneko
by properly allowing openvpn to restart when receiving SIGUSR1, we can reserve the hard process restarts for cases in which the process is aborted. this depends on bitmask-root adding --persist-tun and --persist-key as mandatory/allowed parameters.
2017-08-30[refactor] add state listener to signal state transition to UIKali Kaneko
2017-08-30[refactor] catch failuresKali Kaneko
2017-08-30[feature] allow integer for management verbosityKali Kaneko
2017-08-30[refactor] re-add retries for connecting to managementKali Kaneko
2017-08-30[refactor] move terminate_or_kill to linux launcherKali Kaneko
2017-08-30[refactor] integrate new management protocolKali Kaneko
2017-08-30[bug] avoid state flickering when state string is emptyKali Kaneko
we set status to 'off' by default. - Resolves: #9013
2017-08-14[pkg] fail gracefully if there are errors parsing logskali
2017-07-20[refactor] use VPNManagment in composition instead of inheritanceRuben Pollan
We make an ugly step for that moving the VPNStatus into VPNManagement. Let's iterate on it a second time to clean up that. - Related: #8942
2017-06-29[feat] return starting status for a restarting VPNRuben Pollan
In case of the openvpn process being off, if we are restarting it we'll report the status as 'starting'.
2017-06-29[feat] restart openvpn automaticallyRuben Pollan
Right now we are trying to restart openvpn every 2 seconds, for ever (or until the user turns down the VPN). Maybe we can be more smart making the retries longer with time. - Resolves: #8049
2017-06-16[feat] fix OpenVPN start/stop in OSX using a process canaryKali Kaneko
- correctly start the openvpn process canary - use helper to fix tearing down of the vpn
2017-06-16[refactor] class and module renamingKali Kaneko (leap communications)
2017-06-16[feat] process logs through management interfaceKali Kaneko (leap communications)
2017-06-16[refactor] rename methodsKali Kaneko (leap communications)
2017-06-16[bug] reset traffic when stopping vpnKali Kaneko (leap communications)
also, refactor a bit VPNManagement so that the `connect_to_management` method does not receive connection details. I plan to refactor management so that it is a separate object from the control object (but we need to stablish better its relation with the status parsing class). - Resolves: #8834
2017-06-09[bug] make openvpn and firewall able to launchKali Kaneko
with these fixes, I'm able to finally launch openvpn and firewall on osx. :) all that's left for a minimum vpn release is packaging and installing all the helpers in the proper place.
2017-06-01[refactor] hide mac/linux switch inside process moduleKali Kaneko (leap communications)
2017-06-01[feat] darwin helper commandKali Kaneko (leap communications)
2017-04-27[bug] unify logging style using class attrKali Kaneko (leap communications)
I changed most of the logger statements to use a class attribute, in this way it's easier to identify which class it's logging them. in some cases I leave a module-level logger, when we're either using functions or when the module it's too small. at the same time I did a general review and cleanup of the logging statements.
2017-03-17[feat] report the real status of the VPNRuben Pollan
2017-03-03[feat] get VPN params from eip-service.jsonRuben Pollan
Instead of hardcoding them in the code.
2017-02-23[refactor] rename eip to vpnKali Kaneko (leap communications)
2017-02-23[feature] hard restarts upon ping-restart receivedKali Kaneko (leap communications)
2017-02-23[feature] add up/down traffic in statusKali Kaneko (leap communications)
2017-02-23[feature] parse statusKali Kaneko (leap communications)
- simple status parsing - add separate firewall status - set status for abnormal termination
2017-02-23[feature] add install/uninstall command for helpersKali Kaneko (leap communications)
2017-02-23[refactor] sort out some importsKali Kaneko (leap communications)
2017-02-23[feature] new commands: get_certKali Kaneko (leap communications)
2017-02-23[refactor] split vpn control into some modulesKali Kaneko (leap communications)
2017-02-23[feature] initial port of legacy vpn codeKali Kaneko (leap communications)
non functional at the moment, but started doing some cleanup