Import/Export filter per peer...looking for suggestions

Stephen Holmes SHolmes at telx.com
Thu Jan 20 00:41:46 CET 2011


Hi all,

We have a few bird configurations we are attempting to throw into production, but there is one thing I cannot figure out entirely.  We would like to offer our participants the option to exclude in/outbound to other participants at their choosing.  I have a basic setup that filters based on the 'from' ip address of the interface, but this posses a problem.  Since I am using a master table this method could potentially reject a network that could have been offered through a non-preferred route (unless that is not the case?).  As is the filter function simply looks like this:

function bgp_out_ASXXXX(int peeras)
{
  if ! (source = RTS_BGP ) then return false;
  if (0,peeras) ~ bgp_community then return false;
  if (myas,peeras) ~ bgp_community then return true;
  if (0, myas) ~ bgp_community then return false;
  if from = x.x.x.x then {
      return false;
  }
  return true;
}

Any suggestions?

Thanks,
Stephen Holmes



More information about the Bird-users mailing list