Let's be even more obnoxious
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
01292bba60
commit
0ee67fcdec
2 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,8 @@ fi
|
||||||
if [ "`iptables -nL | grep 'FILTER_FORWARD all'`" == "" ];
|
if [ "`iptables -nL | grep 'FILTER_FORWARD all'`" == "" ];
|
||||||
then
|
then
|
||||||
iptables -I FORWARD 1 -j FILTER_FORWARD
|
iptables -I FORWARD 1 -j FILTER_FORWARD
|
||||||
|
iptables -I FORWARD 2 -j REJECT
|
||||||
|
iptables -I DOCKER-ISOLATION 1 -j FILTER_FORWARD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Delete all old rules
|
# Delete all old rules
|
||||||
|
|
|
@ -17,6 +17,8 @@ fi
|
||||||
if [ "`iptables -nL | grep 'FILTER_FORWARD all'`" == "" ];
|
if [ "`iptables -nL | grep 'FILTER_FORWARD all'`" == "" ];
|
||||||
then
|
then
|
||||||
iptables -I FORWARD 1 -j FILTER_FORWARD
|
iptables -I FORWARD 1 -j FILTER_FORWARD
|
||||||
|
iptables -I FORWARD 2 -j REJECT
|
||||||
|
iptables -I DOCKER-ISOLATION 1 -j FILTER_FORWARD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Delete all old rules
|
# Delete all old rules
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue