Commit Graph

386 Commits (master)

Author SHA1 Message Date
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
Keith Irwin 4eb11ebfb5
Added better logging 2022-09-09 22:28:48 -06:00
Keith Irwin b9809e4c7a
Added logging, fixed broken loop 2022-09-09 22:19:57 -06:00
Keith Irwin e5a1aa7a22
That's the wrong hostname 2022-09-09 22:12:35 -06:00
Keith Irwin cdd812d402
commented out untested federation code 2022-09-09 22:10:19 -06:00
Keith Irwin a3cd56aafd
Hopefully fixed it 2022-09-09 22:06:48 -06:00
Keith Irwin 61239e55fd
Small fixes 2022-09-09 21:56:25 -06:00
Keith Irwin 14f2e426c2
Added curl dependency 2022-09-09 21:32:15 -06:00
Keith Irwin d16b029c71
Fixed bash increment 2022-09-09 21:29:59 -06:00
Keith Irwin e89625afdf
Added token to peer listing 2022-09-09 21:18:16 -06:00
Keith Irwin 762b0dfce3
Used direct command result checking 2022-09-09 21:12:52 -06:00
Keith Irwin dc51cc0f17
Fixed failed response 2022-09-09 21:12:13 -06:00
Keith Irwin e7e73d9d90
Added readability, better check 2022-09-09 20:04:53 -06:00
Keith Irwin 9e3931a260
Added error handling to ssl_peer_add 2022-09-09 20:02:39 -06:00
Keith Irwin bf8c76ed74
Seperated server params by tabs 2022-09-08 21:44:46 -06:00
Keith Irwin b88c95b4f3
Cleanup and shellchecks 2022-09-08 21:18:03 -06:00
Keith Irwin d598b65d1a
Cleanup and shellchecks 2022-09-08 21:15:30 -06:00
Keith Irwin cef540e986
Added jq 2022-09-08 14:46:53 -06:00
Keith Irwin cf84ef4504
Tried to fix POST 2022-09-08 14:44:55 -06:00
Keith Irwin 743fb7a468
Tried to fix POST 2022-09-08 14:39:59 -06:00
Keith Irwin 397f4b63a5
Readied peer add code 2022-09-08 14:04:01 -06:00
Keith Irwin 587c4e5256
escaped . 2022-09-08 13:08:05 -06:00
Keith Irwin ec4dc7fdde
Fixed ipv4/6 mixup 2022-09-08 13:05:54 -06:00
Keith Irwin 302d16bfb6
Added newline 2022-09-08 13:00:53 -06:00
Keith Irwin 6bc2ceef24
Improved logging 2022-09-07 18:52:52 -06:00
Keith Irwin 80c08d5b19
Added some logging 2022-09-07 18:50:32 -06:00
Keith Irwin 7c2bb407be
Fixed missing tokens file 2022-09-07 18:40:55 -06:00
Keith Irwin 2b71ad38e8
Fixed missing tokens file 2022-09-07 18:39:52 -06:00
Keith Irwin 26a88a9941
Fixed error message 2022-09-07 18:38:25 -06:00
Keith Irwin 0e94a90fa5
fixed dockerfile 2022-09-07 18:22:58 -06:00
Keith Irwin ac3d8eee91
Moved stuff around 2022-09-07 16:57:52 -06:00
Keith Irwin 4e533a410f
Moved default port to 8080 2022-09-07 16:22:19 -06:00
Keith Irwin dea70fe2e1
Moved to :8080 by default 2022-09-06 21:11:53 -06:00
Keith Irwin 01226aab18
Moved to :8080 by default 2022-09-06 21:09:25 -06:00
Keith Irwin 6d62db1acb
Got peer listing working 2022-09-06 20:57:41 -06:00
Keith Irwin 1001f68ca6
Finished adding dashboard api add and delete endpoints 2022-08-29 11:42:13 -06:00
Keith Irwin 1aa6b41548
Moved everything around 2022-08-29 01:04:37 -06:00