#!/bin/bashcd /etc/iptables/usr/bin/curl -O http://www.datacenter.by/ip/local.txt/usr/bin/curl -O http://www.datacenter.by/ip/clients.txt/usr/bin/curl -O http://www.datacenter.by/ip/peering.txt/usr/bin/curl -O http://www.datacenter.by/ip/rbnotinpeering.txt/sbin/iptables -F allow_web_ipfor IP1 in `/bin/cat /etc/iptables/clients.txt`do/sbin/iptables -A allow_web_ip -s $IP1 -j ACCEPTdonefor IP2 in `/bin/cat /etc/iptables/local.txt`do/sbin/iptables -A allow_web_ip -s $IP2 -j ACCEPTdonefor IP3 in `/bin/cat /etc/iptables/peering.txt`do/sbin/iptables -A allow_web_ip -s $IP3 -j ACCEPTdonefor IP4 in `/bin/cat /etc/iptables/rbnotinpeering.txt`do/sbin/iptables -A allow_web_ip -s $IP4 -j ACCEPTdone
0 0 * * * root [ -x /etc/iptables/iptables_cron ] && /etc/iptables/iptables_cron
.../sbin/iptables -N allow_web_ip/sbin/iptables -F allow_web_ip/sbin/iptables -A INPUT -i $wan -p tcp -m multiport --dports 80,443 -j allow_web_ipfor IP1 in `/bin/cat /etc/iptables/clients.txt`do/sbin/iptables -A allow_web_ip -s $IP1 -j ACCEPTdonefor IP2 in `/bin/cat /etc/iptables/local.txt`do/sbin/iptables -A allow_web_ip -s $IP2 -j ACCEPTdonefor IP3 in `/bin/cat /etc/iptables/peering.txt`do/sbin/iptables -A allow_web_ip -s $IP3 -j ACCEPTdonefor IP4 in `/bin/cat /etc/iptables/rbnotinpeering.txt`do/sbin/iptables -A allow_web_ip -s $IP4 -j ACCEPTdone...