Accepting request 895780 from home:danidoni:branches:network:utilities
- Update to version 0.8 * Multiple fixes (#67, #77) * IPv6 support (Sebastien Valat) OBS-URL: https://build.opensuse.org/request/show/895780 OBS-URL: https://build.opensuse.org/package/show/network:utilities/knock?expand=0&rev=19
This commit is contained in:
parent
d118abe08a
commit
2b484108ff
@ -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
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9938479c321066424f74c61f6bee46dfd355a828263dc89561a1ece3f56578a4
|
||||
size 110791
|
3
knock-0.8.tar.gz
Normal file
3
knock-0.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:698d8c965624ea2ecb1e3df4524ed05afe387f6d20ded1e8a231209ad48169c7
|
||||
size 377107
|
@ -1,10 +0,0 @@
|
||||
--- src/knockd.c
|
||||
+++ src/knockd.c
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#include <sys/param.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <getopt.h>
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 19 08:49:35 UTC 2021 - Daniel Donisa <daniel.donisa@suse.com>
|
||||
|
||||
- Update to version 0.8
|
||||
* Multiple fixes (#67, #77)
|
||||
* IPv6 support (Sebastien Valat)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 10 08:48:00 CET 2019 - brassh@web.de
|
||||
|
||||
|
20
knock.spec
20
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
|
||||
|
@ -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);
|
Loading…
x
Reference in New Issue
Block a user