2019-02-28 10:36:24 +01:00
# D4 core

## D4 core server
D4 core server is a complete server to handle clients (sensors) including the decapsulation of the [D4 protocol ](https://github.com/D4-project/architecture/tree/master/format ), control of
sensor registrations, management of decoding protocols and dispatching to adequate decoders/analysers.
### Requirements
- Python 3.6
- GNU/Linux distribution
### Installation
###### Install D4 server
~~~~
cd server
./install_server.sh
~~~~
Create or add a pem in [d4-core/server ](https://github.com/D4-project/d4-core/tree/master/server ) :
~~~~
cd gen_cert
./gen_root.sh
./gen_cert.sh
cd ..
~~~~
###### Launch D4 server
~~~~
./LAUNCH.sh -l
~~~~
The web interface is accessible via `http://127.0.0.1:7000/`
2019-03-27 10:15:57 +01:00
### Updating web assets
To update javascript libs run:
~~~~
cd web
./update_web.sh
~~~~
2019-09-02 16:13:40 +02:00
### API
[API Documentation ](https://github.com/D4-project/d4-core/tree/master/server/documentation/README.md )
2019-02-28 10:36:24 +01:00
### Notes
- All server logs are located in ``d4-core/server/logs/``
- Close D4 Server: ``./LAUNCH.sh -k``
2020-03-12 11:10:27 +01:00
### D4 core server
2019-02-28 10:36:24 +01:00
2020-03-12 11:15:35 +01:00
#### Dashboard:
2019-02-28 10:36:24 +01:00

2020-03-12 11:10:27 +01:00
2020-03-12 11:15:35 +01:00
#### Connected Sensors:
2019-02-28 10:36:24 +01:00

2020-03-12 11:10:27 +01:00
2020-03-12 11:15:35 +01:00
#### Sensors Status:
2020-03-12 11:10:27 +01:00



2020-03-12 11:15:35 +01:00
#### Server Management:
2020-03-12 11:10:27 +01:00

2020-03-12 11:15:35 +01:00

2020-03-12 11:10:27 +01:00
2020-03-12 11:15:35 +01:00
#### analyzer Queues:

2020-03-12 11:10:27 +01:00

2019-02-28 10:36:24 +01:00

2019-04-01 16:16:37 +02:00
### Troubleshooting
###### Worker 1, tcpdump: Permission denied
Could be related to AppArmor:
~~~~
sudo cat /var/log/syslog | grep denied
~~~~
Run the following command as root:
~~~~
aa-complain /usr/sbin/tcpdump
~~~~