quemsoueu
(usa Fedora)
Enviado em 09/06/2011 - 15:07h
proxy:~# tail -f /var/log/squid/cache.log
2011/06/09 14:24:49| Using 8192 Store buckets
2011/06/09 14:24:49| Max Mem size: 524288 KB
2011/06/09 14:24:49| Max Swap size: 1024000 KB
2011/06/09 14:24:49| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2011/06/09 14:24:49| /var/spool/squid/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.6.STABLE5): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.004 user + 0.004 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
proxy:~# tail -f /var/log/squid/cache.log
2011/06/09 14:24:49| Using 8192 Store buckets
2011/06/09 14:24:49| Max Mem size: 524288 KB
2011/06/09 14:24:49| Max Swap size: 1024000 KB
2011/06/09 14:24:49| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2011/06/09 14:24:49| /var/spool/squid/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.6.STABLE5): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.004 user + 0.004 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
proxy:~# tail -f /var/log/squid/cache.log
2011/06/09 14:24:49| Using 8192 Store buckets
2011/06/09 14:24:49| Max Mem size: 524288 KB
2011/06/09 14:24:49| Max Swap size: 1024000 KB
2011/06/09 14:24:49| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2011/06/09 14:24:49| /var/spool/squid/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.6.STABLE5): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.004 user + 0.004 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aproposito o script de firewall
proxy:~# less /etc/init.d/firewall
echo "1" > /proc/sys/net/ipv4/ip_forward
#### Limpa as regras
$IPT -F
$IPT -X
$IPT -Z
$IPT -F -t nat
$IPT -X -t nat
$IPT -Z -t nat
echo "Desativando Firewall"
}
Firewall_Restart () {
Firewall_Stop
Firewall_Start
}
case "$1" in
start)
Firewall_Start
;;
stop)
Firewall_Stop
;;
restart)
Firewall_Restart
;;
probe)
exit 0
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit 1
modprobe ipt_TOS
modprobe ipt_limit
modprobe ipt_mac
modprobe ipt_mark
modprobe ipt_multiport
modprobe ipt_owner
modprobe ipt_state
modprobe ipt_tcpmss
modprobe ipt_tos
modprobe iptable_filter
modprobe iptable_mangle
modprobe iptable_nat
echo "Ativando Firewall"
}
Firewall_Stop () {
#### Ativa o roteamento
echo "0" > /proc/sys/net/ipv4/ip_forward
#### Limpa as regras
$IPT -F
$IPT -X
$IPT -Z
$IPT -F -t nat
$IPT -X -t nat
$IPT -Z -t nat
echo "Desativando Firewall"
}
Firewall_Restart () {
Firewall_Stop
Firewall_Start
}
case "$1" in
start)
Firewall_Start
;;