diff options
author | tv <tv@krebsco.de> | 2020-06-03 00:46:03 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-06-03 00:46:03 +0200 |
commit | 6ad7a8801cbc68ce481ae936983178709779c813 (patch) | |
tree | ed607bceb597caf0d640f1bf1de281d1b8895a3f /tv/3modules/dnsmasq.nix | |
parent | 6722c8b823f6463bd2bf53395223a56c63a535a5 (diff) |
tv dnsmasq: listen only on configured interfaces
Diffstat (limited to 'tv/3modules/dnsmasq.nix')
-rw-r--r-- | tv/3modules/dnsmasq.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tv/3modules/dnsmasq.nix b/tv/3modules/dnsmasq.nix index ec927f98a..ab24ac089 100644 --- a/tv/3modules/dnsmasq.nix +++ b/tv/3modules/dnsmasq.nix @@ -31,8 +31,9 @@ in { }; services.dnsmasq.enable = true; services.dnsmasq.extraConfig = '' + bind-interfaces dhcp-range=${cfg.dhcp-range} - interface=${cfg.interface} + listen-address=${cfg.address} ''; tv.iptables.extra.filter.INPUT = [ "-i ${cfg.interface} -p tcp -m tcp --dport bootps -j ACCEPT" |