]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
pknock: added UDP options to help and made whitespace consistent
authorJeff Carlson <jeff@ultimateevil.org>
Mon, 16 Aug 2021 01:59:25 +0000 (18:59 -0700)
committerJeff Carlson <jeff@ultimateevil.org>
Mon, 16 Aug 2021 01:59:25 +0000 (18:59 -0700)
extensions/pknock/libxt_pknock.c

index 4852e9f25a9e8fd68d3ee324e2b977b690f25706..5b05a856e495e851c3fc9b88ae073e6ea9f6b84b 100644 (file)
@@ -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"
                );
 }