From e70b4be988bae1ef98326a21321d476fd6a8afd0 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 24 Oct 2023 07:57:06 -0500 Subject: Use sudo instead of doas Not because of technical superiority, but in Linux we can expect sudo is installed, and doas will not be supported as well. --- notify-fw | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'notify-fw') diff --git a/notify-fw b/notify-fw index 55bfde8..62f148e 100755 --- a/notify-fw +++ b/notify-fw @@ -1,8 +1,8 @@ #!/bin/sh -LIST="$(doas iptables -S)" -LIST6="$(doas ip6tables -S)" -LISTN="$(doas nft list ruleset)" +LIST="$(sudo iptables -S)" +LIST6="$(sudo ip6tables -S)" +LISTN="$(sudo nft list ruleset)" notify-send "IPTables rules" "IPTables Rules:\n$LIST" notify-send "IP6Tables rules" "IP6Tables Rules:\n$LIST6" notify-send "NFTables rules" "NFTables Rules:\n$LISTN" -- cgit v1.2.3