Autor Tópico: Problema de conexão  (Lida 3629 vezes)

Offline Astra2000

  • Usuário Ubuntu
  • *
  • Mensagens: 43
    • Ver perfil
Problema de conexão
« Online: 02 de Agosto de 2009, 17:11 »
Boas,

Acabei de instalar um servidor apache2+mysql+bind9+php, e esta a funcionar bem,
o meu problema é que se não acesso internamente á net no servidor, deixo de poder aceder exteriormente ás paginas lá alojadas.


não sei se é problema de conexão de net ou se é o apache que não faz a conexão...
:(


se eu tento aceder externamente mal ligo o servidor, no estilo "www.meu_host.pt" funciona tudo ok, mas se espero umas horas sem mexer no servidor, quando tento aceder externamente ao "www.meu_host.pt" não me consigo conectar.

e estando sem concexão externa, se eu tentar aceder com outro computador internamente no estilo "192.168.1.102" (ip interno do servidor), ele conecta-se, e assim ja me posso conectar externamente por mais algumas horas ...

estranho :S
 ??? ??? ???
 
alguem ja passou pelo mesmo?




abraços   Astra2000

Offline Astra2000

  • Usuário Ubuntu
  • *
  • Mensagens: 43
    • Ver perfil
Re: Problema de conexão
« Resposta #1 Online: 03 de Agosto de 2009, 17:09 »
vivas....

estive a ver o log " /var/log/apache2/access.log

e reparei que se repetem la muitos erros, deixo aqui um  quote:
Código: [Selecionar]
404 301 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1"
::1 - - [03/Aug/2009:18:44:17 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:44:18 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:44:19 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:45:41 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:45:42 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:45:43 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:45:44 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:45:45 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:45:46 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:46:13 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:46:44 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:46:50 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:46:53 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:46:54 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:46:59 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:47:03 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:47:06 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:47:08 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:47:09 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:18:47:10 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:19:18:24 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:19:18:41 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:19:18:42 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:19:18:43 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:19:18:44 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:19:20:00 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"
::1 - - [03/Aug/2009:19:20:18 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 (internal dummy connection)"



acham k é disto??

estou mesmo á nora  ???

poderá a minha rede andar a ser atacada?

Offline INEM

  • Usuário Ubuntu
  • *
  • Mensagens: 12
  • Linux 10 vs Windows 0...........Linux vence claro!
    • Ver perfil
Re: Problema de conexão
« Resposta #2 Online: 03 de Agosto de 2009, 17:18 »
Olá,

Realmente isso é estranho!

Mas podes estar mesmo a sofrer um DOS attack, uma vez que fora da rede é dificil a conexão...... tenta correr um sniffer de rede e analisar os IP´S.

abraços
INEM
Ubuntu - Linux for human beings--------------Nunca é demais aprender um novo conceito!

Offline Astra2000

  • Usuário Ubuntu
  • *
  • Mensagens: 43
    • Ver perfil
Re: Problema de conexão
« Resposta #3 Online: 05 de Agosto de 2009, 07:24 »
Olá,

Realmente isso é estranho!

Mas podes estar mesmo a sofrer um DOS attack, uma vez que fora da rede é dificil a conexão...... tenta correr um sniffer de rede e analisar os IP´S.

abraços
INEM
já encomendei uma firewall externa  :-[
ando mesmo á nora... o problema continua... :(

reparei neste log:
/var/log/messages/

Código: [Selecionar]
Aug  2 07:35:02 Bit3 kernel: imklog 3.18.6, log source = /proc/kmsg started.
Aug  2 07:35:02 Bit3 rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="1817" x-info="http://www.rsyslog.com"] restart
Aug  3 07:35:12 Bit3 kernel: imklog 3.18.6, log source = /proc/kmsg started.
Aug  3 07:35:12 Bit3 rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="1817" x-info="http://www.rsyslog.com"] restart
Aug  3 19:44:40 Bit3 kernel: [272460.369389] e100: eth0: e100_watchdog: link down
Aug  3 19:44:54 Bit3 kernel: [272474.850213] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:44:58 Bit3 kernel: [272478.981221] e100: eth0: e100_watchdog: link down
Aug  3 19:45:00 Bit3 kernel: [272481.186027] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:45:08 Bit3 kernel: [272489.512926] e100: eth0: e100_watchdog: link down
Aug  3 19:45:10 Bit3 kernel: [272491.673126] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:46:48 Bit3 kernel: [272594.087381] e100: eth0: e100_watchdog: link down
Aug  3 19:48:02 Bit3 kernel: [272670.390138] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:48:14 Bit3 kernel: [272682.756204] e100: eth0: e100_watchdog: link down
Aug  3 19:48:16 Bit3 kernel: [272684.846126] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:51:06 Bit3 kernel: [272863.807449] e100: eth0: e100_watchdog: link down
Aug  3 21:56:28 Bit3 kernel: [280759.881800] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  4 07:35:01 Bit3 kernel: imklog 3.18.6, log source = /proc/kmsg started.
Aug  4 07:35:01 Bit3 rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="1817" x-info="http://www.rsyslog.com"] restart


Offline INEM

  • Usuário Ubuntu
  • *
  • Mensagens: 12
  • Linux 10 vs Windows 0...........Linux vence claro!
    • Ver perfil
Re: Problema de conexão
« Resposta #4 Online: 05 de Agosto de 2009, 12:22 »
Olá,

Realmente isso é estranho!

Mas podes estar mesmo a sofrer um DOS attack, uma vez que fora da rede é dificil a conexão...... tenta correr um sniffer de rede e analisar os IP´S.

abraços
INEM
já encomendei uma firewall externa  :-[
ando mesmo á nora... o problema continua... :(

reparei neste log:
/var/log/messages/

Código: [Selecionar]
Aug  2 07:35:02 Bit3 kernel: imklog 3.18.6, log source = /proc/kmsg started.
Aug  2 07:35:02 Bit3 rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="1817" x-info="http://www.rsyslog.com"] restart
Aug  3 07:35:12 Bit3 kernel: imklog 3.18.6, log source = /proc/kmsg started.
Aug  3 07:35:12 Bit3 rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="1817" x-info="http://www.rsyslog.com"] restart
Aug  3 19:44:40 Bit3 kernel: [272460.369389] e100: eth0: e100_watchdog: link down
Aug  3 19:44:54 Bit3 kernel: [272474.850213] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:44:58 Bit3 kernel: [272478.981221] e100: eth0: e100_watchdog: link down
Aug  3 19:45:00 Bit3 kernel: [272481.186027] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:45:08 Bit3 kernel: [272489.512926] e100: eth0: e100_watchdog: link down
Aug  3 19:45:10 Bit3 kernel: [272491.673126] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:46:48 Bit3 kernel: [272594.087381] e100: eth0: e100_watchdog: link down
Aug  3 19:48:02 Bit3 kernel: [272670.390138] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:48:14 Bit3 kernel: [272682.756204] e100: eth0: e100_watchdog: link down
Aug  3 19:48:16 Bit3 kernel: [272684.846126] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  3 19:51:06 Bit3 kernel: [272863.807449] e100: eth0: e100_watchdog: link down
Aug  3 21:56:28 Bit3 kernel: [280759.881800] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug  4 07:35:01 Bit3 kernel: imklog 3.18.6, log source = /proc/kmsg started.
Aug  4 07:35:01 Bit3 rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="1817" x-info="http://www.rsyslog.com"] restart



Boas,

Por esse logo ai, acho que já não tem nada a ver com ataques na rede, mas sim más configurações na tua intranet.

Parece-me que tens ai um switch que esta a bloquear a rede ou algo do género....

Tenta passar esse switch de full-duplex 100Mbps para half-duplex a 10Mbps e configura também nas estações igual para esses erros desaparecerem, OK

abraços
INEM
Ubuntu - Linux for human beings--------------Nunca é demais aprender um novo conceito!

Offline Astra2000

  • Usuário Ubuntu
  • *
  • Mensagens: 43
    • Ver perfil
Re: Problema de conexão
« Resposta #5 Online: 05 de Agosto de 2009, 12:50 »
Boas amigo :)
Brigado pela resposta, sou um bocado leigo no que diz respeito a redes,
sabes me dizer como passo de full duplex para half-duplex?

