Commit Graph

386 Commits (master)

Author SHA1 Message Date
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
Keith Irwin 0ddaabb0c8
Bad reference 2022-09-10 16:19:23 -06:00
Keith Irwin 6a4e23db81
Tweaks for delete code 2022-09-10 16:12:08 -06:00
Keith Irwin b193f31874
Final fix for that hopefully 2022-09-10 15:09:39 -06:00
Keith Irwin 131a60349c
Debug bad http response to 409 2022-09-10 15:07:13 -06:00
Keith Irwin 4025ff9383
Debug bad http response to 409 2022-09-10 15:03:38 -06:00
Keith Irwin d7197c0114
Debug bad http response to 409 2022-09-10 15:01:50 -06:00
Keith Irwin f4f0523d23
Debug bad http response to 409 2022-09-10 15:00:13 -06:00
Keith Irwin e5acd59c46
Less clutter in logs 2022-09-10 14:54:44 -06:00
Keith Irwin efff4c0026
Better ns check for existing hostname 2022-09-10 14:51:22 -06:00
Keith Irwin 6af817636a
Fix checking for hostname duplicates 2022-09-10 14:44:10 -06:00
Keith Irwin 6ed23a9d08
fix 2022-09-10 14:35:41 -06:00
Keith Irwin c573208310
More logging 2022-09-10 14:33:47 -06:00
Keith Irwin d706c2c5dd
Quiet all the greps 2022-09-10 14:31:29 -06:00
Keith Irwin 418ba05366
Quiet all the greps 2022-09-10 14:29:37 -06:00
Keith Irwin e4d7140e66
Removed logging 2022-09-10 14:25:50 -06:00
Keith Irwin fa2ee25df7
Eureka 2022-09-10 14:25:13 -06:00
Keith Irwin 6ee1c760a5
Fixed bad headers 2022-09-10 14:20:43 -06:00
Keith Irwin 360293f575
Moar logs 2022-09-10 14:18:35 -06:00
Keith Irwin 0fdafe79ee
Fixed http status codes 2022-09-10 14:16:49 -06:00
Keith Irwin 617463f109
Improved http response 2022-09-10 14:11:42 -06:00
Keith Irwin 92094e5c0d
Moved to better status codes 2022-09-10 14:08:45 -06:00
Keith Irwin 960ed70b52
Fixed response status headers 2022-09-10 14:06:11 -06:00
Keith Irwin d9676bef0a
Added debugging for add response 2022-09-10 13:43:38 -06:00
Keith Irwin 59dfe5783e
removed some logging, working now 2022-09-10 13:37:56 -06:00
Keith Irwin 7a500c07bf
Fixed ssl 2022-09-10 13:33:40 -06:00
Keith Irwin 6462e84e71
Fixed ssl 2022-09-10 13:32:48 -06:00
Keith Irwin c9394f845f
Fixed ssl 2022-09-10 13:30:39 -06:00
Keith Irwin 186dd046f3
Fixed ssl 2022-09-10 13:28:23 -06:00
Keith Irwin 8254322264
Fixed ssl 2022-09-10 13:22:19 -06:00
Keith Irwin 150344868b
Fixed ssl 2022-09-10 13:15:49 -06:00
Keith Irwin 343293c219
Fixed ssl 2022-09-10 13:12:43 -06:00
Keith Irwin 2d8c3b0b0d
Fixed ssl 2022-09-10 13:10:51 -06:00
Keith Irwin bc8b769514
Fixed ssl 2022-09-10 13:09:31 -06:00
Keith Irwin 2782b5abd3
Added debugging 2022-09-10 13:08:30 -06:00
Keith Irwin c23a13d585
Added debugging 2022-09-10 13:00:40 -06:00
Keith Irwin 4b6e85a013
Added debugging 2022-09-10 12:54:31 -06:00
Keith Irwin 80e482f6a8
Added debugging 2022-09-10 12:52:37 -06:00
Keith Irwin 1e522ae306
Added debugging 2022-09-10 12:50:19 -06:00
Keith Irwin eae9cc1725
Added debugging 2022-09-10 12:44:22 -06:00
Keith Irwin 98a454af1a
Added debugging 2022-09-10 12:40:16 -06:00
Keith Irwin a6bf37293f
Added debugging 2022-09-10 12:39:05 -06:00
Keith Irwin 62b3548736
Added debugging 2022-09-10 12:37:09 -06:00
Keith Irwin 059fa3c0cb
Added debugging 2022-09-10 12:35:00 -06:00
Keith Irwin 84ed000369
Added debugging 2022-09-10 12:32:24 -06:00
Keith Irwin 596ea32866
Added missing sudo 2022-09-10 12:30:17 -06:00
Keith Irwin 8984e436de
Added debugging 2022-09-10 12:29:16 -06:00
Keith Irwin aae310a0d6
Added debugging 2022-09-10 12:26:16 -06:00
Keith Irwin 79363ebda9
Added debugging 2022-09-10 12:22:43 -06:00
Keith Irwin f6035c2dd6
Added cat to visudo 2022-09-10 12:20:55 -06:00
Keith Irwin 1e92c60d9b
Check san 2022-09-10 12:19:44 -06:00
Keith Irwin bafa492d54
Switch to tee to avoid permission denied 2022-09-10 12:16:48 -06:00
Keith Irwin 288c07dc6f
Better logging 2022-09-10 12:14:16 -06:00
Keith Irwin 0321cea8ca
Fixed which test to visudo 2022-09-10 12:07:48 -06:00
Keith Irwin fb3e03d642
Better description 2022-09-10 12:07:03 -06:00
Keith Irwin 3b9d78a55b
More logs 2022-09-10 12:04:43 -06:00
Keith Irwin 3317e91e92
More logs 2022-09-10 12:02:59 -06:00
Keith Irwin 2c22a6fc24
More logs 2022-09-10 12:00:30 -06:00
Keith Irwin 3d43f3878a
Fixed if statement hopefully 2022-09-10 11:59:05 -06:00
Keith Irwin ace3db901d
Remove bash parameterization from single-bracket test 2022-09-10 11:54:11 -06:00
Keith Irwin 547c68fe6e
Improvements 2022-09-10 11:50:07 -06:00
Keith Irwin 99e47b6355
Fixed visudo? 2022-09-10 11:43:14 -06:00
Keith Irwin 6957137552
logging fixes 2022-09-10 11:40:08 -06:00
Keith Irwin 5a03129407
logging fixes 2022-09-10 11:34:32 -06:00
Keith Irwin 232ceededb
fixed one problem 2022-09-10 11:32:12 -06:00
Keith Irwin 00a0fdfbc8
Lots of logging 2022-09-10 11:28:27 -06:00
Keith Irwin 74afeb08b4
Fixed syntax error 2022-09-10 11:23:11 -06:00
Keith Irwin 4a391bf4a3
Add logging for failed openssl 2022-09-10 11:19:59 -06:00
Keith Irwin 51922e737e
Add logging for failed openssl 2022-09-10 11:16:02 -06:00
Keith Irwin 16c924e103
Switch to if statements to kill script on failure 2022-09-10 11:14:07 -06:00
Keith Irwin e57c523d60
Better nslookup error handling 2022-09-10 11:00:58 -06:00
Keith Irwin 9fb72a3fce
Prepared loggin on ssl_peer_add 2022-09-10 10:54:30 -06:00
Keith Irwin 33b9b97af1
Style improvements 2022-09-10 10:45:51 -06:00
Keith Irwin fb34998b5c
Small logging improvements 2022-09-10 10:44:38 -06:00
Keith Irwin 7faa6169aa
Clarification 2022-09-10 10:43:14 -06:00
Keith Irwin b2b5c5a33a
Removed logging 2022-09-10 10:40:25 -06:00
Keith Irwin e68f2b1256
Removed logging 2022-09-10 10:39:39 -06:00
Keith Irwin 44bfbbb44d
Try to fix sudo fd 2022-09-10 10:36:55 -06:00
Keith Irwin 6ceacf023b
Try to fix sudo fd 2022-09-10 10:32:48 -06:00
Keith Irwin 9538b014a1
Added server admin email to apache config 2022-09-10 10:25:29 -06:00
Keith Irwin 131c30a22c
Fixed missing wg permission 2022-09-10 10:24:11 -06:00
Keith Irwin 4ae238c048
Fixed ipv6 rDNS nibble calculation 2022-09-10 09:59:27 -06:00
Keith Irwin efebe724ee
Fixed sudo hopefully 2022-09-10 09:50:12 -06:00
Keith Irwin f842c8a9f9
wrap in subshell 2022-09-10 09:36:09 -06:00
Keith Irwin b6c23955c9
Fixed missing sudo 2022-09-10 09:33:53 -06:00
Keith Irwin 58b40e5cbb
fixed file descriptor, sudo 2022-09-10 09:29:23 -06:00
Keith Irwin f49d24cdcf
Try process substitution fix 2022-09-10 09:23:27 -06:00
Keith Irwin 6908b71140
More debugging and logging 2022-09-10 09:17:19 -06:00
Keith Irwin 84f39c36cc
Consolidated nsupdate requests 2022-09-10 09:09:00 -06:00
Keith Irwin ae627b320d
improved nameserver logging 2022-09-10 09:06:32 -06:00
Keith Irwin 66ab248abd
improved nameserver logging 2022-09-10 09:05:34 -06:00
Keith Irwin f1b5af9e1a
Exit on wg failure 2022-09-10 09:01:03 -06:00
Keith Irwin a27607b508
Further debugging 2022-09-10 09:00:07 -06:00
Keith Irwin c5ca116a90
Fixed wg logging 2022-09-10 08:56:28 -06:00
Keith Irwin 11d9525643
Fixed nameserver 2022-09-10 08:55:25 -06:00
Keith Irwin 53049973a0
Fixed nsupdate and added logging 2022-09-10 08:47:14 -06:00
Keith Irwin 1159cc7cde
Added NS logging 2022-09-10 08:44:54 -06:00
Keith Irwin 27ab4843d7
Fixed logging 2022-09-10 08:42:57 -06:00
Keith Irwin d4fb5caf98
Fixed sudos 2022-09-09 22:54:16 -06:00
Keith Irwin 3160485a43
Improved logging 2022-09-09 22:51:09 -06:00
Keith Irwin c4ff8ee734
Added logging to wg_peer_add 2022-09-09 22:43:04 -06:00