From f840b5d7ee22076f66f5d3b7fe79074347495335 Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sun, 1 Feb 2015 20:39:26 +0200 Subject: [PATCH] added shortcuts "default" and "classic" to markdef --- sbin/firehol.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sbin/firehol.in b/sbin/firehol.in index 17fb8c5..65ff22a 100755 --- a/sbin/firehol.in +++ b/sbin/firehol.in @@ -165,6 +165,16 @@ markdef() { while [ ! -z "${1}" ] do case "${1}" in + default) + saverestore=1 + stateful=1 + ;; + + classic) + saverestore=0 + stateful=0 + ;; + save|restore|permanent) saverestore=1 ;; @@ -492,7 +502,7 @@ FIREHOL_TRUST_LOOPBACK=1 # # NOTES ABOUT markdef OPTIONS # -# default is : stateful permanent +# default is : stateful permanent or default # in this mode, only NEW packets of connections need # to be marked. ESTABLISHED and RELATED packets # will automatically get the same mark too. @@ -512,7 +522,7 @@ FIREHOL_TRUST_LOOPBACK=1 # all the packets that are encountered after the marked # packet and are part of the same socket. # -# - stateless temporary +# - stateless temporary or classic # In this mode, only whatever the helper statement matches # will get the mark. Nothing else. #