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