yum-proxy: fix iptables rules order
Add the rules at the beginning of chain, so before final REJECT rule.
This commit is contained in:
parent
fe64539789
commit
f2ff044539
@ -6,10 +6,10 @@ RULE_NAT="PR-QBS-SERVICES -i vif+ -d 10.137.255.254 -p tcp --dport 8082 -j REDIR
|
|||||||
if [ "$1" == "start" ]; then
|
if [ "$1" == "start" ]; then
|
||||||
cat <<__EOF__ | iptables-restore -n
|
cat <<__EOF__ | iptables-restore -n
|
||||||
*filter
|
*filter
|
||||||
-A $RULE_FILTER
|
-I $RULE_FILTER
|
||||||
COMMIT
|
COMMIT
|
||||||
*nat
|
*nat
|
||||||
-A $RULE_NAT
|
-I $RULE_NAT
|
||||||
COMMIT
|
COMMIT
|
||||||
__EOF__
|
__EOF__
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user