#NEWLINE# def _add_filters( self , chain_name , ipv4_rules , ipv6_rules ) : #NEWLINE# #INDENT# for rule in ipv4_rules : #NEWLINE# #INDENT# self . iptables . ipv4 [ 'filter' ] . add_rule ( chain_name , rule ) #NEWLINE# #UNINDENT# if FLAGS . use_ipv6 : #NEWLINE# #INDENT# for rule in ipv6_rules : #NEWLINE# #INDENT# self . iptables . ipv6 [ 'filter' ] . add_rule ( chain_name , rule )