28.06.2014 Views

Discussion

Discussion

Discussion

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.

protocol tcp;<br />

destination-port [ telnet ssh ];<br />

}<br />

then accept;<br />

}<br />

term restrict-bgp {<br />

from {<br />

source-address {<br />

10.0.31.0/24;<br />

}<br />

protocol tcp;<br />

port bgp;<br />

}<br />

then accept;<br />

}<br />

Use the insert command to rearrange the terms. The command in this recipe moves<br />

the restrict-bgp term so that it precedes the restrict-telnet-ssh term. Check that<br />

the order is what you expect:<br />

[edit firewall filter incoming-to-me]<br />

aviva@RouterF# show<br />

term restrict-bgp {<br />

from {<br />

source-address {<br />

10.0.31.0/24;<br />

}<br />

protocol tcp;<br />

port bgp;<br />

}<br />

then accept;<br />

}<br />

term restrict-telnet-ssh {<br />

from {<br />

source-address {<br />

10.0.0.0/8;<br />

}<br />

protocol tcp;<br />

destination-port [ telnet ssh ];<br />

}<br />

then accept;<br />

}<br />

9.11 Filtering Traffic Transiting the Router<br />

Problem<br />

For traffic transiting through the router, you want to accept packets only from<br />

trusted hosts and routers.<br />

Filtering Traffic Transiting the Router | 311<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!