Hi all, I'd like to start by thanking you all, I have learned a lot by reading this forum; and I'd particularly like to thank
@Jack Yaz for writing YazFi, it's a fantastic script!
Like many others, I am using YazFi to isolate IoT devices from my main LAN's subnet. This includes a few Amazon Fire sticks that I have. The reason I'm posting is that I don't have a lot of knowledge regarding IP table rules, and I'm trying to create a pinhole to allow the AFTVs to connect to my Plex server on the main LAN on specific ports, but it doesn't seem to be working. It's unclear to me, in my ignorance, whether the issue is with my iptables settings or something else. If anyone could enlighten me, I'd appreciate it
I am running an RT-AC68U on the latest Merlin firmware, with the latest YazFi script.
My YazFi settings are as follows:
Code:
wl11_ENABLED=true
wl11_IPADDR=192.168.5.0
wl11_DHCPSTART=30
wl11_DHCPEND=220
wl11_DNS1=192.168.1.251
wl11_DNS2=9.9.9.9
wl11_FORCEDNS=true
wl11_REDIRECTALLTOVPN=false
wl11_VPNCLIENTNUMBER=1
wl11_TWOWAYTOGUEST=false
wl11_ONEWAYTOGUEST=true
wl11_CLIENTISOLATION=false
I have run the following commands without port restrictions, figuring once I get it working, I can tighten it down later:
Code:
iptables -I YazFiFORWARD -i wl1.1 -d 192.168.1.20 -j ACCEPT
iptables -I YazFiFORWARD -o wl1.1 -s 192.168.1.20 -j ACCEPT
Here is what is produced for YazFiFORWARD from the "iptables -L -v" command:
Code:
Chain YazFiFORWARD (1 references)
pkts bytes target prot opt in out source destination
207 25966 ACCEPT udp -- any wl1.1 192.168.1.251 anywhere udp spt:domain
207 12461 ACCEPT udp -- wl1.1 any anywhere 192.168.1.251 udp dpt:domain
0 0 ACCEPT tcp -- any wl1.1 192.168.1.251 anywhere tcp spt:domain
0 0 ACCEPT tcp -- wl1.1 any anywhere 192.168.1.251 tcp dpt:domain
107 21990 ACCEPT all -- wl1.1 !eth0 anywhere anywhere state RELATED,ESTABLISHED
191 43528 ACCEPT all -- !eth0 wl1.1 anywhere anywhere
167 9836 YazFiREJECT all -- wl1.1 !eth0 anywhere anywhere
885 214K ACCEPT all -- wl1.1 any anywhere anywhere
0 0 ACCEPT udp -- any wl0.1 192.168.1.251 anywhere udp spt:domain
0 0 ACCEPT udp -- wl0.1 any anywhere 192.168.1.251 udp dpt:domain
0 0 ACCEPT tcp -- any wl0.1 192.168.1.251 anywhere tcp spt:domain
0 0 ACCEPT tcp -- wl0.1 any anywhere 192.168.1.251 tcp dpt:domain
0 0 ACCEPT all -- wl0.1 !eth0 anywhere anywhere state RELATED,ESTABLISHED
0 0 ACCEPT all -- !eth0 wl0.1 anywhere anywhere
0 0 YazFiREJECT all -- wl0.1 !eth0 anywhere anywhere
0 0 ACCEPT all -- wl0.1 any anywhere anywhere
0 0 ACCEPT all -- any w11.1 192.168.1.20 anywhere
0 0 ACCEPT all -- w11.1 any anywhere 192.168.1.20
I would expect that this would allow Plex to get through on any port with any type of request. However, when watching a movie on Plex, it says it's sending the video remotely (I have external port forwarding set for it, too - could this be what's causing the issue?).
TIA for any advice