Connecting remotely using two NAT configurations
Connecting remotely using two NAT configurations
Hey, perhaps someone can assist with your networking setup. You have two sites: one with your main server behind a double NAT and no web access, and another with a public dynamic IP address. You want to connect from a Raspberry Pi at the second site to reach the main server using mobile devices, without relying on their servers or a VPN tunnel. You mentioned working with a Raspberry Pi as a router for forwarding, but it restricts bandwidth to your second site's upload speed. You're looking for a free alternative that lets you establish a direct link from the Pi to the server.
I suggest ZeroTier, a virtual network tool that lets you set up a network and connect multiple devices to it. It supports Windows, macOS, Linux, iOS, and Android. Once devices join, they receive an IP address, allowing access across the same network.
I envision it would be more cost-effective for the ISP since only a single IP address is required...(Europe lacks IPv4 addresses). Locally there aren't many better ISP choices. I'm considering forwarding a port to the server and then connecting through OpenVPN/Wireguard or similar into the local network. Your advice is appreciated. I've tried Zerotier before, but if you need access to devices on the local network you must manually configure DNS on the client device (and set up forwarding rules on the server), and the client settings will reset when you disconnect from the Zerotier network. This is why I'm seeking an alternative solution.
He likely manages Carrier-grade NAT, which functions as a network address translation service at the carrier's end for numerous users.
I implemented ZeroTier as a VPN solution: I routed all local traffic through the Zerotier network (acting as the network bridge) and allowed Zerotier clients to select an IP within the local subnet. To handle local domains, I configured my default DNS server in the client devices. Unlike OpenVPN, this setup ensures every device in the Zerotier network perceives itself as connected to the LAN. (I didn’t use the RPi.)