2 # Filename: grml-iptstate
3 # Purpose: wrapper around iptstate (top-like display of IP Tables state table entries)
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 ################################################################################
9 . /etc/grml/script-functions
10 . /etc/grml/lsb-functions
11 check4progs iptstate || exit 1
13 if grep -q '_conntrack' /proc/modules ; then
16 einfo "iptstate is a top-like display of IP Tables state table entries."
18 ewarn "Module ip_conntrack is not present. Can not start iptstate therefore."
20 einfon "Do you want to load it and invoke iptstate afterwards? [YES|no] "
22 if [ "$a" = YES -o "$a" = yes -o "$a" = '' -o "$a" = y -o "$a" = Y ] ; then
23 modprobe ip_conntrack ; RC=$?
25 [ "$RC" = 0 ] && exec iptstate
27 echo "Aborting as requested."
32 ## END OF FILE #################################################################