コード例 #1
0
ファイル: test_ipset.py プロジェクト: skulker8/neutron
 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()
コード例 #2
0
ファイル: test_ipset.py プロジェクト: CiscoSystems/neutron
 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()
コード例 #3
0
ファイル: test_ipset.py プロジェクト: skulker8/neutron
 def _remove_iptables_ipset_rules(iptables_manager):
     iptables_manager.ipv4['filter'].remove_rule('INPUT', ICMP_ACCEPT_RULE)
     iptables_manager.apply()
コード例 #4
0
ファイル: test_ipset.py プロジェクト: CiscoSystems/neutron
 def _remove_iptables_ipset_rules(iptables_manager):
     iptables_manager.ipv4['filter'].remove_rule('INPUT', ICMP_ACCEPT_RULE)
     iptables_manager.apply()