2019-03-03 04:28:45 +00:00
|
|
|
Automatically starting Cowrie with systemd
|
|
|
|
###########################################
|
|
|
|
|
|
|
|
NOTE: untested
|
|
|
|
|
2019-03-12 19:23:23 +00:00
|
|
|
* Copy the file `docs/systemd/system/cowrie.socket` to `/etc/systemd/system`
|
2019-03-03 04:28:45 +00:00
|
|
|
|
2019-03-12 19:23:23 +00:00
|
|
|
* Copy the file `docs/systemd/system/cowrie.service` to `/etc/systemd/system`
|
2019-03-03 04:28:45 +00:00
|
|
|
|
2019-05-16 14:11:07 +00:00
|
|
|
* Examine `/etc/systemd/system/cowrie.service` and ensure the paths are correct for your installation if you use non-standard file system locations.
|
2019-03-12 19:23:23 +00:00
|
|
|
|
2019-03-15 17:00:02 +00:00
|
|
|
* Add entries to `etc/cowrie.cfg` to listen on ports via systemd. These must match your cowrie.socket configuration:
|
2019-03-03 04:28:45 +00:00
|
|
|
|
|
|
|
[ssh]
|
|
|
|
listen_endpoints = systemd:domain=INET6:index=0
|
|
|
|
|
|
|
|
[telnet]
|
|
|
|
listen_endpoints = systemd:domain=INET6:index=1
|
|
|
|
|
2019-03-15 17:00:02 +00:00
|
|
|
* Run:
|
2019-05-16 14:11:07 +00:00
|
|
|
sudo systemctl daemon-reload
|
|
|
|
sudo systemctl start cowrie.service
|
|
|
|
sudo systemctl enable cowrie.service
|