Skip to content
Snippets Groups Projects
Verified Commit 6f926382 authored by Štěpán Henek's avatar Štěpán Henek :bear:
Browse files

diagnostics: firewall_turris, firewall_uci and iptables merged into firewall module

parent 7f1adfc9
No related branches found
No related tags found
1 merge request!9Resolve "Add script(s) for generating diagnostics"
#!modules/module.sh
help="
print uci firewall settings and the currnet content of iptables
"
run () {
uci show firewall
uci show firewall-turris
echo
# get md5sum of the firewall scripts and rules
md5sum /usr/share/firewall/*
echo
# list user defined scripts
ls -al /etc/firewall.user
ls -al /etc/firewall.d/*
echo
iptables-save
}
#!modules/module.sh
help="
list turris firewall settings
"
run () {
cat /etc/config/firewall-turris
echo
md5sum /usr/share/firewall/*
}
#!modules/module.sh
help="
get uci firewall config
"
run () {
cat /etc/config/firewall
}
#!modules/module.sh
help="
list current iptables
"
run () {
iptables-save
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment