diff --git a/bin/rule-save b/bin/rule-save new file mode 100644 index 0000000..9702746 --- /dev/null +++ b/bin/rule-save @@ -0,0 +1,11 @@ +#!/bin/bash + +# Important directory locations +FWPREFIX="/usr/local" +FWCONFIGDIR="${FWPREFIX}/etc/srfirewall" +FWLIBDIR="${FWPREFIX}/lib/srfirewall" +FWBINDIR="${FWPREFIX}/bin" +source "${FWCONFIGDIR}/main.conf" +source "${FWCONFIGDIR}/local.conf" + +echo "$*" >> "${FWPREFIX}/etc/srfirewall/cache/srfirewall-rules" \ No newline at end of file diff --git a/bin/rule-save6 b/bin/rule-save6 new file mode 100755 index 0000000..98b40ea --- /dev/null +++ b/bin/rule-save6 @@ -0,0 +1,11 @@ +#!/bin/bash + +# Important directory locations +FWPREFIX="/usr/local" +FWCONFIGDIR="${FWPREFIX}/etc/srfirewall" +FWLIBDIR="${FWPREFIX}/lib/srfirewall" +FWBINDIR="${FWPREFIX}/bin" +source "${FWCONFIGDIR}/main.conf" +source "${FWCONFIGDIR}/local.conf" + +echo "$*" >> "${FWPREFIX}/etc/srfirewall/cache/srfirewall-rules6" \ No newline at end of file