From: Igor Putovny Date: Mon, 2 Jun 2025 11:44:42 +0000 (+0200) Subject: BGP: Disallow AS Sets by default X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8a429ca825e120f7760f92e1aacb07d30b1e495;p=thirdparty%2Fbird.git BGP: Disallow AS Sets by default For a long time, AS Sets have been considered obsolete but they were still valid by the original RFC. Recently, RFC 9774 flipped this and AS Sets are now formally deprecated. Therefore, all BGP sessions will now by default reject routes containing AS Sets in their AS Paths. If you want to keep the old behavior, you may simply state allow as set; in every BGP protocol configuration where you want to accept AS Sets. This closes #248. --- diff --git a/proto/bgp/config.Y b/proto/bgp/config.Y index 93df8f966..d73c0317c 100644 --- a/proto/bgp/config.Y +++ b/proto/bgp/config.Y @@ -73,7 +73,7 @@ bgp_proto_start: proto_start BGP { BGP_CFG->enable_hostname = 0; BGP_CFG->capabilities = 2; BGP_CFG->interpret_communities = 1; - BGP_CFG->allow_as_sets = 1; + BGP_CFG->allow_as_sets = 0; BGP_CFG->default_local_pref = 100; BGP_CFG->gr_mode = BGP_GR_AWARE; BGP_CFG->gr_time = 120;