Community discussions

MikroTik App
 
Kraklol
just joined
Topic Author
Posts: 13
Joined: Thu Mar 29, 2012 4:11 pm

Multiple BGP in-filters

Sat Aug 18, 2012 1:13 pm

Hello all,

I'm wondering if it is possible to multiple "in-filter" on a BGP peer ?
I'd like to have a global filter for all my peers (filtering RFC1918 for instance) and more specific filter for each peer (setting local-pref or filtering prefixes from IRR).

Maintaining a load of routing filters when changing a parameter which is applicable for every peer is a pain :/

Thank you in advance.
 
samsung172
Forum Guru
Forum Guru
Posts: 1191
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: Multiple BGP in-filters

Sun Aug 19, 2012 2:25 am

this is possible. I would recoment to make a script, setting filter for your bgp... eg..
 if "as nr" bla bla bla set routing filter bla bla bla [as nr]

possible to do somethig like:

 "read peer as nr.. parse something to filter from this"

 
Kraklol
just joined
Topic Author
Posts: 13
Joined: Thu Mar 29, 2012 4:11 pm

Re: Multiple BGP in-filters

Sun Aug 19, 2012 12:21 pm

Thank you for the answer. I'm not sure I understand everything but it's still a pointer. :)
 
samsung172
Forum Guru
Forum Guru
Posts: 1191
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: Multiple BGP in-filters

Sun Aug 19, 2012 11:32 pm

Well. answer is. yes. its possible to do it and have more than one "chain". :D

mark connection. packet or something. Make rulset based on AS nr.. Make one global, and one unit spesific. (unit spesific can be global made, by a script like the one i "wrote about" if based on AS nr.)

Who is online

Users browsing this forum: AlexM2020, Amazon [Bot] and 53 guests