SIDN / spin

SPIN Core Software
https://spin.sidnlabs.nl
GNU General Public License v2.0
77 stars 9 forks source link

only work for single IP - possible? #83

Open jpgpi250 opened 2 years ago

jpgpi250 commented 2 years ago

as many among us, I have a firewall rule, that redirects DNS requests from devices, trying to bypass the configured DNS server, example , chromecast uses 8.8.8.8, even when configured something else (using DHCP).

I have configured a secondary IP on the DNS server and want spin to show only the traffic on that secondary IP address. Currently it is showing all DNS requests, regardless of the IP the request was received on.

Configuration option required: only look at traffic on specific IP, ignore all other traffic (received on different IP's)

frankvandenhurk commented 2 years ago

If you use spin-pcap-reader it is possible to use spin-pcap-reader's -f flag. Using the -f flag, you can specify the PCAP filter that's passed to the PCAP library. The syntax for this filter is documented in the pcap-filter manual page (web version).