Commit Graph

386 Commits (master)

Author SHA1 Message Date
Keith Irwin 8c7b6a2d7a
Made the cgi executable 2022-11-06 18:19:10 -07:00
Keith Irwin dfe8875fea
Made the cgi executable 2022-11-06 18:18:34 -07:00
Keith Irwin 6a135649df
Removed logging 2022-11-06 18:14:25 -07:00
Keith Irwin 9b54b6f6fa
Removed .cgi extension 2022-11-06 18:13:52 -07:00
Keith Irwin 1bf3b3e584
Reverted cgi bin stuff 2022-11-06 18:09:47 -07:00
Keith Irwin cb27c1744d
Test different cgibin 2022-11-06 18:06:30 -07:00
Keith Irwin 7a8b8a9280
Fixed cgi-bin hopefully 2022-11-06 18:00:23 -07:00
Keith Irwin 6c01749fa1
Fixed cgi-bin location 2022-11-06 17:56:43 -07:00
Keith Irwin d988ebfba9
Fixed cgi-bin location 2022-11-06 17:56:24 -07:00
Keith Irwin 5254ff66ae
Fixed sed again 2022-11-06 17:54:24 -07:00
Keith Irwin 85a7405e2f
Maybe the order matters 2022-11-06 17:53:15 -07:00
Keith Irwin e8f0f23116
Start over the sed 2022-11-06 17:52:29 -07:00
Keith Irwin bbc0b6f13d
Fixed sed again 2022-11-06 17:49:15 -07:00
Keith Irwin 1109bf8b6c
Fixed sed again 2022-11-06 17:45:53 -07:00
Keith Irwin 7b6e1ddc71
Fixed sed 2022-11-06 17:44:30 -07:00
Keith Irwin dd86b8436e
Try to fix cgi 2022-11-06 17:41:55 -07:00
Keith Irwin 60953a88d7
Fixed premature display of peers table 2022-11-06 17:29:44 -07:00
Keith Irwin b289bd5d30
Cleaned up errors and added logging 2022-11-06 17:27:27 -07:00
Keith Irwin ae41a169b8
Fixed dockerfile to include new ssl cgi 2022-11-06 17:19:52 -07:00
Keith Irwin b8fa426971
First attempt at returning user SSL files 2022-11-06 17:09:55 -07:00
Keith Irwin e5c2f3161a
Fixed frontend, final cleanup 2022-11-02 13:16:16 -06:00
Keith Irwin d049e50868
Final coding for deleting a user from admin ui 2022-11-02 13:10:05 -06:00
Keith Irwin 230a383b06
Added more peer deletion logic 2022-11-02 13:02:23 -06:00
Keith Irwin dea9bb38ea
Fixed bad Dockerfile COPY 2022-11-02 12:29:57 -06:00
Keith Irwin b39eceafcb
Send usernumber too 2022-11-02 12:28:36 -06:00
Keith Irwin 90ae7bb506
Added more admin deleting user code 2022-11-02 12:19:06 -06:00
Keith Irwin c4b802e282
Initial deletion code 2022-11-02 12:13:36 -06:00
Keith Irwin 442fefab32
Cleaned up exit codes 2022-11-02 12:09:36 -06:00
Keith Irwin 6dbf4b4170
Removed commented-out code 2022-11-02 12:01:17 -06:00
Keith Irwin b42e861014
Fixed new usernumber generation 2022-11-02 11:58:32 -06:00
Keith Irwin bf943a1b92
Added admin adding new user backend code 2022-11-02 11:33:54 -06:00
Keith Irwin 3a327fd0fa
Fixed missing knockout.min.js 2022-11-01 18:58:36 -06:00
Keith Irwin 64ae072837
Ready for user functions 2022-10-21 16:26:01 -06:00
Keith Irwin 036b6cdeca
Don't let new peers be deleted 2022-10-21 12:42:34 -06:00
Keith Irwin 6d460f1008
Set better permissions for ssl keys 2022-10-21 12:07:43 -06:00
Keith Irwin a9d1ebcecc
Set better permissions for ssl keys 2022-10-21 12:07:26 -06:00
Keith Irwin 92e1cbc457
Added chgrp to nopasswd 2022-10-21 09:07:14 -06:00
Keith Irwin 10bd0ba066
Fixed adding SSL certs 2022-10-20 21:42:01 -06:00
Keith Irwin 4580a770b0
Fixed adding SSL certs 2022-10-20 19:23:01 -06:00
Keith Irwin 00ba98143c
www-data should work for now 2022-10-20 19:18:28 -06:00
Keith Irwin a7389605da
Set new ssl cert permissions 2022-10-20 19:12:36 -06:00
Keith Irwin 5c8231c8f4
Removed debugging and deployed remaining code 2022-10-20 19:06:32 -06:00
Keith Irwin 6844078539
Fixed token checks 2022-10-20 18:51:09 -06:00
Keith Irwin 9be068ec3c
Fixed token checks 2022-10-20 18:47:12 -06:00
Keith Irwin 2ce75beb4f
Admin delete peer debugging 2022-10-20 18:33:21 -06:00
Keith Irwin 50b1b5f87f
Added more code 2022-10-20 17:00:47 -06:00
Keith Irwin 4618754154
Added debugging 2022-10-20 16:58:32 -06:00
Keith Irwin c98b4d93bf
Added debugging 2022-10-20 16:56:21 -06:00
Keith Irwin 4bdf56212d
Added debugging 2022-10-20 16:52:13 -06:00
Keith Irwin 30d13b4c24
Removed later code 2022-10-20 16:51:16 -06:00
Keith Irwin 46758feaff
Added debugging 2022-10-20 16:48:58 -06:00
Keith Irwin a8982ca32c
Added more code 2022-10-20 16:28:42 -06:00
Keith Irwin 76ad51c7a5
Logging fixes 2022-10-20 16:27:02 -06:00
Keith Irwin 903e2f65af
Removed extraneous grep 2022-10-20 16:18:34 -06:00
Keith Irwin 63222c3459
Added more code 2022-10-20 16:15:20 -06:00
Keith Irwin 47cacd8751
Improved logging for admin new peer 2022-10-20 15:17:00 -06:00
Keith Irwin 64518af278
Split host and user names in request 2022-10-20 15:14:50 -06:00
Keith Irwin cd9e01814b
Start debugging backend 2022-10-20 14:37:45 -06:00
Keith Irwin cf66502def
Removed debugging; working 2022-10-20 14:15:59 -06:00
Keith Irwin 38c9d427b2
Debug delete peer from dash 2022-10-20 14:13:34 -06:00
Keith Irwin b038d943b9
Set rxfr requests for all admin stuff 2022-10-20 12:39:19 -06:00
Keith Irwin 8b52db372c
Removed breaking logging 2022-10-03 12:53:10 -06:00
Keith Irwin caa4777994
Await logging response 2022-10-03 12:51:40 -06:00
Keith Irwin ca08f2dbe0
Check json parsing 2022-10-03 12:44:41 -06:00
Keith Irwin fddcb2a7d4
Removed logging, added output to user 2022-10-03 12:41:31 -06:00
Keith Irwin 1a0d565183
Removed logging 2022-10-03 12:40:26 -06:00
Keith Irwin 63768893d4
Search end of line 2022-10-03 12:40:03 -06:00
Keith Irwin d8a6281184
Added logging 2022-10-03 12:37:40 -06:00
Keith Irwin bdba80be34
Added logging 2022-10-03 12:19:53 -06:00
Keith Irwin 7464a22372
Added logging 2022-10-03 12:17:13 -06:00
Keith Irwin 4df5874077
Final cleanup of ips_to_peers_rxfr 2022-10-03 12:14:25 -06:00
Keith Irwin fd9d2201b1
try paste 2022-10-03 11:47:32 -06:00
Keith Irwin a2a4eacc5e
Only replace first newline 2022-10-03 11:42:49 -06:00
Keith Irwin 69a55ed9a2
Only replace first newline 2022-10-03 11:40:00 -06:00
Keith Irwin c66d033e95
Now put them on one line... 2022-10-03 11:37:32 -06:00
Keith Irwin 04d548ac6a
Cut tab OR space 2022-10-03 11:36:24 -06:00
Keith Irwin 4fd04b13db
More parsing... 2022-10-03 11:31:32 -06:00
Keith Irwin 69bfb044f5
Added line parsing 2022-10-03 11:20:04 -06:00
Keith Irwin 6811948344
Syntax error 2022-10-03 11:18:35 -06:00
Keith Irwin 87d96b2cf0
Made lib executable 2022-10-03 11:14:37 -06:00
Keith Irwin dab1508e71
Added debugging 2022-10-03 11:13:42 -06:00
Keith Irwin c2ff605266
Fixed reading from stdin 2022-10-03 11:05:23 -06:00
Keith Irwin eb3bf61bdd
Split ips_to_peers for each method 2022-10-03 11:00:01 -06:00
Keith Irwin 6f10d4a4c2
Logging 2022-10-03 10:53:48 -06:00
Keith Irwin bd668fc0a2
Made lib executable 2022-10-03 10:50:19 -06:00
Keith Irwin 0b9b22a034
Used proper lib 2022-10-03 10:49:02 -06:00
Keith Irwin f6686ec7ac
Fist attempt at using AXFR 2022-10-03 10:45:30 -06:00
Keith Irwin 3cdf542271
Add new peer from admin frontend 2022-09-18 17:33:19 -06:00
Keith Irwin 1821bec28c
What I meant 2022-09-15 21:40:42 -06:00
Keith Irwin e17047184c
Neeeeeed token 2022-09-15 21:35:56 -06:00
Keith Irwin 5b28ae88d5
Added usage instructions 2022-09-15 21:30:24 -06:00
Keith Irwin f8c0415761
Renamed file 2022-09-15 21:21:59 -06:00
Keith Irwin f761459ee2
Fixed wrong var call 2022-09-15 16:42:52 -06:00
Keith Irwin a9c2564292
Fixed single user check 2022-09-15 16:40:20 -06:00
Keith Irwin 10ca5097ba
Now I get it 2022-09-15 16:25:39 -06:00
Keith Irwin 5da0c1cd1d
No idead 2022-09-15 16:22:21 -06:00
Keith Irwin 9ab1ad5f49
Opps that one's not negated 2022-09-15 16:18:31 -06:00
Keith Irwin 40e4dc9d51
Allow for multiple args 2022-09-15 16:13:39 -06:00
Keith Irwin 3a981e1fc3
Missing ! 2022-09-15 15:28:35 -06:00
Keith Irwin 596c1c0d63
Added ScriptAliases to correct endpoints 2022-09-15 14:16:05 -06:00
Keith Irwin af899e404f
fixed fed dockerfile lib location 2022-09-15 14:09:48 -06:00
Keith Irwin 6195c6d914
Negate all these 2022-09-15 13:54:17 -06:00
Keith Irwin 613d1f831f
Removed args to index.cgi check 2022-09-15 13:48:28 -06:00
Keith Irwin f8f75863ff
Added admin/peer/list 2022-09-15 08:47:17 -06:00
Keith Irwin e408f08f2a
Many movings arounds 2022-09-14 22:28:02 -06:00
Keith Irwin fe7fa3a0ea
Moved Dockerfiles around 2022-09-14 18:50:21 -06:00
Keith Irwin b92a892254
Various small improvements 2022-09-14 14:44:00 -06:00
Keith Irwin dc1c89ef7a
Added skeleton for remaining files 2022-09-14 09:21:52 -06:00
Keith Irwin 2965127eeb
Removed empty files 2022-09-13 20:47:39 -06:00
Keith Irwin f5b4db8168
Fixed missing usernumber 2022-09-13 12:07:05 -06:00
Keith Irwin 89bce70a60
OPTIONS endpoint for CORS preflight 2022-09-13 11:33:13 -06:00
Keith Irwin bc82390803
Fixed wrong var used 2022-09-13 11:19:05 -06:00
Keith Irwin b834cc4275
Found the remote IP var 2022-09-13 10:32:32 -06:00
Keith Irwin c5f65e566e
Added env logging 2022-09-13 10:18:34 -06:00
Keith Irwin 7e9759193c
Moved dockerfiles 2022-09-13 09:57:20 -06:00
Keith Irwin 0802cfdcb0
Moved dockerfile 2022-09-12 10:09:36 -06:00
Keith Irwin b3a2363fd0
tried to fix again by non-parallelizing 2022-09-11 19:03:13 -06:00
Keith Irwin 653a686295
tried to fix again 2022-09-11 18:57:20 -06:00
Keith Irwin f9d2f31385
tried to fix again 2022-09-11 18:48:31 -06:00
Keith Irwin 47f96088ab
tried to fix again 2022-09-11 18:42:54 -06:00
Keith Irwin cc14b33bf3
tried to fix again 2022-09-11 18:39:14 -06:00
Keith Irwin 18bf6de6ac
tried to fix again 2022-09-11 18:36:52 -06:00
Keith Irwin 3150d263d7
tried to fix again 2022-09-11 18:26:15 -06:00
Keith Irwin 20097a7478
tried to fix again 2022-09-11 18:24:29 -06:00
Keith Irwin dfa706a8a1
Removed unneeded output 2022-09-11 18:17:52 -06:00
Keith Irwin 21c7f7e9a3
Hopefully fixed config output to user 2022-09-11 18:16:33 -06:00
Keith Irwin 1027aa07ea
Fixed hostname not set, make unset vars fail earlier 2022-09-11 18:00:00 -06:00
Keith Irwin 99f270dbe9
For some reason these don't work in parallel 2022-09-11 17:47:59 -06:00
Keith Irwin 990a1b560a
Made logging better for parallelization 2022-09-11 17:24:14 -06:00
Keith Irwin 74f58ccd61
We aren't in a loop anymore, toto 2022-09-11 17:17:03 -06:00
Keith Irwin 870e62835d
Hopefully fixes bug 2022-09-11 17:13:22 -06:00
Keith Irwin f3218b6e97
Should be negated 2022-09-11 17:07:38 -06:00
Keith Irwin 2db993fa59
Fixed config file not found 2022-09-11 17:03:06 -06:00
Keith Irwin 35eea41743
fixed token_fail not found 2022-09-11 17:01:50 -06:00
Keith Irwin 66f3fe642c
Much parallelization 2022-09-11 15:38:26 -06:00
Keith Irwin 7a0691cd98
Fixed ssl volume 2022-09-10 19:13:47 -06:00
Keith Irwin 4a96eb51be
Better logging for broken SSL 2022-09-10 19:10:38 -06:00
Keith Irwin 4a8b5f7ea9
Fixed incorrect call 2022-09-10 19:05:58 -06:00
Keith Irwin 3f80588c7b
Cleaned index.cgi and replaced mount with COPY in docker 2022-09-10 19:01:36 -06:00
Keith Irwin efc5c138b3
Removed last typo 2022-09-10 16:43:46 -06:00
Keith Irwin 015c59d9c9
This should allow ns del to work 2022-09-10 16:42:31 -06:00
Keith Irwin 964cfebb30
This should allow ssl to work 2022-09-10 16:42:02 -06:00
Keith Irwin 576240cb8a
Missed one 2022-09-10 16:40:22 -06:00
Keith Irwin 645fcabc64
Did everything for DELETE hopefully 2022-09-10 16:38:11 -06:00
Keith Irwin 06283b88f5
Added proper calling of ns/ssl libs 2022-09-10 16:32:15 -06:00
Keith Irwin 0a87314214
Better delete response 2022-09-10 16:30:13 -06:00
Keith Irwin cfe74158ca
Fixed missing sudo 2022-09-10 16:27:51 -06:00
Keith Irwin 8869d5a8c4
Fixed wireguard delete peer stuff 2022-09-10 16:26:52 -06:00
Keith Irwin bc4e4f2af8
Fixed wireguard delete peer stuff 2022-09-10 16:26:06 -06:00
Keith Irwin de218fa8e0
Fixed missing < 2022-09-10 16:20:42 -06:00