add udp whitelisting

extracted the udp whitelisting from #401

the whitelisting was requested by my former employer who wanted to whitelist udp packages against a list of regexes. So i thought i could contribute it back to the main repo.