Labs

 View Only
last person joined: 10 days ago 

Discover how to get the most of Juniper labs and share what you've built.
  • 1.  How does the firewall filter work ??

    Posted 03-18-2024 11:36

    Hello

    please i want some one help me  

    [edit firewall filter test ]
     
    term 1 {
    from {
    source-address {
    10.0.0.0/8;
    }
    }
    then {
    log;
    next term;
    }
    }
    term 2 {
    then {
    reject ;
    }
    }How is traffic, sourced from 10.0.0.0/8, treated by the firewall filter shown in the exhibit?
    A. logged and discarded
    B. logged and rejected
    C. logged with no further action
    D. logged and accepted
    so i want expert juniper help me for this question and explain me
    Thanks


    ------------------------------
    Dhikra Marghli
    ------------------------------


  • 2.  RE: How does the firewall filter work ??

    Posted 03-19-2024 04:05

    i wait some one answer me

    Thanks



    ------------------------------
    Dhikra Marghli
    ------------------------------



  • 3.  RE: How does the firewall filter work ??
    Best Answer

    Posted 03-19-2024 07:41
    Junos firewall filters are basically just a series of if/then statements. “IF the traffic matches these conditions, THEN take these actions”. Junos calls these if/then statements “terms”.

    The key is "Terms are evaluated in order"

    Term 1 says from {...} then log, so the traffic will be logged only and proceed to the next term because term 1 has no "Deny/Reject/Discard" action.
    The next term is Term 2 which has action "reject". This means that the firewall filter processing ends here and no more terms are looked at.

    So the answer should be "logged and rejected"

    The following blog explains Junos filters in a great detail.
    https://www.networkfuntimes.com/a-beginners-guide-to-junos-firewall-filters/

    You can also test this in Juniper vlabs.
    https://jlabs.juniper.net/vlabs/

    Best Regards,

    TJ Panesar
    Solutions Architect | JNCIE-DC #506    
    713-906-8571 mobile
    TJ.Panesar@gdt.com




  • 4.  RE: How does the firewall filter work ??

    Posted 03-19-2024 07:44

    ok thanks for your reply



    ------------------------------
    Dhikra Marghli
    ------------------------------