cowrie/docs/systemd
Michel Oosterhof 813f35e86d
26apr (#1552)
* typing
* clean also cleans docs/
* ignore twistedchecker exit code
* twistedchecker fixes
* update docs. add copy button
* add missing $ prompts
* updated copyright
* isort
* remove flake8-import order. config flake8/isort/black
* remove import order
* docs restructure
* should pick up settings from setup.cfg
* put conversion code back in. JSON encoding needs it
2021-05-03 23:42:25 +08:00
..
etc Update commands/files (#1128) 2019-05-16 18:11:06 +04:00
README.rst 26apr (#1552) 2021-05-03 23:42:25 +08:00

README.rst

Automatically starting Cowrie with systemd
###########################################

NOTE: untested

* Copy the file ``docs/systemd/system/cowrie.socket`` to ``/etc/systemd/system``

* Copy the file ``docs/systemd/system/cowrie.service`` to ``/etc/systemd/system``

* Examine ``/etc/systemd/system/cowrie.service`` and ensure the paths are correct for your installation if you use non-standard file system locations.

* Add entries to ``etc/cowrie.cfg`` to listen on ports via systemd. These must match your cowrie.socket configuration::

    [ssh]
    listen_endpoints = systemd:domain=INET6:index=0

    [telnet]
    listen_endpoints = systemd:domain=INET6:index=1

* Run::

    $ sudo systemctl daemon-reload
    $ sudo systemctl start cowrie.service
    $ sudo systemctl enable cowrie.service