From f2ff0445394f4397e4a259a57644ba66a8c23e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 26 Mar 2014 00:02:10 +0100 Subject: [PATCH] yum-proxy: fix iptables rules order Add the rules at the beginning of chain, so before final REJECT rule. --- network/iptables-yum-proxy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/iptables-yum-proxy b/network/iptables-yum-proxy index 262afe5..f81a7c1 100755 --- a/network/iptables-yum-proxy +++ b/network/iptables-yum-proxy @@ -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 cat <<__EOF__ | iptables-restore -n *filter --A $RULE_FILTER +-I $RULE_FILTER COMMIT *nat --A $RULE_NAT +-I $RULE_NAT COMMIT __EOF__ else