Browse Source

tags/v2.01a1
bbruns 6 years ago
parent
commit
f1bfeca7b8
2 changed files with 22 additions and 0 deletions
  1. +11
    -0
      bin/rule-save
  2. +11
    -0
      bin/rule-save6

+ 11
- 0
bin/rule-save 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
- 0
bin/rule-save6 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"

Loading…
Cancel
Save