New installation of pfSense v2.4.2_1 - Bandwidth Usage Reports



  • Hi everyone,

    I've installed a pair of pfSense devices on 1U Dell R610s with 48GB RAM and 146GB of HDD space.

    They work fine, and almost all of the configuration is perfect. The only issue I am having is getting the email reporting to work as I'd expect it to. I understand RRD is gone, and I am fine with that.

    I have vnstat installed, and I have setup the openvpn interface and the VLAN interface on bce0. But it doesn't appear to be picking up any traffic. It seems to be the same for the OpenVPN connections.

    What I'd ideally like is three rows on the email which is sent daily to myself and one other person, one with the data transferred on the WAN interface (which is the VLAN, bce0.xxxx), one with the data transferred on the LAN interface (bce1), and the third with the data transferred via the OpenVPN server (ovpns1)

    Can I do this? If so, how?

    Thanks.



  • What happens if you run /usr/local/bin/vnstat from the cli and have you got Status_Traffic_Totals installed ?

    [2.4.2-RELEASE][admin@pfsense]/root: /usr/local/bin/vnstat

    rx      /      tx      /    total    /  estimated
    WAN (pppoe0):
          Mar '18    41.81 GiB  /    2.57 GiB  /  44.38 GiB  /  70.08 GiB
        yesterday      2.44 GiB  /  131.85 MiB  /    2.57 GiB
            today      1.40 GiB  /  103.39 MiB  /    1.50 GiB  /    2.38 GiB

    LAN (igb0):
          Mar '18      8.63 GiB  /  48.17 GiB  /  56.80 GiB  /  89.70 GiB
        yesterday      6.28 GiB  /    8.63 GiB  /  14.92 GiB
            today    165.54 MiB  /    1.46 GiB  /    1.62 GiB  /    2.58 GiB

    USER (igb0.2):
          Mar '18      4.83 GiB  /  36.86 GiB  /  41.69 GiB  /  65.84 GiB
        yesterday      3.43 GiB  /    5.18 GiB  /    8.61 GiB
            today    108.51 MiB  /    1.36 GiB  /    1.47 GiB  /    2.33 GiB

    GUEST (igb0.3):
          Mar '18    10.70 MiB  /  16.83 MiB  /  27.52 MiB  /  40.00 MiB
        yesterday      1.21 MiB  /    1.89 MiB  /    3.10 MiB
            today      777 KiB  /    1.19 MiB  /    1.95 MiB  /      –

    IOT (igb0.4):
          Mar '18    344.16 MiB  /    7.13 GiB  /    7.46 GiB  /  11.78 GiB
        yesterday    26.21 MiB  /  647.64 MiB  /  673.85 MiB
            today    10.36 MiB  /  39.67 MiB  /  50.03 MiB  /      77 MiB

    DMZ (igb0.5):
          Mar '18      2.72 GiB  /    2.70 GiB  /    5.42 GiB  /    8.56 GiB
        yesterday      2.71 GiB  /    2.69 GiB  /    5.40 GiB
            today      854 KiB  /    1.26 MiB  /    2.10 MiB  /      --

    VOICE (igb0.6):
          Mar '18    76.94 MiB  /  111.22 MiB  /  188.17 MiB  /  295.00 MiB
        yesterday      6.77 MiB  /    7.30 MiB  /  14.07 MiB
            today      4.27 MiB  /    4.60 MiB  /    8.87 MiB  /      12 MiB

    TEST (igb0.7):
          Mar '18    58.24 MiB  /  53.63 MiB  /  111.88 MiB  /  174.00 MiB
        yesterday      1.43 MiB  /    2.10 MiB  /    3.52 MiB
            today      939 KiB  /    1.34 MiB  /    2.25 MiB  /      --

    IPsec (enc0):
          Mar '18    31.54 MiB  /  946.15 MiB  /  977.68 MiB  /    1.51 GiB
        yesterday        0 KiB  /      0 KiB  /      0 KiB
            today        0 KiB  /      0 KiB  /      0 KiB  /      --

    The traffic isn't right for my LAN interface as I think it puts the parent interface into promiscuous mode, my LAN interface is just used for switch & Wi-Fi management no way the total is 56.80 GiB.

    [2.4.2-RELEASE][admin@pfsense]/root: /usr/local/bin/vnstat –longhelp
    vnStat 1.15 by Teemu Toivola <tst at="" iki="" dot="" fi="">Query:
            -q, --query          query database
            -h, --hours          show hours
            -d, --days            show days
            -m, --months          show months
            -w, --weeks          show weeks
            -t, --top10          show top 10 days
            -s, --short          use short output
            -ru, --rateunit      swap configured rate unit
            --oneline            show simple parseable format
            --exportdb            dump database in text format
            --importdb            import previously exported database
            --json                show database in json format
            --xml                show database in xml format
      Modify:
            --create              create database
            --delete              delete database
            -u, --update          update database
            -r, --reset          reset interface counters
            --sync                sync interface counters
            --enable              enable interface
            --disable            disable interface
            --nick                set a nickname for interface
            --cleartop            clear the top 10
            --rebuildtotal        rebuild total transfers from months
      Misc:
            -i,  --iface          select interface (default: eth0)
            -?,  --help          short help
            -D,  --debug          show some additional debug information
            -v,  --version        show version
            -tr, --traffic        calculate traffic
            -l,  --live          show transfer rate in real time
            --style              select output style (0-4)
            --iflist              show list of available interfaces
            --dbdir              select database directory
            --locale              set locale
            --config              select config file
            --savemerged          save merged database to current directory
            --showconfig          dump config file with current settings
            --testkernel          check if the kernel is broken
            --longhelp            display this help

    See also "man vnstat".</tst>


Log in to reply