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-03-12 19:23:23 +00:00
|
|
|
* Examine `/etc/systemd/system/cowrie.server` and ensure the paths are correct for your installation if you use non-standard file system locations.
|
|
|
|
|
|
|
|
* Modify `etc/cowrie.cfg` to listen on ports via systemd:
|
2019-03-03 04:28:45 +00:00
|
|
|
|
|
|
|
[ssh]
|
|
|
|
listen_endpoints = systemd:domain=INET6:index=0
|
|
|
|
|
|
|
|
[telnet]
|
|
|
|
listen_endpoints = systemd:domain=INET6:index=1
|
|
|
|
|
|
|
|
* Modify `bin/cowrie` script like this:
|
|
|
|
|
|
|
|
* Change DAEMONIZE="" line to DAEMONIZE="-n"
|
|
|
|
* Change #STDOUT="no" line to STDOUT="yes"
|
|
|
|
|
|
|
|
* Run sudo systemctl start cowrie.socket && sudo systemctl enable cowrie.socket
|