This commit is contained in:
parent
4bee99e638
commit
af5ec50cb2
@ -25,7 +25,7 @@ def test_iptables_default_rules(host):
|
|||||||
'-P INPUT ACCEPT',
|
'-P INPUT ACCEPT',
|
||||||
'-A INPUT -m state --state RELATED,ESTABLISHED -m comment --comment "ansible[iptables_default_head]" -j ACCEPT',
|
'-A INPUT -m state --state RELATED,ESTABLISHED -m comment --comment "ansible[iptables_default_head]" -j ACCEPT',
|
||||||
'-A INPUT -i lo -m comment --comment "ansible[iptables_default_head]" -j ACCEPT',
|
'-A INPUT -i lo -m comment --comment "ansible[iptables_default_head]" -j ACCEPT',
|
||||||
'-A INPUT -p icmp --icmp-type echo-request -m comment --comment "ansible[iptables_default_head]" -j ACCEPT',
|
'-A INPUT -p icmp --icmp-type 8 -m comment --comment "ansible[iptables_default_head]" -j ACCEPT',
|
||||||
'-A INPUT -p tcp -m tcp --dport 22 -m comment --comment "ansible[iptables_default_head]" -j ACCEPT',
|
'-A INPUT -p tcp -m tcp --dport 22 -m comment --comment "ansible[iptables_default_head]" -j ACCEPT',
|
||||||
'-A INPUT -j REJECT'
|
'-A INPUT -j REJECT'
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user