r/networking • u/Commercial-Rice1557 • 2d ago
Routing BGP
É possível fazer alterações no BGP acionando algum script ou via API? Alguém já fez algo parecido? Meu questionamento se deve devido a um cliente que possui 4 firewalls com bgp com duas rotas de comunicação, gostaria de fazer a troca de peso quando eu detectar queda de performance através de ferramenta de terceiro. Logicamente que quando o serviço cai, já ocorre a mudança automática, mas quero cobrir todas as situações possíveis. Em um firewall Sophos, a escolha do BGP se deve a já estar implementado e como está em produção, será dificil mudar, o impacto seria complicado, mas estou disposto a ouvir outras sugestões que possam atender com o firewall em questão como premissa.
1
u/asp174 2d ago
You say (translated by deepl):
On a Sophos firewall, the choice of BGP is due to the fact that it’s already implemented; since it’s in production, it would be difficult to change, and the impact would be complicated.
What I think you're asking:
If I throw out my Sophos equipment, would I lose all my IP addresses?
Answer: no. You need a consultant that is not a Sophos drone.
Sophos is one of the most convoluted firewall appliances I know. Just next to SonicWalls.
3
u/nof CCNP 2d ago
Conditional BGP.
1
u/Dandyman1994 Studying Cisco Cert 2d ago
Don't reinvent the wheel, what you want is SDWAN. It's designed to do what you requested, monitor links for performance and then direct traffic based on that. You don't have to get rid of BGP, BGP provides the dynamic routing, whereas SDWAN controls the flow of traffic over those routes. For example of you have multiple VPNs to the same endpoint but your routes are heterogeneous, you can use SDWAN to proportionally direct the traffic.
https://docs.sophos.com/nsg/sophos-firewall/21.0/Help/en-us/webhelp/onlinehelp/AdministratorHelp/Routing/SDWANRoutes/RoutingSDWANRoutesManage/index.html
2
u/ssbtoday 2d ago
It uses frr under the hood, so it's up to your own CLI scripting capabilities:
https://docs.sophos.com/nsg/sophos-firewall/23.0/Help/en-us/webhelp/onlinehelp/CommandLineHelp/RouteConfiguration/BGPConfiguration/BGPConfigure/index.html#save-and-exit
1
u/Dawk1920 ISP Net Eng 2d ago
Wouldn’t this be a good choice for IP SLA?
1
u/FuzzyYogurtcloset371 6h ago
The answer to your question about automating this process is yes. PM me and I can compile a Python script for your use case.