From c90ecf4320289e2567f2b6dee0c6c21d9d51b145 Mon Sep 17 00:00:00 2001 From: Jeff Carlson Date: Sun, 15 Aug 2021 18:59:25 -0700 Subject: [PATCH] pknock: added UDP options to help and made whitespace consistent --- extensions/pknock/libxt_pknock.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/extensions/pknock/libxt_pknock.c b/extensions/pknock/libxt_pknock.c index 4852e9f..5b05a85 100644 --- a/extensions/pknock/libxt_pknock.c +++ b/extensions/pknock/libxt_pknock.c @@ -34,18 +34,23 @@ static const struct option pknock_mt_opts[] = { static void pknock_mt_help(void) { printf("pknock match options:\n" - " --knockports port[,port,port,...] " - "Matches destination port(s).\n" - " --time seconds\n" + " --knockports port[,port[,port[,...]]]\n" + "\t\t\t\tMatches destination port(s).\n" + " --time seconds " "Max allowed time between knocks.\n" - " --autoclose minutes\n" + " --autoclose minutes " "Time after which to automatically close opened\n" - "\t\t\t\t\tport(s).\n" - " --strict " - "Knocks sequence must be exact.\n" - " --name rule_name " + "\t\t\t\tport(s).\n" + " --name rule_name " "Rule name.\n" - " --checkip " + " --opensecret secret " + "(UDP only) Secret to activate the rule.\n" + " --closesecret secret " + "(UDP only) Secret to deactivate the\n" + "\t\t\t\trule.\n" + " --strict " + "Knocks sequence must be exact.\n" + " --checkip " "Matches if the source ip is in the list.\n" ); }