Fala aee galera!!!
Bom, estou com um problemão e não consegui resolver até hj, gostaria de saber se tem algum filho de Deus pra me ajudar nisso...
... o problema é o seguinte:
configurei um servidor proxy e resolvi colocar nesse mesmo servidor um servidor dhcp. Bom, o dhcp funciona que é uma maravilha, mas o proxy não funciona.... explico... quando eu ligo o server com os cabos nos devidos lugares, o servidor atribui os ip's aos clientes, mas não navega na internet e quando eu ligo o servidor com o cabo da rede interna desligado o "belezinha" navega na internet normalmente, aí coloco o cabo da rede interna no lugar e tudo vai as mil maravilhas, mas se reinicio o servidor, volta tudo novamente.
detalhe, mesmo quando o servidor não está navegando, tipo, se tento pingar
www.google.com ele não vai, mas se tendo pingar os ips tanto da rede interna quanto da externa ele pinga normalmente.
Alguém tem alguma idéia do que pode estar acontecendo?
Ah! o servidor é um ubuntu 9.04, caso alguém pergunte, eu já configurei a placa que fica escutando a rede interna no arquivo /etc/default/dhcp3-server...
desde já agradeço
Abaixo seguem as configurações:
Arquivo interfaces:# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 187.9.xxx.xxx
netmask 255.255.255.248
network 187.9.xxx.xxx
broadcast 187.9.xxx.xxx
gateway 187.9.xxx.xxx
dns-nameservers 200.153.0.68 200.153.0.196
# The secondary network interface
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Squid:http_port 3128
visible_hostname ProxyServer
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 64 MB
maximum_object_size_in_memory 1 MB
maximum_object_size 200 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 2000 16 256
access_log /var/log/squid/access.log squid
cache_log /var/log//squid/cache.log
cache_store_log none #/var/log/squid/store.log
mime_table /usr/share/squid/mime.conf
pid_filename /var/run/squid.pid
unlinkd_program /usr/lib/squid/unlinkd
icon_directory /usr/share/squid/icons
error_directory /usr/share/squid/errors/pt-br
coredump_dir /var/spool/squid/
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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
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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl sec src 192.168.0.9
delay_pools 1
delay_class 1 2
delay_parameters 1 117072/117072 14000/14000
delay_access 1 allow sec
acl rede src 192.168.0.0/24
http_access allow localhost
http_access allow rede
http_access deny all
dns_testnames google.com
DHCP:# /etc/dchp3/dhcpd.conf
ddns-update-style-none;
default-lease-time 3600;
max-lease-time 7200;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.199;
option routers 192.168.0.1;
option domain-name-servers 200.153.0.68,200.153.0.196;
option broadcast-address 192.168.0.255;
}
arquivo /etc/default/dhcp3-server:# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"