All pastes #37064 Raw Edit

squid start stop

public text v1 · immutable
#37064 ·published 2006-01-17 12:45 UTC
rendered paste body
#!/bin/sh
* 23 * * * iptables -t nat -D PREROUTING -p tcp --dport 80 -s 192.168.0.0/24 -j REDIRECT --to-port 3128 && service squid stop
* 7 * * * iptables -t nat -A PREROUTING -p tcp --dport 80 -s 192.168.0.0/24 -j REDIRECT --to-port 3128 && service squid start