Hi,
I’m trying to setup a redirect that would point to an IP adress under a VPN (tailscale). I’d like to type the adress sunshine.nekocorp.fr
to access https://100.127.196.128:47990
. I tried using page rules and setup a 301 redirect but it doesn’t resolve. I redirected my subdomain to a dummy ip to be able to setup the page rule. What an I doing wrong? See the screenshot
Hi,
The redirect is working as intended, but the target URL is not responding properly. That’s an issue for the destination server to solve.
Hi its normal you have a server side issue since the server is only accessible through a vpn. The ip is private and impossible to access without access to the vpn network. On my end it works now, I didn’t do anything so I don’t understand what was wrong
100.127.196.128 is a CGNAT IP, so it will always face challenges receiving unexpected incoming traffic from the public internet.
It seems that Tailscale uses the CGNAT space. This will make it impossible for Community members to test the actual connection.
You should be able to use developer tools or curl like @cbrandt did and determine whether you see the redirect. That should help you identify where your connectionis failing.
The redirect is now working, the issue I had was that the redirect was not happening. I tried it and it works now without me changing anything.
For what it’s worth, Tailscale has a solution for this of its own:
It issues certificates for you, and you can connect via your tailnet name. This is less hacky then using a redirect, shows as secured in the browser (it’s going over the VPN even if it’s insecure in the browser, but this looks cleaner), and shows as the hostname rather then a random IP. Might be worth looking into.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.