got it. thx.
the IP is in /jffs/scripts/firewall-start script
I don'T remember why I did this but the script deletes DROP lines for 4 IP addresses if the primary WAN is active:
Code:
# Allow/Deny Primary WAN (WAN0) access for specified LAN devices
if [ "$FIBER_ACTIVE" = "1" ]; then
logger -st "($(basename $0))" $$ Allowing Primary WAN "(WAN0)" access for 192.168.254.199 , 192.168.254.37 , 192.168.254.38 , 192.168.254.20
iptables -D FORWARD -i br0 -s 192.168.254.199 -j DROP 2> /dev/null
iptables -D FORWARD -i br0 -s 192.168.254.37 -j DROP 2> /dev/null
iptables -D FORWARD -i br0 -s 192.168.254.38 -j DROP 2> /dev/null
iptables -D FORWARD -i br0 -s 192.168.254.20 -j DROP 2> /dev/null
else
logger -st "($(basename $0))" $$ Blocking Secondary WAN "(WAN1)" access for 192.168.254.199 , 192.168.254.37 , 192.168.254.38 , 192.168.254.20
iptables -D FORWARD -i br0 -s 192.168.254.199 -j DROP 2>/dev/null
iptables -D FORWARD -i br0 -s 192.168.254.37 -j DROP 2>/dev/null
iptables -D FORWARD -i br0 -s 192.168.254.38 -j DROP 2>/dev/null
iptables -D FORWARD -i br0 -s 192.168.254.20 -j DROP 2>/dev/null
iptables -I FORWARD "$(($(iptables -nvL FORWARD --line -t filter | grep "state INVALID" | cut -d' ' -f1)+1))" -i br0 -s 192.168.254.199 -j DROP
iptables -I FORWARD "$(($(iptables -nvL FORWARD --line -t filter | grep "state INVALID" | cut -d' ' -f1)+1))" -i br0 -s 192.168.254.37 -j DROP
iptables -I FORWARD "$(($(iptables -nvL FORWARD --line -t filter | grep "state INVALID" | cut -d' ' -f1)+1))" -i br0 -s 192.168.254.38 -j DROP
iptables -I FORWARD "$(($(iptables -nvL FORWARD --line -t filter | grep "state INVALID" | cut -d' ' -f1)+1))" -i br0 -s 192.168.254.20 -j DROP
fi
I really don't remember why I added this.
and I don't know what the seconf part is doing with this command:
iptables -I FORWARD "$(($(iptables -nvL FORWARD --line -t filter | grep "state INVALID" | cut -d' ' -f1)+1))" -i br0 -s 192.168.254.20 -j DROP