Ejemplo n.º 1
0
 def _add_iptables_ipset_rules(iptables_manager):
     iptables_manager.ipv4['filter'].add_rule('INPUT', ICMP_ACCEPT_RULE)
     iptables_manager.ipv4['filter'].add_rule('INPUT', base.ICMP_BLOCK_RULE)
     iptables_manager.apply()
Ejemplo n.º 2
0
 def _add_iptables_ipset_rules(iptables_manager):
     iptables_manager.ipv4['filter'].add_rule('INPUT', ICMP_ACCEPT_RULE)
     iptables_manager.ipv4['filter'].add_rule('INPUT', base.ICMP_BLOCK_RULE)
     iptables_manager.apply()
Ejemplo n.º 3
0
 def _remove_iptables_ipset_rules(iptables_manager):
     iptables_manager.ipv4['filter'].remove_rule('INPUT', ICMP_ACCEPT_RULE)
     iptables_manager.apply()
Ejemplo n.º 4
0
 def _remove_iptables_ipset_rules(iptables_manager):
     iptables_manager.ipv4['filter'].remove_rule('INPUT', ICMP_ACCEPT_RULE)
     iptables_manager.apply()