Skip to content

Instantly share code, notes, and snippets.

@goneri
Created July 21, 2017 15:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goneri/5e82dca36f9d4c2f94d0ba785ad52a4c to your computer and use it in GitHub Desktop.
Save goneri/5e82dca36f9d4c2f94d0ba785ad52a4c to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(ls /sys/class/net/); do
echo -n "${i}: "
firewall-cmd --get-zone-of-interface=${i}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment