projects
/
firewall-squeep
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cfde497
)
quiet creations
author
Justin Wind
<justin.wind+git@gmail.com>
Tue, 24 Jan 2017 22:15:19 +0000
(14:15 -0800)
committer
Justin Wind
<justin.wind+git@gmail.com>
Tue, 24 Jan 2017 22:15:19 +0000
(14:15 -0800)
xenophobe.sh
patch
|
blob
|
history
diff --git
a/xenophobe.sh
b/xenophobe.sh
index 91d250a3eb3e6748ecd5075e750ed39a5c3c998c..d3edecb8fe3bddf1a4724b987094f48d4e332183 100755
(executable)
--- a/
xenophobe.sh
+++ b/
xenophobe.sh
@@
-20,7
+20,7
@@
create_set "${set_name}" hash:net
create_set "${set_name}6" hash:net family inet6
# create or re-init chains
create_set "${set_name}6" hash:net family inet6
# create or re-init chains
-if ! $IPTABLES -L "${chain}" >/dev/null
+if ! $IPTABLES -L "${chain}" >/dev/null
2>&1
then
echo "initializing chain '${chain}'"
$IPTABLES -N "${chain}" || $IPTABLES -F "${chain}"
then
echo "initializing chain '${chain}'"
$IPTABLES -N "${chain}" || $IPTABLES -F "${chain}"
@@
-29,7
+29,7
@@
then
$IPTABLES -v -L "${chain}"
fi
$IPTABLES -v -L "${chain}"
fi
-if ! $IP6TABLES -L "${chain}" >/dev/null
+if ! $IP6TABLES -L "${chain}" >/dev/null
2>&1
then
echo "initializing chain '${chain}' ipv6"
$IP6TABLES -N "${chain}" || $IP6TABLES -F "${chain}"
then
echo "initializing chain '${chain}' ipv6"
$IP6TABLES -N "${chain}" || $IP6TABLES -F "${chain}"