1
0
mirror of https://github.com/skeeto/endlessh.git synced 2024-05-19 06:49:58 +00:00

14 Commits

Author SHA1 Message Date
a5913cbbb2 Three notes on OpenBSD. 2020-12-24 00:43:20 +01:00
3d6aec6080 Prevent access to /run and /var in endlessh.service
Closes #34.
2019-08-06 20:23:11 -04:00
ae7473536e Add Documentation link in endlessh.service
Closes #33.
2019-08-06 20:18:39 -04:00
8ec96ea899 fix typo 2019-05-13 15:25:24 +03:00
44b3285bb2 PrivateUsers=true prevents privileged port mapping 2019-05-13 15:25:04 +03:00
4321fe93e5 add optional AmbientCapabilities to systemd unit
If a user wants to bind to a privileged port (<1024) our current systemd unit fails to provide enough capabilities to endlessh binary.

So, a user can modify `/etc/endlessh/config` to have `Port=22` or similar and then check out the systemd unit to enable the extra attribute.
2019-05-13 15:14:06 +03:00
964a860634 fix ConfigurationDirectory in systemd unit
`ConfigurationDirectory=endlessh` should be enough. Previous assignment throws a warning with systemd 237

```
May 13 08:57:18 kernelwtf systemd[1]: Started Endlessh SSH Tarpit.
May 13 08:58:20 kernelwtf systemd[1]: /etc/systemd/system/endlessh.service:25: ConfigurationDirectory= path is not valid, ignoring assignment: /etc/endlessh
```
2019-05-13 12:02:53 +03:00
8794f02d22 fix Exec value in systemd unit
Thanks for creating this wonderful tool! 

By default `make install` installs the binary into `/usr/local/bin` so I think this should be changed accordingly.

Cheers
2019-05-13 11:49:17 +03:00
95235af2fb add rc.d script for openbsd 2019-04-12 23:08:56 +02:00
badf3dd69e Added -4 -6 Switches and default tcp46
As *BSD defaults to use IPv6 only sockets and Linux to IPv4 mapped IPv6
sockets, switches to support explicit binding address families are required.

Now set explicitly if you want IPv6 only, IPv4 only or mapped IPv4.

Caveat:
OpenBSD explicitly states to not support IPv4 mapped IPv6 via setsock-API
2019-04-03 17:11:04 +02:00
cb7ee90cf5 Solaris SMF
Closes #18.
2019-03-28 10:53:13 -04:00
548a7b1521 Add restart limit in case it gets stuck in a crash loop 2019-03-22 17:21:57 -05:00
922af308f2 Systemd service
Assuming an /opt/ install. For those unfamiliar, plop it into /etc/systemd/system (symlinks might not work, old systemd bug), run `systemctl daemon-reload`, and have it start on boot (and immediately) with `systemctl enable --now endlessh.service`
2019-03-22 17:13:56 -05:00
ae76b41294 Add a log parsing utility 2019-02-06 15:18:09 -05:00