summaryrefslogtreecommitdiff
path: root/notify-fw
blob: bce793862082f22483e230c20d8b062dedd7d471 (plain)
1
2
3
4
5
6
7
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"