<Netflow version="1.0.1"> <capture> <interfaces>lan,opt7,opt10,opt1,opt2</interfaces> <egress_only>opt1,opt2</egress_only> <version>v9</version> <targets>127.0.0.1:2056</targets> </capture> <collect> <enable>1</enable> </collect> <activeTimeout>1800</activeTimeout> <inactiveTimeout>15</inactiveTimeout> </Netflow>
gw01:~ # ps ax | grep flow 6611 - Is 0:00.00 flowd: net (flowd)57722 - Is 0:00.00 flowd: monitor (flowd)
## Automatic generated configuration for netflow.# Do not edit this file manually.#netflow_interfaces="bridge1 bridge0 bridge2 ovpnc1 pppoe0 "netflow_egress_only="ovpnc1pppoe0 "netflow_version="9"netflow_int_destination="127.0.0.1:2055"netflow_destinations="127.0.0.1:2056"netflow_active_timeout=1800netflow_inactive_timeout=15
netflow_egress_only="ovpnc1 pppoe0 "
}} {% endfor%}{%endif%}"
}}{% endfor%} {%endif%}"
opnsense-patch 5c1756e6
/usr/local/opnsense/scripts/netflow/flowctl_stats.py
/usr/local/etc/rc.d/netflow
root@gw01:~ # /usr/local/etc/rc.d/netflow restartsetup bridge1ngctl: send msg: No such file or directoryerror bridge1: cannot create netflow node for bridge1setup bridge0ngctl: send msg: No such file or directoryerror bridge0: cannot create netflow node for bridge0setup bridge2ngctl: send msg: No such file or directoryerror bridge2: cannot create netflow node for bridge2setup ovpnc1 [egress only]ngctl: send msg: No such file or directoryerror ovpnc1: cannot create netflow node for ovpnc1setup pppoe0 [egress only]ngctl: send msg: No such file or directoryerror pppoe0: cannot create netflow node for pppoe0
root@gw01:~ # /usr/sbin/ngctl shutdown netflow_pppoe0ngctl: shutdown: No such file or directoryroot@gw01:~ # /usr/sbin/ngctl mkpeer pppoe0: netflow lower iface19ngctl: send msg: No such file or directory
root@gw01:~ # /usr/local/etc/rc.d/netflow restartsetup bridge1setup bridge0setup bridge2setup ovpnc1 [egress only]ngctl: send msg: No such file or directoryerror ovpnc1: cannot create netflow node for ovpnc1setup pppoe0 [egress only]ngctl: send msg: No such file or directoryerror pppoe0: cannot create netflow node for pppoe0