mirror of
https://salsa.debian.org/debian/knockd
synced 2025-12-23 04:55:14 +00:00
update patches for improved DEP3
This commit is contained in:
17
debian/patches/default_config.patch
vendored
17
debian/patches/default_config.patch
vendored
@@ -1,6 +1,16 @@
|
|||||||
--- knockd-0.5/knockd.conf 2004-05-07 00:56:03.000000000 +0200
|
From: Leo Antunes <costela@debian.org>
|
||||||
+++ knockd-0.5.new/knockd.conf 2007-12-09 20:50:39.000000000 +0100
|
Date: Mon, 18 Oct 2021 23:17:54 +0200
|
||||||
@@ -1,15 +1,15 @@
|
Subject: Adapt default config for debian
|
||||||
|
|
||||||
|
---
|
||||||
|
knockd.conf | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/knockd.conf b/knockd.conf
|
||||||
|
index 7770027..13d4347 100644
|
||||||
|
--- a/knockd.conf
|
||||||
|
+++ b/knockd.conf
|
||||||
|
@@ -1,16 +1,16 @@
|
||||||
[options]
|
[options]
|
||||||
- logfile = /var/log/knockd.log
|
- logfile = /var/log/knockd.log
|
||||||
+ UseSyslog
|
+ UseSyslog
|
||||||
@@ -19,3 +29,4 @@
|
|||||||
+ command = /sbin/iptables -D INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
|
+ command = /sbin/iptables -D INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
|
||||||
tcpflags = syn
|
tcpflags = syn
|
||||||
|
|
||||||
|
[openHTTPS]
|
||||||
|
|||||||
19
debian/patches/syslog_facility_daemon.patch
vendored
19
debian/patches/syslog_facility_daemon.patch
vendored
@@ -1,8 +1,17 @@
|
|||||||
Index: repo/src/knockd.c
|
From: Leo Antunes <costela@debian.org>
|
||||||
===================================================================
|
Date: Mon, 18 Oct 2021 23:17:54 +0200
|
||||||
--- repo.orig/src/knockd.c 2016-09-28 21:43:16.741293903 +0200
|
Subject: change syslog facility to daemon
|
||||||
+++ repo/src/knockd.c 2016-09-28 21:43:16.741293903 +0200
|
|
||||||
@@ -195,7 +195,7 @@
|
this is currently hardcoded
|
||||||
|
---
|
||||||
|
src/knockd.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/knockd.c b/src/knockd.c
|
||||||
|
index e607b6c..bd991c8 100644
|
||||||
|
--- a/src/knockd.c
|
||||||
|
+++ b/src/knockd.c
|
||||||
|
@@ -229,7 +229,7 @@ int main(int argc, char **argv)
|
||||||
strncpy(o_int, "eth0", sizeof(o_int)); /* no explicit termination needed */
|
strncpy(o_int, "eth0", sizeof(o_int)); /* no explicit termination needed */
|
||||||
}
|
}
|
||||||
if(o_usesyslog) {
|
if(o_usesyslog) {
|
||||||
|
|||||||
Reference in New Issue
Block a user