• 0 Votes
    1 Posts
    490 Views
    No one has replied
  • 0 Votes
    1 Posts
    484 Views
    No one has replied
  • 0 Votes
    5 Posts
    780 Views
    D

    @werter

    непрозрачный, с авторизацией по ip и учетным записям. на время настройки авторизация отключена

  • 0 Votes
    1 Posts
    527 Views
    No one has replied
  • 0 Votes
    1 Posts
    853 Views
    No one has replied
  • Problema Pfsense y Whatsapp

    Español
    15
    0 Votes
    15 Posts
    8k Views
    R

    En caso de que alguien aun no logro resolver el inconveniente aquí dejo el enlace con la información facebook suministra para permitir el filtro por proxy

    https://developers.facebook.com/docs/whatsapp/guides/network-requirements/?locale=es_ES

  • user based ACL

    Moved Captive Portal
    1
    0 Votes
    1 Posts
    450 Views
    No one has replied
  • Squid URL based proxy with port redirects

    Cache/Proxy
    1
    0 Votes
    1 Posts
    570 Views
    No one has replied
  • 0 Votes
    5 Posts
    2k Views
    Z

    Thanks for the info. Astounding is what this is. :-)

  • Squid ClamAV antivirus not working properly

    Cache/Proxy
    14
    0 Votes
    14 Posts
    11k Views
    A

    My problem with this is the need of a whitelist. I curruntly don't know how to have something like "whitelist all except blacklist and pages scaned with a virus" I don't use squidguard but PFBLockerng-devel witch is in my opinion better.
    It should be a regex like ^.* minus blacklist but I don't see anything on how to do this properly.

    I have a thread about this: https://forum.netgate.com/topic/175557/squid-clamav-mitm-custom-setting?_=1667128733894

  • 0 Votes
    3 Posts
    657 Views
    B

    @obmor said in Repositorio não oficial não aparece:

    @baguncassp siga este tutorial, comigo deu certo no pfsense 2.4.4

    https://forum.netgate.com/topic/136730/aplicar-patch-para-usar-e2guardian-5-em-pfsense-2-4-4/2?fbclid=IwAR1WmexowP8hxVx5gQD_t-aXzcFCt3vpsfz-spQnGfqChwk_-iUX_DuyHyM

    Muito obrigado @obmor deu certinho.

  • 1 Votes
    7 Posts
    1k Views
    A

    Durante o monitoramento percebi que o Squid precisava ser reiniciado mais de uma vez ao dia, acrescentei mais dois horários e também alterei o path do cron para utilizar a rotina padrão do Squid.

    00 10 * * * root /usr/local/etc/rc.d/squid.sh restart
    00 13 * * * root /usr/local/etc/rc.d/squid.sh restart
    00 16 * * * root /usr/local/etc/rc.d/squid.sh restart

    O reinício é rápido e até o momento ninguém reclamou de queda, pelo que tenho percebido afeta somente o acesso a sites, a conferência que era a minha maior preocupação continua funcionando normalmente durante a execução da rotina.

    O que acho mais estranho é que temos uns 200 dispositivos conectados em nossa rede ( Ethernet e Wi-Fi ) e já ouvi pessoas reclamando do mesmo problema com 1200 dispositivos na rede.

  • 0 Votes
    8 Posts
    3k Views
    B

    All..... The script came from user Remzej. I have it on a cron job to check every 5 minutes (we are a busy proxy environment)...

    */2 * * * * root /usr/bin/nice -n20 /usr/local/bin/php-cgi -f /usr/local/pkg/monitor_memory_usage.php

    #!/usr/local/bin/php-cgi -f
    <?php
    /*

    monitor_memory_usage.php

    part of pfSense (https://www.pfsense.org)

    Copyright (c) 2011-2015 Rubicon Communications, LLC (Netgate)

    All rights reserved.

    Licensed under the Apache License, Version 2.0 (the "License");

    you may not use this file except in compliance with the License.

    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software

    distributed under the License is distributed on an "AS IS" BASIS,

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    See the License for the specific language governing permissions and

    limitations under the License.
    */
    require_once('config.inc');
    require_once('util.inc');
    require_once('squid.inc');
    global $config;

    // Monitor memory usage by remzej
    // Get SWAP usage funtion
    function swap_usage() {
    exec("/usr/sbin/swapinfo", $swap_info);
    $swap_used = "";
    foreach ($swap_info as $line) {
    if (preg_match('/(\d+)%$/', $line, $matches)) {
    $swap_used = $matches[1];
    break;
    }
    }
    return $swap_used;
    }

    // Get memory usage function
    function mem_usage() {
    $memory = "";
    exec("/sbin/sysctl -n vm.stats.vm.v_page_count vm.stats.vm.v_inactive_count " .
    "vm.stats.vm.v_cache_count vm.stats.vm.v_free_count", $memory);

    $totalMem = $memory[0]; $availMem = $memory[1] + $memory[2] + $memory[3]; $usedMem = $totalMem - $availMem; $memUsage = round(($usedMem * 100) / $totalMem, 0); return $memUsage;

    }

    // Get memory and SWAP usage value
    $memusage_pct = mem_usage();
    $swapusage_pct = swap_usage();

    // Display memory usage
    echo "Memory Usage: " . $memusage_pct . "%" . PHP_EOL;
    echo "SWAP Usage: " . $swapusage_pct . "%" . PHP_EOL;

    // If memory usage is above 90%, stop and restart squid services.
    if (($memusage_pct > 90) or ($swapusage_pct > 80)) {
    squid_stop_monitor();
    if (is_service_running('squid')) {
    stop_service("squid");
    }
    squid_restart_services();
    log_error(gettext(sprintf("[squid] Memory usage is $memusage_pct percent, Swap Usage is $swap_usage percent, stopping and restarting services.")));
    }
    log_error(gettext(sprintf("[squid] Memory usage is $memusage_pct percent and Swap Usage is $swapusage_pct")));
    ?>

  • 0 Votes
    2 Posts
    893 Views
    ghostshellG

    There are many how to's on the youtube and interwebs. Here is one I have saved

    https://www.youtube.com/watch?v=W2gy1bLHm5o

    Skip the pfsense install part as it goes through the whole process from pfsense setup to squid, to squidguard, and lightsquid. Squidguard itself is not hard to setup once you have setup you squid transparent proxy which is basically enabling squid, checking transparent proxy, settings caches and that's it for squid then switch to squidguard and configure it. I have squid setup as an HAVP sine it is built into the squid package now and not a separate package before 2.3. Overall there is are many video and guides with pictures to assist in setting up or helping troubleshoot pieces of pfsense you need help with when you google for it such as in your case "pfsense squidguard setup". Don't hesitate you use your Googlefu.