mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-30 03:54:35 +01:00
1d9feab2d9
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.
8 lines
293 B
Markdown
8 lines
293 B
Markdown
## Mocks
|
|
|
|
To generate (or refresh) mocks from iface package interfaces please install [mockgen](https://github.com/golang/mock).
|
|
Run this command to update PacketFilter mock:
|
|
```bash
|
|
mockgen -destination iface/mocks/filter.go -package mocks github.com/netbirdio/netbird/iface PacketFilter
|
|
```
|