I’m looking to create a 1-to-1 NAT using a secondary ZeroTier interface IP. Is this possible?
My thought it to assign two IP addresses to a member. The primary IP would be for the linux PC with ZeroTier client. The secondary IP would NAT to a device (like an IP camera) on the local network.
I made a diagram to help explain what I’m trying to accomplish. Thanks!
Thanks for the reply. I’m looking to access the camera as 172.30.0.3.
In my specific case I have a bunch of edge networks that all have the same 192.168.0.x subnet. Each edge subnet has just a few devices. I’m thinking I could just use secondary ZeroTier IP addresses and NAT the ZeroTier IP to each edge device. I could then access whatever edge device I want using a 172.30.x.x address. I could have a complete overlay network and not have to worry about the edge network subnets overlapping or being duplicated.
I got it working. I think there was an issue with forwarding not working until I updated the setting in “/etc/sysctl.conf” and rebooted. Overall, it’s pretty easy.
Here’s the solution:
-Edit /etc/sysctl.conf and set “net.ipv4.ip_forward=1”.