SRFirewall/bin/rule-save

11 lines
307 B
Plaintext
Raw Permalink Normal View History

2014-04-13 10:19:11 -06:00
#!/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"