luciano_ford
(usa Ubuntu)
Enviado em 03/02/2014 - 22:35h
Olá, boa noite!
Estou tentando configurar um servidor proxy utilizando Ubuntu Desktop 13.04 e squid3, o mesmo funciona perfeitamente no localhost, porém na rede local recusa conexão.
Alguém tem ideia do que pode ser?
# Configuração Squid
# Configurado por: Luciano Alves
http_port 3128
visible_hostname srv_internet_adm_rede
cache_mem 1024 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /etc/squid3/cachesrv 400000 16 256
cache_access_log /var/log/squid3/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
acl sites_proibidos url_regex -i "/etc/squid3/improprios.txt"
http_access deny sites_proibidos
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.0
acl redelocal src 192.168.1.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all
____________________________________________________________________________________________
#!/bin/bash
iniciar(){
#!/bin/sh
# /etc/rc.local
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
echo 1 > /proc/sys/net/ipv4/conf/default/rp_filter
iptables -A INPUT -m state --state INVALID -j DROP
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i eth1 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --syn -j DROP
}
parar(){
iptables -F -t nat
}
case "$1" in
"start") iniciar ;;
"stop") parar ;;
"restart") parar; iniciar ;;
*) echo "Use os parâmetros start ou stop"
esac
_____________________________________________________________________________________________
Interface configurada via gnome
eth0
IP 192.168.0.4
Mascara 255.255.255.0
Gateway 192.168.0.1
Dns 192.168.0.1
eth1
Ip 192.168.1.0
Mascara 255.255.255.0
Gateway 192.168.1.1
Dns 208.67.222.222
Dns 208.67.220.220