Hello!
After upgrade from LEAP 15.0 to LEAP 15.1 on two machines, knockd is unable to start:
# /usr/sbin/knockd -D -v
config: new section: 'options'
config: log file: /var/log/knockd.log
config: interface: eth0
config: new section: 'opencloseANY'
config: opencloseANY: sequence: 11111:udp,22222:tcp,33333:udp,44444:tcp
config: opencloseANY: seq_timeout: 15
config: opencloseANY: start_command: /usr/sbin/iptables -I INPUT 4 -s %IP% -j ACCEPT
config: opencloseANY: cmd_timeout: 10
config: opencloseANY: stop_command: /bin/echo Leaving %IP% ...
ethernet interface detected
Local IP: 1xx.2xx.1xx.2xx
Adding pcap expression for door 'opencloseANY': (dst host 1xx.2xx.1xx.2xx and (((tcp dst port 22222 or 44444) and tcp[tcpflags] & tcp-ack and tcp[tcpflags] & tcp-urg ) or (udp dst port 11111 or 33333)))
pcap: syntax error in filter expression: syntax error
waiting for child processes...
closing...
This is the conf file:
[options]
logfile = /var/log/knockd.log
Interface = eth0
[opencloseANY]
sequence = 11111:udp,22222:tcp,33333:udp,44444:tcp
seq_timeout = 15
start_command = /usr/sbin/iptables -I INPUT 4 -s %IP% -j ACCEPT
cmd_timeout = 10
stop_command = /bin/echo Leaving %IP% ...
Same config is working on both LEAP 15.0 and Tumbleweed
Help, please
Best regards
Sinisa Bandin