Commit Graph

19 Commits

Author SHA1 Message Date
Xavier Henner 24544a6260 optimisations
* use pyke's re cache
* get an unlimited number of ldap attributes
* get a perturbator for the OTP secret, in case of stolen phone
* lowercase the username, to avoid strange behaviour with the OTP
2019-07-12 22:33:22 +02:00
Xavier Henner 3d1801ee50 use regexps 2019-07-12 18:23:40 +02:00
Xavier Henner dbdbe8aef0 windows sux :) 2019-07-11 19:41:33 +02:00
Xavier Henner eba6749ada remove useless dep 2019-07-11 15:12:40 +02:00
Xavier Henner 3c0434ee1f Use sudo instead of a custom script 2019-07-11 14:40:46 +02:00
Xavier Henner f73b2c117a add stats and kill http calls 2019-07-11 12:20:08 +02:00
Xavier Henner 24406ca0f4 add external ip route command 2019-07-11 08:15:26 +02:00
Xavier Henner 1c02c700fa manage auth-retry 2019-07-11 08:14:38 +02:00
Xavier Henner 7418a70afc add dynamic IP attributions 2019-07-10 19:00:52 +02:00
Xavier Henner 88f5ac3765 finish OTP code 2019-07-10 18:40:15 +02:00
Xavier Henner 68de442333 Add logging, including the json one
get infos from I've been pwned and the API on install.dm.gg/vpn-log.php

and send mail if there is anything strange
2019-07-10 17:47:43 +02:00
Xavier Henner 44cfdea6ed should work with multiple openvpn servers
the goal is to have an udp instance, and a tcp/443 one

can handle connected and disconnected messages
2019-07-10 15:47:55 +02:00
Xavier Henner 274e824630 working prototype
can push OTP request
can push routes
2019-07-09 23:37:37 +02:00
Xavier Henner f975a19f65 OTP routines 2019-07-09 12:34:45 +02:00
Xavier Henner 55ae63dc1d vendor and go mod. add ldap file 2019-07-09 09:53:46 +02:00
Xavier Henner 29efc7be3f basic ldap auth algorithm 2019-07-09 01:44:18 +02:00
Xavier Henner dd38706b0b read configuration file 2019-07-08 22:32:12 +02:00
Xavier Henner 9dc7d19811 save work in progress 2019-07-08 18:41:04 +02:00
Xavier Henner cdaf0dd68d Initial tests 2019-07-08 16:36:56 +02:00