Ken Moore
e1b9bc833c
Fix up the detection of the localhost address when there is both IPv4 and IPv6 information available for the connection.
2016-02-09 09:18:21 -05:00
Ken Moore
8166ef8a79
Cleanup a lot of the logging in the sysadm server. Now the hostinfo log file will clearly list connection time/IP, auth attempts/IP, Dispatches/IP, disconnections/IP. The dispatcher and events systems also properly log activity within their individual log files.
2016-02-02 13:46:23 -05:00
Ken Moore
c8f97a69fe
Clean up a fair bit of the server backends. Getting rid of compilation warnings, signal/slot connection issues, etc..
2016-02-01 15:39:29 -05:00
Ken Moore
1ae716ebfc
Add IP blacklisting to the sysadm server.
...
Current Settings:
1) 5 auth attempts allowed before failover
2) If no communications for 10 minutes, the failover counter gets reset
3) On failover - the IP is placed on the server blacklist for 1 hour
Note: The blacklist system is connection independant, and uses the host IP for unique tracking/blocking.
2016-01-21 10:12:13 -05:00
Ken Moore
7d6ea3ff11
Make the SSL settings for the servers appear as defined within globals-qt.h. This makes it easy to change key/cert files or SSL versions later on for both types of server simultaneously.
2016-01-21 07:49:47 -05:00
Ken Moore
155026aab1
Fix up the file watcher system in the events class. Now it actually functions in it's own thread.
2016-01-20 11:42:41 -05:00
Kris Moore
d4f2e302bc
OSX Doesn't support TLS 1.1 or 1.2, so we fallback to 1.0
2016-01-19 15:05:18 -05:00
Ken Moore
7ebc12aaf7
Add handling/debug output for connection errors in the websocket server.
2016-01-19 14:49:46 -05:00
Ken Moore
0077d68208
Commit some debugging work on the sysadm server.
2016-01-18 16:53:12 -05:00
Ken Moore
82b549ead3
Split off the Events subsystem from the server class and set it up for easy expansion later.
2016-01-15 15:36:04 -05:00
Ken Moore
eee477167b
Fix the cert/key paths used for the websocket server.
2016-01-08 14:12:22 -05:00
Ken Moore
262ddb637d
Commit some more work on on updating the websocket server to use wss.
2016-01-08 14:01:49 -05:00
Ken Moore
fbbc72c3a4
Commit some more work converting the QTcpServer into an SslServer. The API test will now connect without failures - but it hangs there (no incoming messages detected)
2016-01-08 10:33:01 -05:00
Ken Moore
cce21a7677
Switch the sysadm server over to the secure socket protocols (wss/https)
2016-01-07 16:07:35 -05:00
Ken Moore
90e23c882e
Merge branch 'master' of github.com:pcbsd/sysadm
2015-12-29 12:47:05 -05:00
Ken Moore
9fe2914da3
Convert sysadm-server to run either in TCP or WebSocket mode.
...
New CLI flags:
"-ws": Use the websocket protocols instead of tcp
"-p <port number>": Use the designated port number for the server.
2015-12-29 12:43:29 -05:00
Kris Moore
5583f4d2c0
Change port number to 12150
2015-12-17 13:25:56 -05:00
Ken Moore
3bfc57b466
Oops - fix another stray syscache-webclient reference.
2015-12-15 13:14:02 -05:00
Ken Moore
f5dab0048c
Add a copy of the syscache-webclient server into the sysadm/src/server.
...
Also setup the server to make it easier to extend for API/library support in the backend. All backend functionality can now be added to the new "WebBackend.cpp" file (and WebSocket.h file for headers).
2015-12-15 13:06:42 -05:00