OPNsense Forum

English Forums => Virtual private networks => Topic started by: Vetal on August 25, 2022, 07:47:10 AM

Title: Zerotier, losing static IP
Post by: Vetal on August 25, 2022, 07:47:10 AM
I set up Zerotier, L3 mode on OpnSense

I use some dynamic routing, so I needed to avoid Zerotier to push any routes. They provided by BGP instead

I've set 'allowManaged=0' for Zerotier. As by specs from Zerotier, this disables both static routes push and IP assignment for interface. One is desired, another undesired, while works as it should

To deal with second part, I set up Zerotier IP via Interfaces->[Zerotier], set as "Static IP" with proper IP/Mask

It works, all good. Until I restart firewall or Zerotier service. After that, IP is lost on Zerotier interface:


ztsomenetworkname: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 5000 mtu 2800
        options=80000<LINKSTATE>
        ether e2:8f:7c:91:5b:b2
        hwaddr 58:9c:fc:10:ff:9e
        groups: tap
        media: Ethernet autoselect
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        Opened by PID 87612


After that, I can go in to Interfaces->[Zerotier], Hit "Save", "Apply changes" and it works again


ztsomenetworkname: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 5000 mtu 2800
        description: Zerotier
        options=80000<LINKSTATE>
        ether e2:8f:7c:91:5b:b2
        hwaddr 58:9c:fc:10:ff:9e
        inet 172.23.76.8 netmask 0xffffff00 broadcast 172.23.76.255
        groups: tap
        media: Ethernet autoselect
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        Opened by PID 87612



Is it on Zerotier's side and I should open ticket there? Or OpnSense missing some callback?