#!/bin/bash
echo ";;;;;;;;;;;;;;;;;;;;;;;"
echo "; RaptorCache ;"
echo ";;;;;;;;;;;;;;;;;;;;;;;"
#Borrar cadenas anteriores
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
#Condiciones por defecto
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
#Aceptamos el localhost
iptables -A INPUT -i lo -j ACCEPT
#Aceptamos la red local
iptables -A INPUT -s 10.5.50.0/24 -j ACCEPT
iptables -A INPUT -s 10.5.51.0/24 -j ACCEPT
iptables -A INPUT -s 10.5.52.0/24 -j ACCEPT
iptables -A INPUT -s 10.0.0.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.1.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.2.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.3.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.4.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.5.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.6.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.7.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.8.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.9.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.10.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.11.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.12.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.13.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.14.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.15.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.16.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.17.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.18.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.19.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.20.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.21.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.22.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.23.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.24.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.25.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.26.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.27.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.28.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.29.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.30.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.31.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.32.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.33.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.34.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.35.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.36.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.37.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.38.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.39.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.40.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.41.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.42.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.43.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.44.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.45.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.46.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.47.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.48.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.49.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.50.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.0.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.1.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.2.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.3.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.4.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.5.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.6.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.7.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.8.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.9.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.10.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.11.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.12.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.13.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.14.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.15.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.16.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.17.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.18.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.19.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.20.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.21.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.22.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.23.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.24.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.25.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.26.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.27.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.28.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.29.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.30.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.31.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.32.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.33.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.34.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.35.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.36.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.37.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.38.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.39.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.40.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.41.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.42.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.43.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.44.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.45.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.46.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.47.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.48.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.49.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.50.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.0.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.1.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.2.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.3.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.4.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.5.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.6.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.7.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.8.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.9.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.10.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.11.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.12.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.13.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.14.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.15.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.16.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.17.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.18.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.19.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.20.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.21.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.22.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.23.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.24.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.25.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.26.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.27.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.28.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.29.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.30.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.31.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.32.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.33.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.34.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.35.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.36.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.37.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.38.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.39.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.40.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.41.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.42.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.43.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.44.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.45.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.46.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.47.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.48.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.49.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.50.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.51.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.52.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.53.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.54.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.55.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.56.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.57.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.58.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.59.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.60.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.61.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.62.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.63.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.64.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.65.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.66.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.67.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.68.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.69.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.70.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.71.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.72.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.73.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.74.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.75.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.76.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.77.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.78.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.79.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.80.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.81.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.82.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.83.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.84.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.85.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.86.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.87.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.88.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.89.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.90.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.91.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.92.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.93.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.94.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.95.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.96.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.97.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.98.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.99.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.100.0/30 -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
echo 1 > /proc/sys/net/ipv4/ip_forward
modifique el arquivo de esta manera, me redireciona los clientes pero la regla del squid no tiene trafico ni la del queue.. tampoco hace hit a contenido estatico, alguna idea???
gracias de antemano.
echo ";;;;;;;;;;;;;;;;;;;;;;;"
echo "; RaptorCache ;"
echo ";;;;;;;;;;;;;;;;;;;;;;;"
#Borrar cadenas anteriores
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
#Condiciones por defecto
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
#Aceptamos el localhost
iptables -A INPUT -i lo -j ACCEPT
#Aceptamos la red local
iptables -A INPUT -s 10.5.50.0/24 -j ACCEPT
iptables -A INPUT -s 10.5.51.0/24 -j ACCEPT
iptables -A INPUT -s 10.5.52.0/24 -j ACCEPT
iptables -A INPUT -s 10.0.0.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.1.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.2.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.3.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.4.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.5.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.6.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.7.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.8.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.9.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.10.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.11.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.12.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.13.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.14.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.15.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.16.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.17.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.18.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.19.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.20.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.21.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.22.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.23.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.24.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.25.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.26.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.27.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.28.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.29.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.30.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.31.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.32.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.33.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.34.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.35.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.36.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.37.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.38.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.39.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.40.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.41.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.42.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.43.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.44.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.45.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.46.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.47.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.48.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.49.0/30 -j ACCEPT
iptables -A INPUT -s 10.0.50.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.0.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.1.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.2.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.3.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.4.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.5.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.6.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.7.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.8.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.9.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.10.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.11.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.12.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.13.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.14.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.15.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.16.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.17.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.18.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.19.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.20.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.21.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.22.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.23.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.24.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.25.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.26.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.27.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.28.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.29.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.30.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.31.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.32.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.33.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.34.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.35.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.36.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.37.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.38.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.39.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.40.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.41.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.42.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.43.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.44.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.45.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.46.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.47.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.48.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.49.0/30 -j ACCEPT
iptables -A INPUT -s 20.0.50.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.0.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.1.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.2.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.3.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.4.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.5.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.6.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.7.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.8.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.9.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.10.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.11.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.12.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.13.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.14.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.15.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.16.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.17.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.18.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.19.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.20.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.21.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.22.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.23.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.24.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.25.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.26.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.27.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.28.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.29.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.30.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.31.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.32.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.33.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.34.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.35.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.36.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.37.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.38.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.39.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.40.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.41.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.42.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.43.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.44.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.45.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.46.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.47.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.48.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.49.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.50.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.51.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.52.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.53.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.54.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.55.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.56.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.57.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.58.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.59.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.60.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.61.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.62.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.63.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.64.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.65.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.66.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.67.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.68.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.69.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.70.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.71.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.72.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.73.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.74.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.75.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.76.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.77.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.78.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.79.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.80.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.81.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.82.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.83.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.84.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.85.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.86.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.87.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.88.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.89.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.90.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.91.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.92.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.93.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.94.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.95.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.96.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.97.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.98.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.99.0/30 -j ACCEPT
iptables -A INPUT -s 30.0.100.0/30 -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
echo 1 > /proc/sys/net/ipv4/ip_forward
modifique el arquivo de esta manera, me redireciona los clientes pero la regla del squid no tiene trafico ni la del queue.. tampoco hace hit a contenido estatico, alguna idea???
gracias de antemano.