Squidguard abrindo pagina de erro sgerror.php em http://127.0.0.1 - [RESOLVIDO]
-
Olá,
Configurei o squidguard com a blacklist, mas ao acessar uma página bloqueada, está tentando redirecionar para a sgerror.php no meu computador local, e não no servidor pfsense…
https://127.0.0.1/sgerror.php?url=403%20&a=192.168.2.160&n=192.168.2.160&i=suporte.ti&s=default&t=none&u=http://www.g1.com/
Tentei adicionar uma pagina externa como teste, mas não funciona...
Tentei editar o arquivo "/usr/local/pkg/squidguard_configurator.inc" modificando "define('REDIRECT_BASE_URL', '/sgerror.php');" para "define('REDIRECT_BASE_URL', 'https://192.168.2.1/sgerror.php');" mas também não funcionou...Alguém sabe como mudar isso?
-
Boa tarde!
Volte as configurações que vc fez e deixe padrão: (define('REDIRECT_BASE_URL', '/sgerror.php');).
Edite novamente o arquivo "/usr/local/pkg/squidguard_configurator.inc"Procure a linha abaixo (No meu está como linha 1242):
$guiip = (!empty($squidguard_config[F_CURRENT_LAN_IP])) ? $squidguard_config[F_CURRENT_LAN_IP] : '127.0.0.1'
Altere para
$guiip = (!empty($squidguard_config[F_CURRENT_LAN_IP])) ? $squidguard_config[F_CURRENT_LAN_IP] : '192.168.2.1';
Reinicie o pfsense e teste novamente
-
Não esquece de adicionar o https:// no seu script também.
-
Davidson e Danilo, perfeito
Agora está funcionando, obrigado mesmo pelo help, valeu
Edson Linhares
-
Boa tarde!
Edita o tópico e marca como [RESOLVIDO]. :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy