take down dns with wireguard
This commit is contained in:
parent
2c9bd72723
commit
4735734d9e
|
@ -28,6 +28,9 @@
|
||||||
listenPort = 60990; # to match firewall allowedUDPPorts (without this wg uses random port numbers)
|
listenPort = 60990; # to match firewall allowedUDPPorts (without this wg uses random port numbers)
|
||||||
privateKeyFile = config.age.secrets.work-wg.path;
|
privateKeyFile = config.age.secrets.work-wg.path;
|
||||||
dns = [ "10.0.69.4" ];
|
dns = [ "10.0.69.4" ];
|
||||||
|
postDown = ''
|
||||||
|
sudo /usr/sbin/networksetup -setdnsservers Wi-Fi "Empty"
|
||||||
|
'';
|
||||||
peers = [
|
peers = [
|
||||||
# For a client configuration, one peer entry for the server will suffice.
|
# For a client configuration, one peer entry for the server will suffice.
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue