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.76k stars 485 forks source link

User public IP is not Changing to netbird IP #1863

Open nouman1657 opened 5 months ago

nouman1657 commented 5 months ago

Hi All,

Newbie here for Netbird.

We are trying to implement Netbird in our environment and we love its features for connecting devices with each other. However, we have some portals that are restricted to specific public IPs. When a user is working from home and connects to the Netbird VPN, their IP does not change to a static Netbird IP. As a result, we are unable to access those portals. We are using Netbird self-hosted version 0.27.3. Can anyone suggest if Netbird offers SSL VPN features that allow changing my public IP to the server's public IP?

alexmoras commented 5 months ago

You would need to configure Netbird to route all traffic to a specific peer. By default, Netbird only routes traffic targeted for another Netbird peer over the VPN. Everything else uses the default routes specified by your OS.

They've got a guide on how to route all internet traffic to a single peer, which would then cause it to have the external IP of the routing peer.

https://docs.netbird.io/how-to/configuring-default-routes-for-internet-traffic

nouman1657 commented 5 months ago

Yeah I have followed the same document but still my "Add Exit Node" button is missing on dashboard. Any suggestions?

Zain0004 commented 5 months ago

I am facing the same issue in my environment, The "Add Exit Node" button is missing. Please HELP.

lixmal commented 5 months ago

@nouman1657 @Zain0004 Are you running self-hosted? You might need to update the dashboard version, this was added recently.

Alternatively you can just route 0.0.0.0/0, same effect

Zain0004 commented 5 months ago

I am a newbie to netbird. Can you please tell me how to update the dashboard version as i have already installed the latest version of netbird.

jiangslee commented 5 months ago

I am a newbie to netbird. Can you please tell me how to update the dashboard version as i have already installed the latest version of netbird.

sed -i 's/dashboard:latest/dashboard:feature-exit-nodes/g' docker-compose.yml

docker dompose up -d dashboard

taylorwilsdon commented 5 months ago

The exit node management feature on the dashboard wasn't available in the docker image for netbirdio/dashboard:main until a few hours ago, but it is now - you can pin the [v2.3.0] tag to get it!

ukashazia commented 5 months ago

You would need to configure Netbird to route all traffic to a specific peer. By default, Netbird only routes traffic targeted for another Netbird peer over the VPN. Everything else uses the default routes specified by your OS.

They've got a guide on how to route all internet traffic to a single peer, which would then cause it to have the external IP of the routing peer.

https://docs.netbird.io/how-to/configuring-default-routes-for-internet-traffic

I followed the steps, setup my VPS as exit node for a desktop and android device in the same "peer group". But still my external/public Ip of peripheral devices (android and desktop) is not that of the public Ip of my VPS. Am I doing something wrong or missing something?

Nialit commented 5 months ago

Same for me, internet traffic seems not going through an exit node.