Skip to content

Commit

Permalink
icingaweb2_dev: iptables: descend index of insertion
Browse files Browse the repository at this point in the history
refs #6842
  • Loading branch information
Al2Klimov committed Oct 21, 2014
1 parent 8222606 commit a4c4f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp
Expand Up @@ -99,6 +99,6 @@
}
-> exec { 'iptables-allow-http':
unless => 'grep -Fxqe "-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT" /etc/sysconfig/iptables',
command => '/sbin/iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT && /sbin/iptables-save > /etc/sysconfig/iptables'
command => '/sbin/iptables -I INPUT 1 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT && /sbin/iptables-save > /etc/sysconfig/iptables'
}
}

0 comments on commit a4c4f50

Please sign in to comment.