Не стартует автоматически при загрузке операционки демон knockd
Debian GNU/Linux 9.8 (stretch)
Linux gw 4.9.0-8-686-pae #1 SMP Debian 4.9.144-3.1 (2019-02-19) i686 GNU/Linux
Содержимое конфигов:
/etc/default/knockd
# control if we start knockd at init or not
# 1 = start
# anything else = don't start
# PLEASE EDIT /etc/knockd.conf BEFORE ENABLING
START_KNOCKD=1
# command line options
#KNOCKD_OPTS="-i eth1"
KNOCKD_OPTS="-v -i ext"
/etc/knockd.conf
[options]
UseSyslog
[RDP01]
Sequence = 27000:udp,27001:udp,27002:udp
Seq_Timeout = 7
Command = /sbin/ipset add knock_hosts_set %IP%
/lib/systemd/system/knockd.service
[Unit]
Description=Port-Knock Daemon
After=network.target
Documentation=man:knockd(1)
[Service]
EnvironmentFile=-/etc/default/knockd
ExecStart=/usr/sbin/knockd $KNOCKD_OPTS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
SuccessExitStatus=0 2 15
ProtectSystem=full
CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
Restart=always
OOMScoreAdjust=-100
Состояние сервиса сразу после загрузки операционки:
systemctl status knockd
● knockd.service - Port-Knock Daemon
Loaded: loaded (/lib/systemd/system/knockd.service; static; vendor preset: enabled)
Active: inactive (dead)
Docs: man:knockd(1)
systemctl is-enabled knockd
static
systemctl is-active knockd
inactive
Состояние сервиса после его запуска вручную:
systemctl status knockd
● knockd.service - Port-Knock Daemon
Loaded: loaded (/lib/systemd/system/knockd.service; static; vendor preset: enabled)
Active: active (running) since Sun 2019-03-31 09:25:20 MSK; 5s ago
Docs: man:knockd(1)
Main PID: 681 (knockd)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/knockd.service
└─681 /usr/sbin/knockd -v -i ext
Mar 31 09:25:20 gw systemd[1]: Started Port-Knock Daemon.
Mar 31 09:25:20 gw knockd[681]: listening on ext...
Mar 31 09:25:20 gw knockd[681]: starting up, listening on ext
Попробовал выполнить knocking - knocking работает:
systemctl status knockd
● knockd.service - Port-Knock Daemon
Loaded: loaded (/lib/systemd/system/knockd.service; static; vendor preset: enabled)
Active: active (running) since Sun 2019-03-31 09:25:20 MSK; 53s ago
Docs: man:knockd(1)
Main PID: 681 (knockd)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/knockd.service
└─681 /usr/sbin/knockd -v -i ext
Mar 31 09:26:00 gw knockd[681]: 192.168.111.12: RDP01: Stage 2
Mar 31 09:26:00 gw knockd[681]: 192.168.111.12: RDP01: Stage 2
Mar 31 09:26:01 gw knockd[681]: 192.168.111.12: RDP01: Stage 3
Mar 31 09:26:01 gw knockd[681]: 192.168.111.12: RDP01: OPEN SESAME
Mar 31 09:26:01 gw knockd[681]: RDP01: running command: /sbin/ipset add knock_hosts_set 192.168.111.12
Mar 31 09:26:01 gw knockd[681]: 192.168.111.12: RDP01: Stage 3
Mar 31 09:26:01 gw knockd[681]: 192.168.111.12: RDP01: OPEN SESAME
Подскажите пожалуйста почему knockd не стартует автоматически???