BGP Path Filtering

Leo Bicknell bicknell at ufp.org
Fri May 16 13:44:28 UTC 2003


In a message written on Thu, May 15, 2003 at 10:29:18PM -0400, Mark Radabaugh wrote:
> I'm having a hard time finding best practices for filtering outbound bgp
> announcements when providing transit to bgp-speaking customers.  While we
> currently multi-home to several providers it appears we will soon need to
> provide transit for customers with their own AS's.

I strongly recomend you prefix list filter your customers, rather
than AS path filter them.  While AS path filters to prevent some
kinds of abuse and accidental mistake, they still allow your customer
to hijack any address space in your network (and possibly beyond)
at any time.

> ip as-path access-list 3 permit ^12345$
> 
> but I think this breaks if AS12345 prepends their advertisement.

Probably you want something more like:

ip as-path access-list 3 permit ^(12345_)+$
ip as-path access-list 3 permit ^(12345_)+(6789_)+$

Giving both the customer, and customer with a customer case.  That is
both specific, and allows for prepends.  Your example has a couple of
problems:

> ip as-path access-list 3 permit ^12345_[0-9]$*

First, it's not a valid regex ($* need to be *$), second, it allows any
(single) AS behind 12345, so it's hardly a useful filter.

-- 
       Leo Bicknell - bicknell at ufp.org - CCIE 3440
        PGP keys at http://www.ufp.org/~bicknell/
Read TMBG List - tmbg-list-request at tmbg.org, www.tmbg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://mailman.nanog.org/pipermail/nanog/attachments/20030516/09befdf6/attachment.sig>


More information about the NANOG mailing list