diff --git a/debian/patches/default_config.patch b/debian/patches/default_config.patch index 76bc8fb..82785fd 100644 --- a/debian/patches/default_config.patch +++ b/debian/patches/default_config.patch @@ -1,6 +1,16 @@ ---- knockd-0.5/knockd.conf 2004-05-07 00:56:03.000000000 +0200 -+++ knockd-0.5.new/knockd.conf 2007-12-09 20:50:39.000000000 +0100 -@@ -1,15 +1,15 @@ +From: Leo Antunes +Date: Mon, 18 Oct 2021 23:17:54 +0200 +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] - logfile = /var/log/knockd.log + UseSyslog @@ -19,3 +29,4 @@ + command = /sbin/iptables -D INPUT -s %IP% -p tcp --dport 22 -j ACCEPT tcpflags = syn + [openHTTPS] diff --git a/debian/patches/syslog_facility_daemon.patch b/debian/patches/syslog_facility_daemon.patch index 8ffef5f..67876dc 100644 --- a/debian/patches/syslog_facility_daemon.patch +++ b/debian/patches/syslog_facility_daemon.patch @@ -1,8 +1,17 @@ -Index: repo/src/knockd.c -=================================================================== ---- repo.orig/src/knockd.c 2016-09-28 21:43:16.741293903 +0200 -+++ repo/src/knockd.c 2016-09-28 21:43:16.741293903 +0200 -@@ -195,7 +195,7 @@ +From: Leo Antunes +Date: Mon, 18 Oct 2021 23:17:54 +0200 +Subject: change syslog facility to daemon + +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 */ } if(o_usesyslog) {