LinuxForum.Fans
Тема

нет доступа в Интернет из eth1 (голый squid3)

Автор: Me_Shock 2 сообщений 1790 просмотров
#305064

Всем доброго времени суток.
Чистый debian6, поставлен squid3 из офф. репозиториев. Есть 2 сетевые карты:

Показать
text
root@gw5:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface auto lo iface lo inet loopback

# The corporate network = WAN allow-hotplug eth0 iface eth0 inet static address 192.168.0.254 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.210 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.0.5 192.168.0.6 dns-search rotor.ru

# The LOCALNET = LAN allow-hotplug eth1 iface eth1 inet static address 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255

Изменил и раскомментил только acl localnet src 192.168.1.0/24 и кеш:

Показать
text
root@gw5:/home# chown proxy:proxy /home/squid3cache/
root@gw5:/home# squid3 -z
2013/02/26 11:41:32| Creating Swap Directories
2013/02/26 11:41:32| /home/squid3cache exists
2013/02/26 11:41:32| Making directories in /home/squid3cache/00
2013/02/26 11:41:32| Making directories in /home/squid3cache/01
2013/02/26 11:41:32| Making directories in /home/squid3cache/02
2013/02/26 11:41:32| Making directories in /home/squid3cache/03
2013/02/26 11:41:32| Making directories in /home/squid3cache/04
2013/02/26 11:41:32| Making directories in /home/squid3cache/05
2013/02/26 11:41:32| Making directories in /home/squid3cache/06
2013/02/26 11:41:32| Making directories in /home/squid3cache/07
2013/02/26 11:41:32| Making directories in /home/squid3cache/08
2013/02/26 11:41:32| Making directories in /home/squid3cache/09
2013/02/26 11:41:32| Making directories in /home/squid3cache/0A
2013/02/26 11:41:33| Making directories in /home/squid3cache/0B
2013/02/26 11:41:33| Making directories in /home/squid3cache/0C
2013/02/26 11:41:33| Making directories in /home/squid3cache/0D
2013/02/26 11:41:33| Making directories in /home/squid3cache/0E
2013/02/26 11:41:33| Making directories in /home/squid3cache/0F
root@gw5:/home# service squid3 start
Starting Squid HTTP Proxy 3.x: squid3.
root@gw5:/home# service squid3 reload
Reloading Squid HTTP Proxy 3.x configuration files.
done.
root@gw5:/home# service squid3 restart
Restarting Squid HTTP Proxy 3.x: squid3 Waiting.....................done.

Вопрос в том, почему нет интернетов у клиентов сети? .. Пекеты ходят, файрволы ни при чем..(( Хээлп плизз!

#305078

В браузере стандартно:

Показать

Проблема решена, нужно было раскомментировать строку: http_access allow localnet. Все заработало! *OK*

Войдите или зарегистрируйтесь, чтобы ответить.