Browse Source

tags/v2.01a1
bbruns@gmail.com 6 years ago
parent
commit
04b1308238
2 changed files with 3 additions and 4 deletions
  1. +2
    -4
      bin/srfirewall
  2. +1
    -0
      lib/iptables.inc

+ 2
- 4
bin/srfirewall View File

@@ -48,7 +48,7 @@ fi

# Swap out display_c command for dummy command if they don't want
# output when command is run.
if [[ "${DisplayDetailedOutput" == "yes" ]]; then
if [[ "${DisplayDetailedOutput}" == "yes" ]]; then
display="display_c"
else
display="true"
@@ -61,11 +61,9 @@ if [[ "${EnableIPv4}" == "yes" ]]; then
# Create the chain sets we'll need and the ones that can be
# customized by users in their custom rules
setup_iptables_chains ipv4

fi

if [[ "${EnableIPv6}" == "yes" ]]; then
# First flush all rules
iptables_rules_flush ipv6
fi
fi

+ 1
- 0
lib/iptables.inc View File

@@ -18,6 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.


# iptables_rules_flush (ipv6|ipv4)
# Clear all rules from iptables - be very careful in how this is called as it
# could easily lock out the user from the network. Best way to be safe, is to


Loading…
Cancel
Save