HI can anyone help with a suggestion. I just upgraded from a TP-Link router to a MikroTik Hex router. Everything is working perfectly except one thing.
I access my home automation devices through a port that has been forwarded on my system to the home automation server. My network is 192.168.0.0/24, the mikrotek is set to 192.168.0.1 and the home automation system is on 192.168.0.16.
My rule is to forward traffic on port 4026 and interface PPP-1 to ip address 192.168.0.16 port 4026
The client on my phone is set to access mydomain.org:4026 (with mydomain being the dns entry for my static external IP).
Now this is where I am having problems. When my phone is using mobile data (ie outside the network) it works perfectly, however as soon as I join my internal wifi network (and phone is no on the 192.168.0.x subnet) it is not connecting to the home automation server.
On the TP-Link router this worked (ie the phone trying to connect to my public IP on port 4026 and being routed to the internal connection) but on the mikrotek this is not working. I am sure this is a firewall rule that I need to add.
I have created a workaround by assigning a static DNS entry for mydomain.org to 192.168.0.16 and this is working but it feels too much like a hack to me.