summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-09-10 15:06:28 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-09-10 15:17:52 +0200
commitc4092f2a8d0e63102bec1725ad6fc9046b04c687 (patch)
treeff02e8ed9993261c1540380128b591a89ca1c4a8
parent94bb48be78694312cc0002141e4edb39d965b098 (diff)
downloadnixlib-c4092f2a8d0e63102bec1725ad6fc9046b04c687.tar
nixlib-c4092f2a8d0e63102bec1725ad6fc9046b04c687.tar.gz
nixlib-c4092f2a8d0e63102bec1725ad6fc9046b04c687.tar.bz2
nixlib-c4092f2a8d0e63102bec1725ad6fc9046b04c687.tar.lz
nixlib-c4092f2a8d0e63102bec1725ad6fc9046b04c687.tar.xz
nixlib-c4092f2a8d0e63102bec1725ad6fc9046b04c687.tar.zst
nixlib-c4092f2a8d0e63102bec1725ad6fc9046b04c687.zip
firewall.nix: Less verbosity
-rw-r--r--modules/services/networking/firewall.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/services/networking/firewall.nix b/modules/services/networking/firewall.nix
index 6261bab94a18..b24ac2d70325 100644
--- a/modules/services/networking/firewall.nix
+++ b/modules/services/networking/firewall.nix
@@ -245,10 +245,10 @@ in
             # Flush the old firewall rules.  !!! Ideally, updating the
             # firewall would be atomic.  Apparently that's possible
             # with iptables-restore.
-            ip46tables -D INPUT -j nixos-fw || true
+            ip46tables -D INPUT -j nixos-fw 2> /dev/null || true
             for chain in nixos-fw nixos-fw-accept nixos-fw-log-refuse nixos-fw-refuse FW_REFUSE; do
-              ip46tables -F "$chain" || true
-              ip46tables -X "$chain" || true
+              ip46tables -F "$chain" 2> /dev/null || true
+              ip46tables -X "$chain" 2> /dev/null || true
             done