ZeroTier - access to router via www

Hello. I have ZeroTier installed on RPi with Ubuntu 18.04. RPi is connected by LAN cable with Huawei B535. I would like to connect to RPi using ZeroTier (it’s working) and get access to the router using web browser from phone. I have tested and putty connection is working ok, ping is OK but I can’t connect via www. Could you please help ?

Regards

Hi @egon64 check this topic (Route between ZeroTier and Physical Networks not working - #6 by dmiranda)

I did this in my raspberry and I can reach every device behind the router, include the router.

@dmiranda Hi. Yes, it’s working, but only until the next RPi restart. I have enter below commands, but I think that it’s not working correctly:

sudo apt install iptables-persistent
sudo bash -c iptables-save > /etc/iptables/rules.v4

After every reboot of the device I have to repeat the following commands:

sudo sysctl -w net.ipv4.ip_forward=1
PHY_IFACE=eth0; ZT_IFACE=zt7nnig26
sudo iptables -t nat -A POSTROUTING -o $PHY_IFACE -j MASQUERADE

Regards

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.