diff options
Diffstat (limited to 'deploy/network.sh')
-rwxr-xr-x | deploy/network.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/network.sh b/deploy/network.sh index 9e0cfa8c..67769c98 100755 --- a/deploy/network.sh +++ b/deploy/network.sh @@ -1,4 +1,12 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## function clear_forward_rejct_rules() { while sudo iptables -nL FORWARD --line-number|grep -E 'REJECT +all +-- +0.0.0.0/0 +0.0.0.0/0 +reject-with icmp-port-unreachable'|head -1|awk '{print $1}'|xargs sudo iptables -D FORWARD; do :; done |