mirror of
https://github.com/firehol/firehol.git
synced 2024-06-28 18:02:33 +00:00
Make saved firewall contents reproducible
Clean up iptables-save output to eliminate things that change per-run: - Remove timestamp from comments - Always write out counters as 0
This commit is contained in:
parent
b0c715361f
commit
858264a8a2
@ -10103,6 +10103,9 @@ fixed_save() {
|
||||
|
||||
${CAT_CMD} ${tmp} |\
|
||||
${SED_CMD} \
|
||||
-e "/#/s/ on .*/ on time removed by FireHOL/" \
|
||||
-e "s/^\[[0-9][0-9]*:[[0-9][0-9]*\]/[0:0]/" \
|
||||
-e "s/\[[0-9][0-9]*:[[0-9][0-9]*\]$/[0:0]/" \
|
||||
-e "s/--uid-owner !/! --uid-owner /g" \
|
||||
-e "s/--gid-owner !/! --gid-owner /g"
|
||||
err=$?
|
||||
|
Loading…
Reference in New Issue
Block a user