From a8a429ca825e120f7760f92e1aacb07d30b1e495 Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Mon, 2 Jun 2025 13:44:42 +0200 Subject: [PATCH] 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. --- proto/bgp/config.Y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3