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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

Configuring a Regular Expression for Lines to Be Logged<br />

By default, the trace operation output includes all lines relevant to the logged events.<br />

You can refine the output by including the match option with the file statement at the<br />

[edit forwarding-options helpers traceoptions] hierarchy level and specifying a regular<br />

expression (regex) to be matched:<br />

[edit forwarding-options helpers traceoptions]<br />

file filename match regular-expression;<br />

Example: Configuring DNS Packet Forwarding<br />

Enable DNS packet request forwarding to all interfaces on a router except t1-1/1/2 and<br />

t1-1/1/3:<br />

[edit forwarding-options helpers]<br />

dns {<br />

server 10.10.10.30;<br />

interface {<br />

t1-1/1/2 {<br />

no-listen;<br />

server 10.10.10.9;<br />

}<br />

t1-1/1/3 {<br />

no-listen;<br />

server 10.10.10.4;<br />

}<br />

}<br />

}<br />

Preventing DHCP Spoofing on MX Series Ethernet Services Routers<br />

A problem that sometimes occurs with DHCP is DHCP spoofing. in which an untrusted<br />

client floods a network with DHCP messages. Often these attacks utilize source IP address<br />

spoofing to conceal the true source of the attack.<br />

DHCP snooping helps prevent DHCP spoofing by copying DHCP messages to the control<br />

plane and using the information in the packets to create anti-spoofing filters. The<br />

anti-spoofing filters bind a client’s MAC address to its DHCP-assigned IP address and<br />

use this information to filter spoofed DHCP messages. In a typical topology, a carrier<br />

edge router (in this function also referred to as the broadband services router [BSR])<br />

connects the DHCP server and the MX Series router (or broadband services aggregator<br />

[BSA]) performing the snooping. The MX Series router connects to the client and the<br />

BSR.<br />

DHCP snooping works as follows in the network topology mentioned above:<br />

1. The client sends a DHCP discover message to obtain an IP address from the DHCP<br />

server.<br />

2. The BSA intercepts the message and might add option 82 information specifying the<br />

slot, port, VPI/VCI, and so on.<br />

374<br />

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

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

Saved successfully!

Ooh no, something went wrong!