Asus AC3100 flashed with Merlin 386.14_2 and Entware. Running stock NTP Server via router GUI and set to intercept all NTP requests. Have many ESP based IOT devices with 3rd party FW presently on Asus Guest Network 1 (with intranet access enabled) and been working rock solid for years - but still feel the need to better isolate these devices from the internet, so I have installed YazFi and set up Guest Network 2 with 1 ESP device and user script to allow 2 way communication to MQTT broker on main LAN.
Everything is working except the IOT device cannot get a NTP request. I have read "many" posts on this forum on similar if not same issue, but threads are 2+ years old with using older versions of YazFi. One post was near same as my problem where a recommendation was made but the OP never really responded back as to whether it solved his issue. Here is my YasFi config and my user script. I am unsure whether my DNS1 and DNS2 settings are correct, but I have tried many different combinations. FYI, I have changed my router LAN from the usual 192.168.1.1 to 172.16.85.1 for years now. On the user script, I need all devices on the YazFi network to be able to have 2 way access to the MQTT broker on Raspberry Pi on 172.16.85.146 and I have verified this part is working. The 2nd part of the script was a recommendation made for the NTP issue - this part is not working as my IOT devices report "No reply from 172.16.85.1".
Everything is working except the IOT device cannot get a NTP request. I have read "many" posts on this forum on similar if not same issue, but threads are 2+ years old with using older versions of YazFi. One post was near same as my problem where a recommendation was made but the OP never really responded back as to whether it solved his issue. Here is my YasFi config and my user script. I am unsure whether my DNS1 and DNS2 settings are correct, but I have tried many different combinations. FYI, I have changed my router LAN from the usual 192.168.1.1 to 172.16.85.1 for years now. On the user script, I need all devices on the YazFi network to be able to have 2 way access to the MQTT broker on Raspberry Pi on 172.16.85.146 and I have verified this part is working. The 2nd part of the script was a recommendation made for the NTP issue - this part is not working as my IOT devices report "No reply from 172.16.85.1".
Code:
#!/bin/sh
# these two lines allow IOT devices to have two way comms to Raspberry Pi when "One Way" is enabled
iptables -I YazFiFORWARD -i wl0.2 -o br0 -d 172.16.85.146 -j ACCEPT
# uncomment line below if "One Way" nor "Two Way" is enabled
# iptables -I YazFiFORWARD -i br0 -o wl0.2 -s 172.16.85.146 -j ACCEPT
# next two lines allow IOT devices to sync to NTP Server
iptables -I YazFiFORWARD -i wl0.2 -o br0 -d 172.16.85.1 -p udp --dport 123 -j ACCEPT
iptables -I YazFiFORWARD -i br0 -o wl0.2 -s 172.16.85.1 -p udp --dport 123 -j ACCEPT