diff --git a/knock-0.5.patch b/knock-0.5.patch deleted file mode 100644 index 9c4356d..0000000 --- a/knock-0.5.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- knockd.conf -+++ knockd.conf -@@ -4,12 +4,12 @@ - [openSSH] - sequence = 7000,8000,9000 - seq_timeout = 5 -- command = /usr/sbin/iptables -A INPUT -s %IP% -p tcp --dport 22 -j ACCEPT -+ command = /usr/sbin/iptables -I input_ext 1 -p tcp -s %IP% -p tcp --dport 22 -j ACCEPT --dport 22 - tcpflags = syn - - [closeSSH] - sequence = 9000,8000,7000 - seq_timeout = 5 -- command = /usr/sbin/iptables -D INPUT -s %IP% -p tcp --dport 22 -j ACCEPT -+ command = /usr/sbin/iptables -D input_ext -p tcp -s %IP% -p tcp --dport 22 -j ACCEPT --dport 22 - tcpflags = syn - diff --git a/knock-0.7.tar.gz b/knock-0.7.tar.gz deleted file mode 100644 index 8df7eae..0000000 --- a/knock-0.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9938479c321066424f74c61f6bee46dfd355a828263dc89561a1ece3f56578a4 -size 110791 diff --git a/knock-0.8.tar.gz b/knock-0.8.tar.gz new file mode 100644 index 0000000..4eb8458 --- /dev/null +++ b/knock-0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:698d8c965624ea2ecb1e3df4524ed05afe387f6d20ded1e8a231209ad48169c7 +size 377107 diff --git a/knock-include.patch b/knock-include.patch deleted file mode 100644 index 7cf9ea8..0000000 --- a/knock-include.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- src/knockd.c -+++ src/knockd.c -@@ -41,6 +41,7 @@ - #include - #include - #include -+#include - #include - #include - #include diff --git a/knock.changes b/knock.changes index e425c7c..d68d6e7 100644 --- a/knock.changes +++ b/knock.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 19 08:49:35 UTC 2021 - Daniel Donisa + +- Update to version 0.8 + * Multiple fixes (#67, #77) + * IPv6 support (Sebastien Valat) + ------------------------------------------------------------------- Wed Jul 10 08:48:00 CET 2019 - brassh@web.de diff --git a/knock.spec b/knock.spec index 6be2be8..37dbe69 100644 --- a/knock.spec +++ b/knock.spec @@ -1,7 +1,7 @@ # # spec file for package knock # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -28,20 +28,17 @@ %endif Name: knock -Version: 0.7 +Version: 0.8 Release: 0 Summary: A Port-Knocking Client -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Networking/Security -Url: http://www.zeroflux.org/knock/ +URL: http://www.zeroflux.org/knock/ Source0: http://www.zeroflux.org/proj/knock/files/%{name}-%{version}.tar.gz Source1: %{name}d.sysconfig Source2: %{name}d.init Source3: %{name}d.conf Source4: %{name}d.service -Patch0: %{name}-0.5.patch -Patch1: %{name}-include.patch -Patch2: %{name}d-init-tcpflags-vars.patch BuildRequires: libpcap-devel %if %{with_systemd} BuildRequires: systemd-rpm-macros @@ -79,9 +76,6 @@ to open up holes in a firewall for quick access. %prep %setup -q -%patch0 -%patch1 -%patch2 %build %configure @@ -131,10 +125,12 @@ rm -rf %{buildroot}%{_datadir}/doc %defattr(-,root,root) %attr(0755,root,root) %{_bindir}/%{name} %{_mandir}/man?/%{name}.* +%{_sbindir}/knock_helper_ipt.sh %files -n knockd %defattr(-,root,root) -%doc README.md COPYING ChangeLog TODO +%doc README.md ChangeLog TODO +%license COPYING %{_sbindir}/%{name}d %if %{with_systemd} %{_unitdir}/%{name}d.service diff --git a/knockd-init-tcpflags-vars.patch b/knockd-init-tcpflags-vars.patch deleted file mode 100644 index 892f8f5..0000000 --- a/knockd-init-tcpflags-vars.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- src/knockd.c 2019-06-16 18:58:47.092584232 +0200 -+++ src/knockd.c 2019-06-16 18:58:31.544615113 +0200 -@@ -510,6 +510,12 @@ - door->start_command = NULL; - door->cmd_timeout = CMD_TIMEOUT; /* default command timeout (seconds) */ - door->stop_command = NULL; -+ door->flag_fin = DONT_CARE; -+ door->flag_syn = DONT_CARE; -+ door->flag_rst = DONT_CARE; -+ door->flag_psh = DONT_CARE; -+ door->flag_ack = DONT_CARE; -+ door->flag_urg = DONT_CARE; - door->one_time_sequences_fd = NULL; - door->pcap_filter_exp = NULL; - doors = list_add(doors, door);