Page MenuHomePhabricator

Flow-accounting not working with PPPoE interfaces
Confirmed, LowPublic


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 {
            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 *              nflog-group 2 nflog-range 64 nflog-threshold 10
1482K   96M NFLOG      all  --  eth2.10 *              nflog-group 2 nflog-range 64 nflog-threshold 10
3240K 4195M NFLOG      all  --  pppoe0 *              nflog-group 2 nflog-range 64 nflog-threshold 10
1014K  860M NFLOG      all  --  eth1   *              nflog-group 2 nflog-range 64 nflog-threshold 10
  21M   18G RETURN     all  --  *      *  

…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


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close

Event Timeline

cmonck created this task.Jan 7 2019, 5:28 AM
cmonck created this object in space S1 VyOS Public.
hagbard claimed this task.Jan 7 2019, 4:32 PM
hagbard changed the task status from Open to Confirmed.Jan 7 2019, 9:38 PM
pasik added a subscriber: pasik.Jan 8 2019, 4:46 PM
hagbard added a comment.EditedJan 10 2019, 7:59 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 triaged this task as Low priority.Jan 20 2019, 12:25 PM
syncer moved this task from Needs Triage to Backlog on the VyOS 1.2 Crux (VyOS 1.2.0-EPA3) board.
leacho added a subscriber: leacho.Dec 16 2019, 11:33 AM

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.

blueish added a subscriber: blueish.Sat, Feb 8, 8:41 AM