igor:/home/igor# access_log /var/log/squid/access.log squid
bash: access_log: command not found
igor:/home/igor# access_log /var/log/squid/access.log squid
bash: access_log: command not found
igor:/home/igor# gedit /etc/squid/squid.conf
(gedit:6570): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
igor:/home/igor# squid -z
2010/08/13 13:57:23| Creating Swap Directories
FATAL: Failed to make swap directory /var/cache/squid/00/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
igor:/home/igor# chmod 777 /var/cache/squid/00/00/
igor:/home/igor# chmod 777 /var/cache/squid/
igor:/home/igor# squid -z
2010/08/13 13:59:09| Creating Swap Directories
FATAL: Failed to make swap directory /var/cache/squid/00/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
igor:/home/igor# cd /etc/squid/
igor:/etc/squid# chmod 777 /var/cache/squid/
igor:/etc/squid# chown -Rf squid.squid /usr/local/squid
igor:/etc/squid# sudo chown squid.squid /var/spool/squid -Rf
igor:/etc/squid# squiz -z
bash: squiz: command not found
igor:/etc/squid# squid -z
2010/08/13 14:07:21| Creating Swap Directories
FATAL: Failed to make swap directory /var/cache/squid/00/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
igor:/etc/squid# chmod 777 /var/cache/squid/
igor:/etc/squid# chmod 777 /var/cache/squid/
igor:/etc/squid# chmod 777 /var/cache/squid/
igor:/etc/squid# squid -z
2010/08/13 14:08:26| Creating Swap Directories
FATAL: Failed to make swap directory /var/cache/squid/00/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
igor:/etc/squid# chmod 777 /var/cache/squid/
igor:/etc/squid# chmod -R +rw /var/cache/squid/
igor:/etc/squid# squid -z
2010/08/13 14:11:20| Creating Swap Directories
FATAL: Failed to make swap directory /var/cache/squid/00/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
igor:/etc/squid# squid -d 1 -D
igor:/etc/squid# WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
2010/08/13 14:11:41| Starting Squid Cache version 2.7.STABLE3 for i386-debian-linux-gnu...
2010/08/13 14:11:41| Process ID 6653
2010/08/13 14:11:41| With 1024 file descriptors available
2010/08/13 14:11:41| Using epoll for the IO loop
2010/08/13 14:11:41| DNS Socket created at 0.0.0.0, port 59923, FD 5
2010/08/13 14:11:41| Adding nameserver 192.168.12.1 from /etc/resolv.conf
2010/08/13 14:11:41| User-Agent logging is disabled.
2010/08/13 14:11:41| Referer logging is disabled.
2010/08/13 14:11:41| logfileOpen: opening log /var/log/squid/access.log
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'igor', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.000 user + 0.008 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
2010/08/13 14:11:44| Starting Squid Cache version 2.7.STABLE3 for i386-debian-linux-gnu...
2010/08/13 14:11:44| Process ID 6656
2010/08/13 14:11:44| With 1024 file descriptors available
2010/08/13 14:11:44| Using epoll for the IO loop
2010/08/13 14:11:44| DNS Socket created at 0.0.0.0, port 34502, FD 5
2010/08/13 14:11:44| Adding nameserver 192.168.12.1 from /etc/resolv.conf
2010/08/13 14:11:44| User-Agent logging is disabled.
2010/08/13 14:11:44| Referer logging is disabled.
2010/08/13 14:11:44| logfileOpen: opening log /var/log/squid/access.log
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'igor', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
2010/08/13 14:11:47| Starting Squid Cache version 2.7.STABLE3 for i386-debian-linux-gnu...
2010/08/13 14:11:47| Process ID 6659
2010/08/13 14:11:47| With 1024 file descriptors available
2010/08/13 14:11:47| Using epoll for the IO loop
2010/08/13 14:11:47| DNS Socket created at 0.0.0.0, port 38388, FD 5
2010/08/13 14:11:47| Adding nameserver 192.168.12.1 from /etc/resolv.conf
2010/08/13 14:11:47| User-Agent logging is disabled.
2010/08/13 14:11:47| Referer logging is disabled.
2010/08/13 14:11:47| logfileOpen: opening log /var/log/squid/access.log
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'igor', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
2010/08/13 14:11:50| Starting Squid Cache version 2.7.STABLE3 for i386-debian-linux-gnu...
2010/08/13 14:11:50| Process ID 6662
2010/08/13 14:11:50| With 1024 file descriptors available
2010/08/13 14:11:50| Using epoll for the IO loop
2010/08/13 14:11:50| DNS Socket created at 0.0.0.0, port 38883, FD 5
2010/08/13 14:11:50| Adding nameserver 192.168.12.1 from /etc/resolv.conf
2010/08/13 14:11:50| User-Agent logging is disabled.
2010/08/13 14:11:50| Referer logging is disabled.
2010/08/13 14:11:50| logfileOpen: opening log /var/log/squid/access.log
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'igor', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
2010/08/13 14:11:53| Starting Squid Cache version 2.7.STABLE3 for i386-debian-linux-gnu...
2010/08/13 14:11:53| Process ID 6665
2010/08/13 14:11:53| With 1024 file descriptors available
2010/08/13 14:11:53| Using epoll for the IO loop
2010/08/13 14:11:53| DNS Socket created at 0.0.0.0, port 41902, FD 5
2010/08/13 14:11:53| Adding nameserver 192.168.12.1 from /etc/resolv.conf
2010/08/13 14:11:53| User-Agent logging is disabled.
2010/08/13 14:11:53| Referer logging is disabled.
2010/08/13 14:11:53| logfileOpen: opening log /var/log/squid/access.log
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'igor', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.7.STABLE3): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
--------------------------------------------------------------------
--------------------------------------------------------------------
igor:/etc/squid# /etc/squid3/loader.php
bash: /etc/squid3/loader.php: is a directory
igor:/etc/squid# /etc/squid/loader.php
bash: /etc/squid/loader.php: No such file or directory
igor:/etc/squid# /etc/squid/loader.php/loader.php
bash: /etc/squid/loader.php/loader.php: No such file or directory
igor:/etc/squid# ps -ef |grep squid
igor 4405 1 0 03:02 ? 00:00:24 evince file:///media/IGOR/squid%20%20tik%204.6/squid%20proxy%20ubuntu%20server.pdf
root 6727 6565 0 14:37 pts/3 00:00:00 grep squid
igor:/etc/squid# squid -k parse
igor:/etc/squid# ls -l /etc/squid3/loader.php
total 0
igor:/etc/squid#
Kako dodati prava za foldere! sve sam probao i sa ch modom chmod 777 i ne radi!
squid.conf
-------------------------------
http_port 192.168.12.50:3128 transparent
visible_hostname
www.seusite.com.br
cache_mgr
[email protected]
error_directory /usr/share/squid/errors/Portuguese
cache_mem 8 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 50 MB
minimum_object_size 0 KB
cache_swap_low 80
cache_swap_high 85
cache_dir ufs /var/cache/squid 256 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_swap_log none
pid_filename /var/run/squid.pid
cache_effective_user igor
cache_effective_group squid
coredump_dir /var/cache/squid
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
# SEM CACHE
acl NOCACHE url_regex localhost 192.0.0.0/8
no_cache deny NOCACHE
# MARCAR PACOTES MIKROTIK IDENDIFICA
zph_mode tos
zph_local 0×30
zph_parent 0
zph_option 136
#http_access allow all
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#AQUI VAMOS COLOCAR A CLASSE DOS CLIENTES NO CASO VC QUEIRA PEGAR OS IPS DOS CLIENTES
# OU ENTAO COLOCAMOS O IP DO MK
# CASO PASSE OS IP DOS CLIENTES:
acl mikrotik src 192.168.10.0/24/255.255.255.0 # USE ESSA!
# CASO PASSE APENAS O IP DO MKIROTIK
acl mikrotik src 192.168.12.0/24/255.255.255.0 # OU ESSA!
http_access allow mikrotik
http_access allow localhost
# BLOQUEIA O RESTO
http_access deny all
-------------------------------------------
hvala!