Author Topic: Juniper EX4200: Firewall rules  (Read 5746 times)

screeble

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Juniper EX4200: Firewall rules
« on: June 14, 2012, 05:46:01 am »
Greetings,

Can someone  help me to configure firewall on Juniper EX4200?
(10.2R1.8 JUNOS 10.2R1.8)
We need to block all udp and icmp traffic to specifc IP in our network.
Which rules we should use to resolve this task?

Any suggestions will be greatly appreciated.

Kryptonite

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Juniper EX4200: Firewall rules
« Reply #1 on: June 28, 2012, 10:57:06 pm »
firewall {
    family inet {
        filter test {
            term t1 {
                from {
                    source-address {
                        1.1.1.1/32;
                    }
                    Protocol icmp;
                          icmp-type [ echo-request echo-reply time-exceeded unreachable ];
                }
           then {
                    discard;
            term t2 {

                then {
                    accept;
                }
}

You can include protocol UDP also

I do not have switch handy i will try and send the exact output.

you can try applying the above to a vlan interface or create a loopback and then apply to the loopback




Krpytpnite

screeble

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Juniper EX4200: Firewall rules
« Reply #2 on: July 03, 2012, 06:50:13 am »
Great thanks! :mrgreen: