Instalação do Squido no Fedora 15 [RESOLVIDO]

1. Instalação do Squido no Fedora 15 [RESOLVIDO]

Deuzenildo
deuz

(usa Debian)

Enviado em 07/01/2012 - 19:20h

Olá amigos, depois de um tempo voltei aqui para buscar ajuda. Ocorre o seguinte:

estou instalando o Squid transparente no Fedora 15, depois irei inserir umas regras no Iptables e instalar o sarg, porem essa primeira parte, nao está dando certo, depois de instalar o Fedora, eu executo os seguintes comandos para instalação do Squid:

yum -y install squid

depois disso executo os seguintes passos:

Vá no Diretorio /etc/squid/squid.conf e edite o arquivo conforme abaixo.
[root@lan ~]# vi /etc/squid/squid.conf

acl CONNECT method CONNECT
# line 29: add ( define new ACL )
acl lan src 10.0.0.0/24
http_access allow localhost

# line 57: add ( allow defined ACL above )
http_access allow lan
# line 62: change

http_port 8080
# add at the last line

request_header_access Referer deny all
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all
# add (specify hostname)
visible_hostname lan.server.world
# add (hide IP address)
forwarded_for off


** eu retirei isso no site do Fedora**

porem, nao inicia, da a mensagem:

root@Fedoraserver squid]# /etc/rc.d/init.d/squid start
Starting squid (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FALHOU]


Nao sei o que pode ser, o servidor está com as duas placas de rede funcionando, acessa a internet normal e ainda nao coloquei nenhuma regra no iptables, tendo por elimininatoria que o Squid deve pelo menos iniciar, depois se alguma estação da rede for acessar, sim, preciso das regras de redir etc...

Se alguem puder me ajudar nisso, ou informar algum site etc.. fico muito agradecido.

para analisarem, segue meu conf:

#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 CONNECT method CONNECT
# line 29: add ( define new ACL )
acl lan src 192.168.1.0/32
http_access allow localhost
#
# Recommended minimum Access Permission configuration:
#
"squid.conf" 85L, 2798C
#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost
http_access allow lan
# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128
# Uncomment and adjust the following to add a disk cache directory.
#cache_dir ufs /var/spool/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320

request_header_access Referer deny all
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all
# add (specify hostname)
visible_hostname 192.168.1.10
# add (hide IP address)
forwarded_for off



sem mais, agradeço as contribuiçoes...



  


2. Postar solução

Natanael Henrique
natanaelhenrique

(usa Arch Linux)

Enviado em 27/01/2012 - 12:27h

Se puder colocar a solução aqui pra ajudar a galera que enfrenta o mesmo problema, a comunidade agradece.

Valeu. Abraço.


3. Re: Instalação do Squido no Fedora 15 [RESOLVIDO]

Deuzenildo
deuz

(usa Debian)

Enviado em 27/01/2012 - 14:34h

Olá, eu resolvi o problema instalando outra distro, usei o CentOS 5.7.

valeus..






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts