Hey,
I have an raspberry (it’s connected via wifi to the router which is behind NAT) at a remote location. I have zerotier installed on it, at home on router I also have a zerotier. The network works, I can connect to raspberry ssh from the home router.
I have a device connected to the home router via wifi (e.g. phone and has a fixed IP address assigned) and I want all traffic from this device to go through the raspberry. In other words, if I check the external ip on the phone, it should display from a remote location (where raspberry is).
I suspect I need to operate on iptables. Unfortunately, I don’t know much about it, so I need your help. What should this command be?
I need to redirect traffic from 192.168.1.10 to the zerotier network so that it goes through rpi in and out of the router at a remote location.
Address of the router at home - 192.168.1.1
Phone address - 192.168.1.10
Zerotier IP on the router at home - 172.27.178.20
Remote router address - 192.168.0.1
Raspberry address - 192.168.0.10
Zero address on raspberry - 172.27.178.50
Thanks for help