gamelinux / passivedns

A network sniffer that logs all DNS server replies for use in a passive DNS setup
http://gamelinux.org/
1.67k stars 374 forks source link

Add support for loopback/null devices #125

Closed blkmajik closed 2 years ago

blkmajik commented 2 years ago

I ran into a problem where a wireguard interface on FreeBSD wasn't supported. Turns out libpcap treats many of these types of interfaces the sameish. Enough that I think this will work generically for many virtual drivers (wireguard, loopback, openvpn).

This specifically may address #102. At least it does address it on FreeBSD.

There's also a compiler warning fix about excess parenthesis.

blkmajik commented 2 years ago

Also tested with a gif interface on FreeBSD (ipv6 tunnel) and it's working there as well.