Suppose your company uses Grafana to monitor its applications and servers.
Now imagine an employee resigns from your company.
But that person still knows the admin username and password for Grafana.
If Grafana is publicly accessible and those credentials are still valid, they could log in from anywhere, even after leaving the company.
How can we prevent situations like this?
One way is to restrict Grafana so that it can be accessed only through the company's private network. The company should also remove the former employee's access and change any shared credentials.
Now, when you're working from the office and connected to the company network, you can access Grafana.
But what if you're working from home or another location?
You're no longer connected to your company's private network, so you might not be able to open Grafana.
You still need to access it for your work, right?
So, how can we allow employees to access private applications from anywhere without making those applications publicly accessible?
Let's see how this works.
How Can We Access Private Applications from Anywhere?
In our example, Grafana is running inside AWS with a private IP address.
Let's say:
- Grafana URL:
grafana.xyz.com - Grafana private IP:
10.0.2.50 - Grafana port:
3000
Your company has configured Grafana so that it can be accessed only through its private network.
If you're working from home, you can't directly reach that AWS private network over the public internet.
So, how can you access Grafana without making it publicly accessible?
Your company can use a VPN (Virtual Private Network).
Let's understand how this works using NetBird as an example.
Step 1: Connect to NetBird
Suppose NetBird is installed on your laptop.
You open NetBird and sign in using the individual company login credentials given to you.
NetBird checks whether your account and device are allowed to connect.
Once connected, your laptop gets an additional IP address for the NetBird network.
For example:
- Your home Wi-Fi IP:
192.168.1.10 - Your NetBird IP:
100.90.0.12
Your home Wi-Fi IP doesn't change. NetBird adds another network connection to your laptop.
Step 2: Open Grafana
Now you open grafana.xyz.com in your browser.
Suppose your company has configured DNS so that this domain resolves to Grafana's private IP, 10.0.2.50.
Your laptop creates a request with:
- Source IP:
100.90.0.12(Your NetBird IP) - Destination IP:
10.0.2.50(Grafana's private IP)
But Grafana is inside the AWS private network. We can't directly reach that private IP through the public internet.
Since NetBird has already configured a route to the AWS private network, your laptop sends the request through NetBird.
NetBird encrypts the original packet and places it inside another packet that can travel over the internet.
This outer packet contains:
- Source IP: Your home network's public IP
- Destination IP: The AWS NetBird device's public IP
So, the internet delivers the encrypted packet to the NetBird device in AWS, without needing to access Grafana's private IP directly.
This secure connection is called a VPN tunnel.
Step 3: NetBird Forwards the Request to Grafana
Now the NetBird device inside AWS receives the encrypted packet through its public connection.
It decrypts the packet and gets the original request:
- Source IP:
100.90.0.12(Your NetBird IP) - Destination IP:
10.0.2.50(Grafana's private IP)
Since this NetBird device is connected to the AWS private network, it can forward the request to Grafana.
In our example, NetBird is configured to change the source IP to its own AWS private IP before forwarding.
So, the packet that reaches Grafana contains:
- Source IP:
10.0.1.10(AWS NetBird device's private IP) - Destination IP:
10.0.2.50(Grafana's private IP)
Notice that the destination remains Grafana's private IP. Only the source IP changes at this step.
Grafana receives the request and sends its response back to the AWS NetBird device.
That device sends the response back through the encrypted tunnel to your laptop.
Now you can access Grafana from home, even though it isn't publicly accessible.
What If an Employee Leaves the Company?
Remember our earlier example where someone resigned but still knew Grafana's admin credentials?
The company can remove that employee's individual NetBird access and disconnect their registered devices.
Now, even if they still know Grafana's admin credentials, they can't reach Grafana through the VPN because they no longer have permission to connect to the private network.
So, the company can control who can access its private applications, even when employees are working from different locations.

