tazpanel rev 495

network.cgi: add iptables status
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 13 15:36:42 2015 +0200 (2015-05-13)
parents 0d743f0c129e
children e717c691bab9
files network.cgi
line diff
     1.1 --- a/network.cgi	Wed May 13 10:31:46 2015 +0200
     1.2 +++ b/network.cgi	Wed May 13 15:36:42 2015 +0200
     1.3 @@ -777,7 +777,17 @@
     1.4  -e 's#\([0-9]*\)/#<a href="boot.cgi?daemons=pid=\1">\1</a>/#')</pre>
     1.5  	</footer>
     1.6  </section>
     1.7 +
     1.8  EOT
     1.9 +		[ "$REMOTE_USER" == "root" -a "$(which iptables-save)" ] && cat <<EOT
    1.10 +<section>
    1.11 +	<header id="iptables">$(_ 'Firewall')</header>
    1.12 +	<footer>
    1.13 +	<pre>$(iptables-save)</pre>
    1.14 +	</footer>
    1.15 +</section>
    1.16 +EOT
    1.17 +		
    1.18  		;;
    1.19  esac
    1.20