From c4d96716c05c41a3b18f2326cb588cd19246da5f Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 12 Aug 2022 04:30:51 -0500 Subject: initial commit --- notify-iptables | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 notify-iptables (limited to 'notify-iptables') diff --git a/notify-iptables b/notify-iptables new file mode 100755 index 0000000..bce7938 --- /dev/null +++ b/notify-iptables @@ -0,0 +1,8 @@ +#!/sbin/sh + +LIST="$(doas iptables -S)" +LIST6="$(doas ip6tables -S)" +LISTN="$(doas 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