netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.96k stars 495 forks source link

Allow select subnet size #1959

Open tiagogbarbosa opened 5 months ago

tiagogbarbosa commented 5 months ago

Is possble to add a option to change subnet and/or subnet size so wont conflict with other vpns?

Thank you

mlsmaycon commented 5 months ago

Hello @tiagogbarbosa, thanks for your request.

We have a /16 subnet size with a random pick to avoid conflict with other solutions that use the CGNAT range. Can you share more about your case? like what is the other VPN solution you are using and what is their subnet range?

nuterum commented 5 months ago

If you need to make the change no matter what i have explain how to do it here.

But as you seem to already have peer it may be a bit long to do and for now i can't say for sure that no problem will occur. I am still in testing phase of it (start 2 day ago) and for now everything working without problem.

tiagogbarbosa commented 5 months ago

Hello @tiagogbarbosa, thanks for your request.

We have a /16 subnet size with a random pick to avoid conflict with other solutions that use the CGNAT range. Can you share more about your case? like what is the other VPN solution you are using and what is their subnet range?

I have a need to set my own 24 (max) subnet because server has multiple vpns connections and servers and is a "hub" between multiple clients network for my equipments.. they all call back home via vpn and need to access multiple network, those clients in their policy allow only specifc port and ips on their network, so i need to use various type of vpn , openvpn, wireguard , fortinet .. etc..

and i want to use netbird in my phone/computer to easy access those devices remote from home

And also i think is a good idea to let user select the network and netmask, if user dont want/can use the default

tiagogbarbosa commented 5 months ago

If you need to make the change no matter what i have explain how to do it here.

But as you seem to already have peer it may be a bit long to do and for now i can't say for sure that no problem will occur. I am still in testing phase of it (start 2 day ago) and for now everything working without problem.

Nice, will try too, will report back soon

Thank you