TechLifeWeb
New Around Here
I have YazFi working. Now I'm trying to allow access to certain IPs on my LAN. My script is:
The problem is, when I try to execute this by applying YazFi settings during SSH I get this error:
My script has execute permissions. Has anyone seen this and have an idea why ACCEPT wouldn't work?
Code:
#!/bin/sh
iptables -I YazFiFORWARD -i wl0.2 -o br0 -d 192.168.1.201,192.168.1.207,192.168.1.211 -j ACCEPT
iptables -I YazFiFORWARD -i wl1.2 -o br0 -d 192.168.1.201,192.168.1.207,192.168.1.211 -j ACCEPT
The problem is, when I try to execute this by applying YazFi settings during SSH I get this error:
Code:
Executing user script: /jffs/addons/YazFi.d/userscripts.d/myscript.sh
'ptables v1.3.8: Invalid target name `ACCEPT
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.3.8: host/network `192.168.1.201,192.168.1.207,192.168.1.211' not found
Try `iptables -h' or 'iptables --help' for more information.
Forcing YazFi Guest WiFi clients to reauthenticate
YazFi v4.4.2 completed successfully
My script has execute permissions. Has anyone seen this and have an idea why ACCEPT wouldn't work?