nebula icon indicating copy to clipboard operation
nebula copied to clipboard

Attach secondary IP to nebula interface

Open smeana opened this issue 4 years ago • 4 comments

Hello

We are configuring keepalived which needs a shared VIP between the two hosts. As we want to have it inside nebula network we tried to attach the VIP address to the nebula interface but there is not connectivity from outside that VM:

3: nebula1: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1300 qdisc pfifo_fast state UNKNOWN group default qlen 500
    link/none
    inet 10.0.0.1/24 scope global nebula1
       valid_lft forever preferred_lft forever
    inet 10.0.0.10/24 scope global secondary nebula1
       valid_lft forever preferred_lft forever

Is any valid configuration to make it works?

regards

smeana avatar Feb 11 '22 14:02 smeana

As you may have already seen in #389 this is currently not possible.

Even if sharing IPs was supported, you'll quickly find out that it still won't work because VRRP announcements (which keepalived uses) are done over L2 which nebula doesn't handle.

You are however free to run another tunnel (presumably an L2 one) on top of nebula, but that seems kind of pointless since by doing so you're essentially negating the benefits you get from using nebula in the first place (e.g. built-in firewall).

caguiclajmg avatar Feb 11 '22 15:02 caguiclajmg

What end goal are you trying to accomplish? Perhaps there's a better way to do this within the constraints of nebula.

benyanke avatar Feb 11 '22 15:02 benyanke

What end goal are you trying to accomplish? Perhaps there's a better way to do this within the constraints of nebula.

Hello @benyanke

The end goal is having a failover IP or virtual IP shared between two or three machines, which will be assigned be keepalived inside nebula network. What is the better way of doing this? :)

thanks

smeana avatar Feb 12 '22 15:02 smeana

Are the primary consumers of the service clients within nebula or outside? Perhaps a pair of load balancers with DNS round robin could provide some of the tooling you need.

benyanke avatar Feb 13 '22 23:02 benyanke

Closing this out per discussion above.

johnmaguire avatar Dec 07 '22 19:12 johnmaguire