Skip to content

Commit

Permalink
sysinfo.json: remove double vpn traffic stats
Browse files Browse the repository at this point in the history
  • Loading branch information
cremesk committed Jan 5, 2024
1 parent b802413 commit df9b282
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions salt/freifunk/base/ddmesh/var/www_freifunk/sysinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ EOM
if [ "$iface" = "tbb_wg" ]; then
echo " \"traffic_$iface\": \"$(grep "$iface": /proc/net/dev | sed -n 's#.*:[ ]*\([0-9]\+\)\([ ]\+\([0-9]\+\)\)\{8\}.*#\1,\3#;p')\","
fi

if [[ "$iface" =~ "vpn"* ]]; then
echo " \"traffic_wg_$iface\": \"$(grep "$iface": /proc/net/dev | sed -n 's#.*:[ ]*\([0-9]\+\)\([ ]\+\([0-9]\+\)\)\{8\}.*#\1,\3#;p')\","
fi
done

rx=$(sudo iptables -w -xvn -L stat_from_ovpn | awk '/RETURN/{print $2}')
Expand Down

0 comments on commit df9b282

Please sign in to comment.