a minha rede resume-se a:

modem--->router lynksys---> server


o estranho é que sempre tive isto a funcionar  sem problemas, e á coisa de duas semanas ficava sem internet mal o server estivesse conectado ao router :S

então decidi instalar tudo de novo, e agora tenho esse problema...

será que o server esta estragado? ou é apenas alguma configuração ??:S

Offline INEM

  • Usuário Ubuntu
  • *
  • Mensagens: 12
  • Linux 10 vs Windows 0...........Linux vence claro!
    • Ver perfil
Re: Problema de conexão
« Resposta #6 Online: 05 de Agosto de 2009, 14:40 »
Boas amigo :)
Brigado pela resposta, sou um bocado leigo no que diz respeito a redes,
sabes me dizer como passo de full duplex para half-duplex?

a minha rede resume-se a:

modem--->router lynksys---> server


o estranho é que sempre tive isto a funcionar  sem problemas, e á coisa de duas semanas ficava sem internet mal o server estivesse conectado ao router :S

então decidi instalar tudo de novo, e agora tenho esse problema...

será que o server esta estragado? ou é apenas alguma configuração ??:S

Oi,

Estragado não está, deve estar é provavelmente com alguma configurações incorrecta.

Tenta na configuração da placa de rede do server (NIC) ir a protocol TCP/IP e depois avançadas e procura por half-duplex e full-duplex, não estou agora em frente ao Server2003, mas se depois não conseguires eu tento procurar, ok

abraços
INEM
Ubuntu - Linux for human beings--------------Nunca é demais aprender um novo conceito!