Page MenuHomeVyOS Platform

Flow-accounting not working with PPPoE interfaces
Confirmed, LowPublic

Description

Flow-accounting does not seem to work with PPPoE interfaces.

Config is as follows:

flow-accounting {
    interface eth1
    interface pppoe0
    interface eth2.10
    interface eth2.11
    netflow {
        engine-id 1
        sampling-rate 100
        server 192.168.0.247 {
            port 2055
        }
        timeout {
            expiry-interval 60
            flow-generic 300
            icmp 300
            max-active-life 604800
            tcp-fin 300
            tcp-generic 3600
            tcp-rst 120
            udp 300
        }
        version 9
    }
    syslog-facility daemon

Iptables seems to be 'capturing' the packets OK:

Chain VYATTA_CT_PREROUTING_HOOK (1 references)
 pkts bytes target     prot opt in     out     source               destination
 1347  474K NFLOG      all  --  eth2.11 *       0.0.0.0/0            0.0.0.0/0            nflog-group 2 nflog-range 64 nflog-threshold 10
1482K   96M NFLOG      all  --  eth2.10 *       0.0.0.0/0            0.0.0.0/0            nflog-group 2 nflog-range 64 nflog-threshold 10
3240K 4195M NFLOG      all  --  pppoe0 *       0.0.0.0/0            0.0.0.0/0            nflog-group 2 nflog-range 64 nflog-threshold 10
1014K  860M NFLOG      all  --  eth1   *       0.0.0.0/0            0.0.0.0/0            nflog-group 2 nflog-range 64 nflog-threshold 10
  21M   18G RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0

…but flow-accouting is showing nothing on the pppoe interface:

flow-accounting for [pppoe0]
Src Addr        Dst Addr        Sport Dport Proto    Packets      Bytes   Flows

Total entries: 0
Total flows  : 0
Total pkts   : 0
Total bytes  : 0

Details

Difficulty level
Unknown (require assessment)
Version
1.2.0-rc11
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

cmonck created this object in space S1 VyOS Public.
hagbard changed the task status from Open to Confirmed.Jan 7 2019, 9:38 PM

I got a bit further. uacctd seems to have an issue, I started manually pmacctd on pppoe0 and everything is working well. Uacctd shows that it gets hit with something when I check via strace, but it doesn't show anything.

syncer moved this task from Needs Triage to Backlog on the VyOS 1.2 Crux (VyOS 1.2.0-EPA3) board.

HI @hagbard - is there currently any work around to get the flow-accounting working on the rolling release? I raised T1838 as a similar issue. You mention above about starting pmacctd?

@leacho Sorry, I didn't have the time to look deeper into that, as far as I know we currently have no workaround for it.

hagbard subscribed.
dmbaturin set Is it a breaking change? to Unspecified (possibly destroys the router).
erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 6:58 PM