$(nvram get lan_ipaddr)This script still seems to block out my UI. How do I test my internal IP against the list?
cl() { # Check IP against ipset lists
if [ -z "$1" ]; then
echo "Specify IP to check through ipset lists. Exiting."
else
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
for TestList in $( (iptables -L -t raw && iptables -L) | grep " set" | tr -s ' ' | cut -d' ' -f7 | paste -s); do
ipset -q --test $TestList $1 && echo -e "$1 found in ${GREEN}${TestList}${NC}" || echo -e "$1 not found in ${RED}${TestList}${NC}"
done
fi
}
cl() { # Check IP against ipset lists
if [ -z "$1" ]; then
echo "Specify IP to check through ipset lists. Exiting."
else
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
for TestList in $( (iptables -L -t raw && iptables -L) | grep "match-set" | tr -s ' ' | cut -d' ' -f7 | paste -s); do
ipset -q test $TestList $1 && echo -e "$1 found in ${GREEN}${TestList}${NC}" || echo -e "$1 not found in ${RED}${TestList}${NC}"
done
fi
}
It should include all your ipsets that are referenced in your firewall. Which lists from the iblocklist-loader were you expecting? Run the loader script and check syslog to see if the lists were loadedit doesnt seem to include the sets from blocklist loadeR?
That is odd. See if your external dns server IP is in any of the loaded lists with this shell function. You can always whitelist your dns: Just assign your dns server ip to your "my_dns" domain in /jffs/configs/host.add and then whitelist that domain (my_dns)But then i lose dns
Will give it a go next time it happens. This reboot seems to be more stable. I did check against the lists and no matches, but I'll see how I get onThat is odd. See if your external dns server IP is in any of the loaded lists with this shell function. You can always whitelist your dns: Just assign your dns server ip to your "my_dns" domain in /jffs/configs/host.add and then whitelist that domain (my_dns)
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!