Time Based Nat
Hello All
i own a colony ISP. i am using redhat9 and using it for nat.i have a 512 kbps wireless link and sharing it with my colony members.i am using transparent squid too.the following is my Nat configuration
/sbin/iptables -t nat -F
/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
/sbin/iptables -t nat -A POSTROUTING -s 139.61.0.0/16 -o eth0 -j MASQUERADE
My Transparent squid configuration
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
#http_access allow our_networks
acl our_networks src 139.61.0.0/16
http_access allow our_networks
# And finally deny all other access to this proxy
http_access allow localhost
http_access deny all
now what i want is control some ip for night surfing some for day surfing some for unlimited surfing. i know this can be done by writing a script and execute it by using cron. but what is that script.
Thanking You
|