Hello.
I've added to /opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script commands:
iptables -I VYATTA_POST_FW_FWD_HOOK -j NETFLOW
After system boot, this command does not apply with this error:
root@pc:/home/vyos# systemctl status rc-local
● rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service; static) Active: failed (Result: exit-code) since Tue 2016-12-13 17:26:41 GMT-3; 15min ago
Dec 13 17:26:40 pc.example.ru rc.local[1734]: iptables: No chain/target/match by that name.
Dec 13 17:26:41 pc.example.ru systemd[1]: rc-local.service: control process exited, code=exited status=1
Dec 13 17:26:41 pc.example.ru systemd[1]: Failed to start /etc/rc.local Compatibility.
Dec 13 17:26:41 pc.example.ru systemd[1]: Unit rc-local.service entered failed state.
If I applly it after boot time, all is good.
root@pc:/home/vyos# iptables -I VYATTA_POST_FW_FWD_HOOK -j NETFLOW
root@pc:/home/vyos# iptables-save | grep NETFLOW
-A VYATTA_POST_FW_FWD_HOOK -j NETFLOW
root@pc:/home/vyos#