def convert_iface(iface):
    if iface == 'any':
        return '*'
    else:
        # append '+' quantifier to iface
        if not iface[-1].isdigit():
            iface += '+'
        return iface
Convert iface string like 'any', 'eth', 'eth0' to iptables iface naming like *, eth+, eth0.
dataset/ETHPy150Open securitykiss-com/rfw/rfw/cmdparse.py/convert_iface