master
parent
3cd26878b3
commit
04b1308238
|
@ -48,7 +48,7 @@ fi
|
||||||
|
|
||||||
# Swap out display_c command for dummy command if they don't want
|
# Swap out display_c command for dummy command if they don't want
|
||||||
# output when command is run.
|
# output when command is run.
|
||||||
if [[ "${DisplayDetailedOutput" == "yes" ]]; then
|
if [[ "${DisplayDetailedOutput}" == "yes" ]]; then
|
||||||
display="display_c"
|
display="display_c"
|
||||||
else
|
else
|
||||||
display="true"
|
display="true"
|
||||||
|
@ -61,11 +61,9 @@ if [[ "${EnableIPv4}" == "yes" ]]; then
|
||||||
# Create the chain sets we'll need and the ones that can be
|
# Create the chain sets we'll need and the ones that can be
|
||||||
# customized by users in their custom rules
|
# customized by users in their custom rules
|
||||||
setup_iptables_chains ipv4
|
setup_iptables_chains ipv4
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${EnableIPv6}" == "yes" ]]; then
|
if [[ "${EnableIPv6}" == "yes" ]]; then
|
||||||
# First flush all rules
|
# First flush all rules
|
||||||
iptables_rules_flush ipv6
|
iptables_rules_flush ipv6
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
# iptables_rules_flush (ipv6|ipv4)
|
# iptables_rules_flush (ipv6|ipv4)
|
||||||
# Clear all rules from iptables - be very careful in how this is called as it
|
# 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
|
# could easily lock out the user from the network. Best way to be safe, is to
|
||||||
|
|
Loading…
Reference in New Issue