def setup():
    k_module = 'modprobe br_netfilter'
    os.system(k_module)
    if SINGLE_QUEUE:
        iptables_rule = ('iptables -A FORWARD -j NFQUEUE --queue-num %d -m physdev --physdev-in ens38' % (nfqueue_number - 1))
    else:
        iptables_rule = ('iptables -A FORWARD -j NFQUEUE --queue-balance 0:%d -m physdev --physdev-in ens38' % (nfqueue_number - 1))
    print('Adding iptable rules : ')
    print(iptables_rule)
    os.system(iptables_rule)
    print('Setting ipv4 forward settings : ')
    os.system('sysctl net.ipv4.ip_forward=1')
def setup():
    k_module = 'modprobe br_netfilter'
    os.system(k_module)
    if SINGLE_QUEUE:
        iptables_rule = ('iptables -A FORWARD -j NFQUEUE --queue-num %d -m physdev --physdev-in ens38' % (nfqueue_number - 1))
    else:
        iptables_rule = ('iptables -A FORWARD -j NFQUEUE --queue-balance 0:%d -m physdev --physdev-in ens38' % (nfqueue_number - 1))
    print('Adding iptable rules : ')
    print(iptables_rule)
    os.system(iptables_rule)
    print('Setting ipv4 forward settings : ')
    os.system('sysctl net.ipv4.ip_forward=1')