bbruns 2014-04-13 16:19:11 +00:00
parent 0c7813397c
commit f1bfeca7b8
2 changed files with 22 additions and 0 deletions

11
bin/rule-save Normal file
View File

@ -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"

11
bin/rule-save6 Executable file
View File

@ -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"