netbird/iface/mocks
Givi Khojanashvili 1d9feab2d9
Feat fake dns address (#902)
Works only with userspace implementation:
1. Configure host to solve DNS requests via a fake DSN server address in the Netbird network.
2. Add to firewall catch rule for these DNS requests.
3. Resolve these DNS requests and respond by writing directly to wireguard device.
2023-06-08 13:46:57 +04:00
..
iface/mocks Feat fake dns address (#902) 2023-06-08 13:46:57 +04:00
filter.go Feat fake dns address (#902) 2023-06-08 13:46:57 +04:00
README.md Feat fake dns address (#902) 2023-06-08 13:46:57 +04:00
tun.go

Mocks

To generate (or refresh) mocks from iface package interfaces please install mockgen. Run this command to update PacketFilter mock:

mockgen -destination iface/mocks/filter.go -package mocks github.com/netbirdio/netbird/iface PacketFilter