OPNsense Forum

English Forums => General Discussion => Topic started by: newtwork_noob_2878237843 on September 24, 2021, 02:07:22 PM

Title: Secure BGP setup for Kubernetes cluster
Post by: newtwork_noob_2878237843 on September 24, 2021, 02:07:22 PM
I just successfully set up BGP routing with FRR to help with load balancing my K8s cluster (with Metallb). I followed instructions from https://blog.xirion.net/posts/metallb-opnsense/ (https://blog.xirion.net/posts/metallb-opnsense/). I want the services in my k8s cluster to be advertised only to the local network. However, after setting up BGP I started seeing crazy amounts of suspicious traffic to the internet in Suricata on one of my K8s nodes. What did I screw up? Screenshots attached. Any tips would be much appreciated!

Title: Re: Secure BGP setup for Kubernetes cluster
Post by: mimugmail on September 24, 2021, 02:21:39 PM
You need to post the routing table ...
Title: Re: Secure BGP setup for Kubernetes cluster
Post by: newtwork_noob_2878237843 on September 24, 2021, 03:11:46 PM
Sorry, routing table attached
Title: Re: Secure BGP setup for Kubernetes cluster
Post by: mimugmail on September 24, 2021, 05:07:52 PM
There is no default gateway so there shouldnt be anything
Title: Re: Secure BGP setup for Kubernetes cluster
Post by: newtwork_noob_2878237843 on September 24, 2021, 05:36:17 PM
Thank you. By "there shouldn't be anything" do you mean there shouldn't be any security vulnerabilities associated with BGP? Many thanks
Title: Re: Secure BGP setup for Kubernetes cluster
Post by: mimugmail on September 24, 2021, 06:47:02 PM
If this is the routing table of k8s node then its safe :)
Title: Re: Secure BGP setup for Kubernetes cluster
Post by: newtwork_noob_2878237843 on September 24, 2021, 07:17:05 PM
This is the routing table from opnsense, not from the K8s nodes
Title: Re: Secure BGP setup for Kubernetes cluster
Post by: mimugmail on September 24, 2021, 07:19:43 PM
OK, and when k8s use OPN as Gateway, also safe
Title: Re: Secure BGP setup for Kubernetes cluster
Post by: newtwork_noob_2878237843 on September 24, 2021, 07:40:16 PM
 8) That's great news. I must have been just paranoid about the traffic I saw. Many thanks!