Accepting request 897367 from network:utilities
- Update to version 0.8 * Multiple fixes (#67, #77) * IPv6 support (Sebastien Valat) - dropped knock-0.5.patch, knock-include.patch - fix uninitialized tcpflags variables in knockd.c (Bug#1138376: Knockd unable to start after upgrade to LEAP 15.1) OBS-URL: https://build.opensuse.org/request/show/897367 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/knock?expand=0&rev=18
This commit is contained in:
commit
9d2675b01e
@ -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,9 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
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)
|
||||
- dropped knock-0.5.patch, knock-include.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 10 08:48:00 CET 2019 - brassh@web.de
|
||||
|
||||
- fix uninitialized tcpflags variables in knockd.c
|
||||
(Bug#1138376: Knockd unable to start after upgrade to LEAP 15.1)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 23 13:46:18 UTC 2017 - rbrown@suse.com
|
||||
|
||||
- Replace references to /var/adm/fillup-templates with new
|
||||
%_fillupdir macro (boo#1069468)
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 1 14:49:38 UTC 2015 - p.drouand@gmail.com
|
||||
|
||||
|
18
knock.spec
18
knock.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package knock
|
||||
#
|
||||
# Copyright (c) 2017 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,19 +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
|
||||
BuildRequires: libpcap-devel
|
||||
%if %{with_systemd}
|
||||
BuildRequires: systemd-rpm-macros
|
||||
@ -78,8 +76,6 @@ to open up holes in a firewall for quick access.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0
|
||||
%patch1
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -129,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user