JFlow v9 IPv4 on Juniper SRX

Version 3

    JUNOS Set Format:

    set services flow-monitoring version9 template NTA-flow ipv4-template    (CHANGE TEMPLATE NAME AS REQUIRED)

     

    set forwarding-options sampling input rate 100    (CHANGE RATE AS REQUIRED)

    set forwarding-options sampling input run-length 0    (CHANGE RUN-LENGTH AS REQUIRED)

    set forwarding-options sampling family inet output flow-server 000.000.000.000 port 2055    (YOUR FLOW COLLECTOR IP GOES HERE & YOUR FLOW COLLECTOR PORT HERE)

    set forwarding-options sampling family inet output flow-server 000.000.000.000 version9 template NTA-flow    (YOUR FLOW COLLECTOR IP GOES HERE & YOUR FLOW TEMPLATE NAME HERE)

    set forwarding-options sampling family inet output inline-jflow source-address 000.000.000.000    (YOUR SRX IP ADDRESS GOES HERE)

     

    Do not type items in (PARENTHESIS)

    BOLD items should be changed to suite your environment

     

    Junos Format

    flow-monitoring {

        version9 {

            template NTA-flow {

                ipv4-template;

            }

        }

    }

     

    sampling {

        input {

            rate 100;

            run-length 0;

        }

        family inet {

            output {

                flow-server 000.000.000.000 {

                    port 2055;

                    version9 {

                        template {

                            NTA-flow;

                        }

                    }

                }

                inline-jflow {

                    source-address 000.000.000.000;

                }

            }

        }

    }