-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: add a bgp-action "set-aspath" for gobgpd.conf #1627
Comments
Strictly speaking,
Could you tell me why you want that feature? |
Hello thank you very much for your support! Our upstream will not accept that /32 if we announce it with our own AS because the subnet where 5.5.5.5/32 is in belongs to our customer and not to us (meaning that our upstreams take prefix-filtering very seriously, and rightly so). So if one of our customers is recieving excessive amounts of DDoS traffic the announcement for our upstreams needs to look like this: ################################################################################## The end goal is to monitor incoming traffic and if one of our IPs is the target of a DDoS attack we announce Blackholing to our upstreams like this: However, if it's one of our customers who is getting targeted, a different policy in gobgpd.conf should mach and build an announcement like this: Please note that I would not ask for this feature if it were not already implemented via CLI. Right now we have a different, more complex setup to do what I have described here. But if GoBGP were to offer "set as-path" via policy in gobgpd.conf and not only via CLI, we could simplify our infrastructure and use GoBGP for everything. I hope that my explanations were clear enough; please feel free to ask if you need more information. |
I noted. I made a PR to implement the feature: #1637 |
Hello I have tested it and it works. Thank you very much, this is an awesome project! |
Hello
the following command works via the command line and appends "6666" to the as-path of the announcement:
gobgp global rib add 5.5.5.5/32 nexthop 0.0.0.0 -a ipv4 aspath 6666
However, there is no way to create a policy that will do "aspath 6666" for me. The docs only state how to do an as-path prepend:
policy-definitions.statements.actions.bgp-actions.set-as-path-prepend
But on the cli "aspath 666" will do an append (which is exactly what we need). Therefore I kindly ask whether it would be possible to add something like:
policy-definitions.statements.actions.bgp-actions.set-as-path-append
or, as an alternative, something in the likes of
The goal of this feature would be to have the same functionality via the configuration file that is currently available via the cli.
Best regards
The text was updated successfully, but these errors were encountered: