Is there a way to port forward a port on a particular tailscale host to another port on the same host? I tried doing this with iptables on the destination host, trying to make it so that port 80 redirects to the actual service running on port 8080 by using the following commands;
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
I think I’m missing something since the tailscale IP address is not the same as the one assigned to eth0 but I don’t see a tailscale0 interface or anything like that on the system even when tailscale is up.
Separately, is there a way to do this with tailscale without setting up iptables on the host?