-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsshguard-rkt.service
20 lines (18 loc) · 938 Bytes
/
sshguard-rkt.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=sshguard
After=network-online.target iptables-restore.service
Requires=network-online.target
[Service]
ExecStart=/usr/bin/rkt --insecure-options=image run \
--inherit-env \
--net=host \
--mount volume=dev-log,target=/dev/log --volume dev-log,kind=host,source=/dev/log,readOnly=true \
--mount volume=journal,target=/var/log/journal --volume journal,kind=host,source=/var/log/journal,readOnly=true \
--mount volume=config,target=/var/db/sshguard --volume config,kind=host,source=/var/db/sshguard \
--mount volume=run-xtables,target=/run/xtables.lock --volume run-xtables,kind=host,source=/run/xtables.lock \
docker://chillichef/coreos-sshguard:latest \
--name=%p-service \
--caps-retain=CAP_NET_ADMIN,CAP_NET_RAW \
-- -a 120 -b 120:/var/db/sshguard/blacklist.db
[Install]
WantedBy=multi-user.target