Make cloudflared bypass VPN
I'm running a VPN on my server to expose ports without publicizing its IP. The VPN client doesn't have a way of excluding processes, so is there a way to make cloudflared use a specific network interface for tunnels? Alternatively, is there a way to know what IP cloudflared is going to connect to / request a specific IP so that I can set the IP in the VPN's split tunnel settings?
4 Replies
Support AI
You can specify the outgoing IP address used to establish a connection between
cloudflared
and the Cloudflare global network by using the edge-bind-address
parameter. This can be done by running the command cloudflared tunnel --edge-bind-address <IP> run <UUID or NAME>
. This will allow you to prefer a specific interface for the tunnel connection.
For more information, refer to the documentation on cloudflared parameters.
As for knowing what IP cloudflared is going to connect to, you can use the cloudflared tunnel info <NAME or UUID>
command to display details about the active connectors for a given tunnel. However, this will not provide the specific IP address that cloudflared will connect to.
Instead, you can use the cloudflared tunnel route ip show
(or list
) command to show your organization's private routing table. This will give you an idea of the IP addresses that cloudflared is routing traffic to. You can then use this information to set the IP in the VPN's split tunnel settings.
For more information, refer to the documentation on tunnel useful commands.Sources
Feedback
Feedback has been submitted! Thank you :)
This is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.
Is the IP address the Cloudflare IP I want to connect to or the external IP that I want to connect from?
Support AI
The
edge-bind-address
parameter specifies the outgoing IP address used to establish a connection between cloudflared
and the Cloudflare global network. This means it is the external IP address that you want to connect from, not the Cloudflare IP you want to connect to.
In other words, it allows you to specify the IP address of your server that will be used to initiate the connection to Cloudflare, rather than letting the operating system decide which IP address to use.
For more information, refer to the documentation on cloudflared parameters.Sources
This is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.
hmm that just breaks it