Captive portal+squid+squidGuardian
-
Boa noite amigos;
Sou novo aqui e com PFSense também.
Preciso relatar o que esta acontecendo, ralei um pouco aqui para fazer o Freeradius2 integrar com o mysql e depois mais um pouco para o Freeradius falar com o Captive portal.
Depois eu fui instalar o squid+ squidGuardian, e deixou lento a ponto de cair. Não consigo identificar os erros, do syslog e estou apanhando um pouco.
estava funcionando direitinho até usar o squidGuardian e sem falar que quando eu reinicio o squidGuardian ou tento dar um play nele ele trava ele mesmo junto com o squid
Eu fiz o bkp do meu server, podem baixar aqui: http://www.faculdadealianca.edu.br/config.rar
O que eu fiz é agora encaminhar o meu syslog:
May 27 21:11:39 Squid_Alarm[16370]: Squid has exited. Reconfiguring filter.
May 27 21:11:39 Squid_Alarm[16742]: Attempting restart…
May 27 21:11:39 squid[20009]: Squid Parent: will start 1 kids
May 27 21:11:39 squid[20009]: Squid Parent: (squid-1) process 20631 started
May 27 21:11:40 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:11:40 squid[20009]: Squid Parent: (squid-1) process 20631 exited with status 1
May 27 21:11:42 Squid_Alarm[47106]: Reconfiguring filter…
May 27 21:11:42 check_reload_status: Reloading filter
May 27 21:11:42 Squid_Alarm[49469]: Squid has resumed. Reconfiguring filter.
May 27 21:11:43 check_reload_status: Reloading filter
May 27 21:11:43 squid[20009]: Squid Parent: (squid-1) process 50183 started
May 27 21:11:44 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:11:44 squid[20009]: Squid Parent: (squid-1) process 50183 exited with status 1
May 27 21:11:47 squid[20009]: Squid Parent: (squid-1) process 74856 started
May 27 21:11:48 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:11:48 squid[20009]: Squid Parent: (squid-1) process 74856 exited with status 1
May 27 21:11:51 squid[20009]: Squid Parent: (squid-1) process 94080 started
May 27 21:11:52 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:11:52 squid[20009]: Squid Parent: (squid-1) process 94080 exited with status 1
May 27 21:11:55 squid[20009]: Squid Parent: (squid-1) process 21164 started
May 27 21:11:55 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:11:55 squid[20009]: Squid Parent: (squid-1) process 21164 exited with status 1
May 27 21:11:55 squid[20009]: Squid Parent: (squid-1) process 21164 will not be restarted due to repeated, frequent failures
May 27 21:11:55 squid[20009]: Exiting due to repeated, frequent failures
May 27 21:12:13 radiusd[40113]: Login OK: [visitante] (from client teste port 2004 cli 00:01:02:0a:88:4a)
May 27 21:12:38 Squid_Alarm[93340]: Squid has exited. Reconfiguring filter.
May 27 21:12:38 Squid_Alarm[93797]: Attempting restart…
May 27 21:12:38 squid[96750]: Squid Parent: will start 1 kids
May 27 21:12:38 squid[96750]: Squid Parent: (squid-1) process 97422 started
May 27 21:12:39 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:12:39 squid[96750]: Squid Parent: (squid-1) process 97422 exited with status 1
May 27 21:12:41 Squid_Alarm[17495]: Reconfiguring filter…
May 27 21:12:41 check_reload_status: Reloading filter
May 27 21:12:41 Squid_Alarm[19238]: Squid has resumed. Reconfiguring filter.
May 27 21:12:42 check_reload_status: Reloading filter
May 27 21:12:42 squid[96750]: Squid Parent: (squid-1) process 19884 started
May 27 21:12:43 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:12:43 squid[96750]: Squid Parent: (squid-1) process 19884 exited with status 1
May 27 21:12:46 squid[96750]: Squid Parent: (squid-1) process 45219 started
May 27 21:12:47 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:12:47 squid[96750]: Squid Parent: (squid-1) process 45219 exited with status 1
May 27 21:12:50 squid[96750]: Squid Parent: (squid-1) process 71548 started
May 27 21:12:51 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:12:51 squid[96750]: Squid Parent: (squid-1) process 71548 exited with status 1
May 27 21:12:54 squid[96750]: Squid Parent: (squid-1) process 90304 started
May 27 21:12:54 (squid-1): The redirector helpers are crashing too rapidly, need help!
May 27 21:12:54 squid[96750]: Squid Parent: (squid-1) process 90304 exited with status 1
May 27 21:12:54 squid[96750]: Squid Parent: (squid-1) process 90304 will not be restarted due to repeated, frequent failures
May 27 21:12:54 squid[96750]: Exiting due to repeated, frequent failures
May 27 21:13:20 radiusd[40113]: Login OK: [visitante] (from client teste port 2004 cli 00:01:02:0a:88:4a) -
Veja o conteudo do arquivo /var/squid/logs/cache.log para ver os erros.
-
apareceu um monte de informações, mas eu vi em suas primeiras linhas esta informação:
Shared object "libldap-2.4.so.2" not found, required by "squidGuard"
não foi encontrado e é requerido, como posso resolver isso..
Abaixo esta todo o arquivo.
http://www.faculdadealianca.edu.br/error_cache.txt -
Pelo que sei a versão 32 bits está apresentando mais problemas.
Se conseguir fazer um teste na versão 64 bits. Pode fazer um backup e restaurar. -
eu fiz tanta coisa que formatei o pfsense só de raiva. kkkkk
ai instalei novamente, alguém poderia me informar um tuto para que eu possa integrar o freeradius+mysql e depois usar o capitive portal, sem dar problemas com o squid e squidGuardian…. é só eu instalar os dois e o trem começa a dar problemas novamente -
Alguém poderia me ajudar com o freeradius 2+mysql externo+portal captive?
um tutorial alguma dica?
-
Fui em "System logs", no menu "Status" e mandei reiniciar o freeradius2 a informação relacionado ao freeradius2 é a senguinte:
Jun 1 18:54:39 syslogd: kernel boot file is /boot/kernel/kernel
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Attempting to connect to root@192.168.1.253:3306/radius
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
Jun 1 18:54:42 radiusd[2636]: rlm_sql_mysql: Starting connect to MySQL server for #0
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Connected new DB handle, #0
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
Jun 1 18:54:42 radiusd[2636]: rlm_sql_mysql: Starting connect to MySQL server for #1
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Connected new DB handle, #1
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
Jun 1 18:54:42 radiusd[2636]: rlm_sql_mysql: Starting connect to MySQL server for #2
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Connected new DB handle, #2
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Attempting to connect rlm_sql_mysql #3
Jun 1 18:54:42 radiusd[2636]: rlm_sql_mysql: Starting connect to MySQL server for #3
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Connected new DB handle, #3
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
Jun 1 18:54:42 radiusd[2636]: rlm_sql_mysql: Starting connect to MySQL server for #4
Jun 1 18:54:42 radiusd[2636]: rlm_sql (sql): Connected new DB handle, #4
Jun 1 18:54:42 radiusd[2636]: Loaded virtual server <default>Jun 1 18:54:42 radiusd[5410]: The server is not configured to listen on any ports. Cannot start.tem algum erro aqui?</default>