16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 9: Firewall Filter <strong>Configuration</strong><br />

term default-term {<br />

then accept;<br />

}<br />

}<br />

}<br />

}<br />

Example: Blocking TFTP Access<br />

Block Trivial File Transfer Protocol (TFTP) access, logging any attempts to establish<br />

TFTP connections:<br />

[edit]<br />

firewall {<br />

family inet {<br />

filter tftp-access-control {<br />

term one {<br />

from {<br />

protocol udp;<br />

port tftp;<br />

}<br />

then {<br />

log;<br />

discard;<br />

}<br />

}<br />

}<br />

}<br />

}<br />

By default, to decrease vulnerability to denial-of-service (DoS) attacks, the Junos OS<br />

filters and discards Dynamic Host <strong>Configuration</strong> Protocol (DHCP) or Bootstrap Protocol<br />

(BOOTP) packets that have a source address of 0.0.0.0 and a destination address of<br />

255.255.255.255. This default filter is known as a unicast RPF check. However, some<br />

vendors’ equipment automatically accepts these packets. To interoperate with other<br />

vendors' equipment, you can configure a filter that checks for both these addresses and<br />

overrides the default RPF-check filter by accepting these packets.<br />

Example: Accepting DHCP Packets with Specific Addresses<br />

Configure a filter (rpf-dhcp) that accepts DHCP packets with a source address of 0.0.0.0<br />

and a destination address of 255.255.255.255:<br />

[edit firewall family inet]<br />

filter rpf-dhcp {<br />

term dhcp {<br />

from {<br />

source-address {<br />

0.0.0.0/32;<br />

}<br />

destination-address {<br />

255.255.255.255/32;<br />

}<br />

}<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.<br />

245

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!