def _add_dnsmasq_accept_rules(dev):
    table = iptables_manager.ipv4['filter']
    for port in [67, 53]:
        for proto in ['udp', 'tcp']:
            args = {'dev': dev, 'port': port, 'proto': proto}
            table.add_rule('INPUT',
                           '-i %(dev)s -p %(proto)s -m %(proto)s '
                           '--dport %(port)s -j ACCEPT' % args)
    iptables_manager.apply()
Return a valid set of data
dataset/ETHPy150Open openstack/nova/nova/network/linux_net.py/_add_dnsmasq_accept_rules--crossover with--dataset/ETHPy150Open mozilla/inventory/mozdns/tests/utils.py/get_post_data