Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / ip6 / ip6t_accounting @ d2161137

Historique | Voir | Annoter | Télécharger (535 octets)

1
#!/bin/sh
2

    
3

    
4
if [ "$1" = "config" ]; then
5
    cat <<EOF
6
graph_title ip6tables bites ipv6
7
graph_vlabel bites numbers
8
graph_scale no
9
graph_category network
10
graph_args -l 0
11
graph_info ip6tables bites ipv6
12
EOF
13
ip6tables -vxL|grep -E 'ACC|REJ'|grep -v ^Chain|sed -e 's/dpt://g' -e 's/ .*://g'|awk '{print $NF"-"$4".label", $NF" "$4"\n",$NF"-"$4".min", 0}'|sed 's/^\s*//g'
14
exit 0
15
fi
16
if [ "$1" = "autoconf" ]; then
17
    echo yes
18
    exit 0
19
fi
20

    
21
ip6tables -vxL|grep -E 'ACC|REJ'|grep -v ^Chain|awk '{print $NF"-"$4".value", $2}'|sed 's/^dpt://'
22