Subcategories

  • Discussions about packages which handle caching and proxy functions such as squid, lightsquid, squidGuard, etc.

    4k Topics
    21k Posts
    H
    Hello all, please dont shoot me on sight, im one of those who kinda set up things by following tutorials and actually see things how they look like on screen. And English is not my native language either. I setted up HAProxy with pfSense package for Nextcloud which works as VM at ip 192.168.1.214. It has self signed cert. I created ACME with Porkbun as wildcard and all that works totally fine. BUT i have big issue which i dont know how to solve. When im acessing by nextcloud.mydomain.xx in LOCAL LAN it serves page fine, but it uses self signed cert. Will someone, please, by example show me how to create working rule which will force pfSense to serve 192.168.1.214 and all its translation or whatever exclusively outside? Bare in mind that 214 has to be able to lurk in 192.168.1.0/24 also, since data storage is served by NFS on TrueNas. 192.168.1.1 (pfSense IP), 192.168.1.214 (Nextcloud IP) All works fine from outside, but from local LAN it bypase HAProxy, and serve nextcloud internal cert with correct domain name nextcloud.mydomain.xx . Well it seems that only bypas cert part since domain works. Somehow it resolve. This is what dig command does from local lan: ;; ANSWER SECTION: nextcloud.domain.xx. 3600 IN A 192.168.1.1 nextcloud.domain.xx. 3600 IN A 192.168.1.214 ;; Query time: 0 msec ;; SERVER: 192.168.1.1#53(192.168.1.1) (UDP) ;; WHEN: Thu Oct 30 08:48:37 CET 2025 ;; MSG SIZE rcvd: 83 Main problem here is that Nextcloud app go stuck when we are on local network. It does not work since it gets different cert. It does not even ask do we want to accept it or not. Even if does it will be bit weird to do that every time we come home. Many thnx in advance!
  • Discussions about packages whose functions are Intrusion Detection and Intrusion Prevention such as snort, suricata, etc.

    2k Topics
    16k Posts
    B
    @Greyhat I think it's useful to work with what we've got and figure something out for the (i hope) edge cases later. So for the JSON I figured you can actually use an existing suricata integration by co-opting their pipelines.
  • Discussions about packages that handle bandwidth and network traffic monitoring functions such as bandwidtd, ntopng, etc.

    573 Topics
    3k Posts
    dennypageD
    @kabeda If memory serves, that old version of ntopng did not run as user ntopng, but as user nobody. There are lots of problems in that old version. Anyway, check the ownership and permissions of /var/db/ntopng and make sure it matches the user that ntopng runs as. You may need to set ownership of the entire hierarchy. Example: /usr/sbin/chown -R nobody:nobody /var/db/ntopng However, the better choice would be to upgrade to a more recent version.
  • Discussions about the pfBlockerNG package

    3k Topics
    20k Posts
    tinfoilmattT
    Resurrecting this thread for two reasons: 1.) Because this is where I landed when newly confronted with the topic using pfBlockerNG-devel 3.2.10 on pfSense CE 2.8.1-RELEASE; and 2.) to confirm that the 'issue' and 'fix' here continue to be viable despite the TLD analysis function being considerably modified since the last post in September 2024. Current function @ L7255 of /usr/local/pkg/pfblockerng/pfblockerng.inc: // Determine max Domain count available for DNSBL TLD analysis (Avoid Unbound memory exhaustion) $pfs_memory = (round(get_single_sysctl('hw.physmem') / (1024*1024)) ?: 1000); $pfb['pfs_mem'] = [ '0' => '100000', '1500' => '150000', '2000' => '200000', '2500' => '250000', '3000' => '400000', '4000' => '600000', '5000' => '1000000', '6000' => '1500000', '7000' => '2000000', '8000' => '2500000', '12000' => '3000000', '16000' => '4000000', '32000' => '8000000' ]; if ($pfb['dnsbl_py_blacklist']) { array_walk($pfb['pfs_mem'], function (&$value) { $value = $value * 3; }); } foreach ($pfb['pfs_mem'] as $pfb_mem => $domain_max) { if ($pfs_memory >= $pfb_mem) { $pfb['domain_max_cnt'] = $domain_max; } } On a system with 32 GB of RAM attempting to 'analyze' over 24M but less than 27M domains, the line "'32000' => '8000000'" was changed to "'32000' => '9000000'" (i.e., permitting a maximum number of 27M domains to be 'analyzed') in order for the function to complete successfully. Analyzing (and then subsequently loading) precisely this number of domains... Original Matches Removed Final ---------------------------------------- 24270656 21017552 6463516 17807140 ----------------------------------------- ...results in Unbound's stable operational consumption of ~6 GB of RAM and any/all pfBlockerNG 'Reload' options consuming as much as ~6 GB of RAM, concurrently. Therefore one should only attempt this DNSBL hack if they're confident that their system has at least 13 GB of memory 'headroom' (taking into account normal system operation and any other resource-consuming, installed packages).
  • Discussions about Network UPS Tools and APCUPSD packages for pfSense

    102 Topics
    3k Posts
    dennypageD
    @netboy said in Docker container for nut server?: I am NOT installing docker in pfsense - offcourse this is a big security risk - I agree !!! My apologies. I interpreted your earlier question I think i need to explain what i am asking for. I am fully aware if your netgate router is attached to an UPS you can configure netgate. Let us say you 5 UPS's in your home and you want nut server to read all the UPS's and show me a dasboard about the status of all the UPS's ? - Is there a ready made docker container for client server nut with dashboard functionality? as a request to have something running on pfSense, which is why I responded I believe most people would say that the type of thing you are asking for isn't something you want to run on your firewall. I recommend using a general purpose operating system behind the firewall instead. Mutual misunderstanding I guess. If you want to explore general NUT monitoring, and not something particular to pfSense, I would recommend the NUT Users list as a better place to seek information.
  • Discussions about the ACME / Let’s Encrypt package for pfSense

    503 Topics
    3k Posts
    M
    I am using the DNS-Update method I have to use a DNS-Sleep of 5 minutes to let the letsencrypt txt dns record update propagate. During this 5 minutes the acme-webgui times out. when the acme-webgui times out the Action list is NOT executed. How can I solve this ? Would it maybe be an idea to let the acme.sh script execute the actions in the action list as a post-hook instead of the web-gui? Or maybe add an option to add post-hooks in the webUI ?
  • Discussions about the FRR Dynamic Routing package on pfSense

    296 Topics
    1k Posts
    C
    This one has been tricky still not sure what to try. Any ideas?
  • Discussions about the Tailscale package

    92 Topics
    638 Posts
    L
    @Vad-B Interesting indeed! I just tried to fill the Pre-authentication Key with file:/dev/null. I get an crash in pfsense after some time, but when I login again is saved. For me this for after service restarts at least this solves it, including the issue with the routes not being advertised even set in the WebUI. Havent done an full restart of pfsense (yet)
  • Discussions about WireGuard

    710 Topics
    4k Posts
    T
    @chpalmer Me too! 25.11-BETA (amd64) built on Tue Oct 28 12:38:00 CST 2025 FreeBSD 16.0-CURRENT Ted
  • Pfblocker with squid/squidguard

    3
    0 Votes
    3 Posts
    2k Views
    R
    I came across this post regarding pfblocker, squid, and floating rules. https://forum.pfsense.org/index.php?topic=44479.0 It's from 2011 so not too sure if its still relevant.
  • SSTP behind Squid Reverse Proxy ?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • HAVP not blocking EICAR test downloads

    2
    0 Votes
    2 Posts
    1k Views
    G
    How are you running HAVP? Is it bound to the loopback or a phyical interface and are you redirecting traffice to it?
  • No pcap with Snort Emerging Threats Alerts

    4
    0 Votes
    4 Posts
    3k Views
    P
    I stand corrected … Thank You!! Now ... why does this not work for ET?!  ;D
  • Squid - Duplicate cron bug

    2
    0 Votes
    2 Posts
    1k Views
    marcellocM
    This situation happens because gui does not preserve hidden squid cron identification. In some situations will act like a bug but on other like a custom cron config.
  • Squid - rotate nightmare

    27
    0 Votes
    27 Posts
    11k Views
    belleraB
    @exograpix asked for explaining the new option about rotate cron. squid3-dev 3.3.10 pkg 2.2.1 0  0  *  *  *  root  /bin/rm /var/squid/cache/swap.state; /usr/pbi/squid-amd64/sbin/squid -k rotate -f /usr/pbi/squid-amd64/etc/squid/squid.conf */15  *  *  *  *  root  /usr/local/pkg/swapstate_check.php squid3-dev 3.3.10 pkg 2.2.2 version default 0  0  *  *  *  root  /usr/pbi/squid-amd64/sbin/squid -k rotate -f /usr/pbi/squid-amd64/etc/squid/squid.conf */15  *  *  *  *  root  /usr/local/pkg/swapstate_check.php squid3-dev 3.3.10 pkg 2.2.2 version with reseting the cache –--> Proxy server: Cache management: Clear cache on log rotate 0  0  *  *  *  root  /usr/local/pkg/swapstate_check.php clean; /usr/pbi/squid-amd64/sbin/squid -k rotate -f /usr/pbi/squid-amd64/etc/squid/squid.conf */15  *  *  *  *  root  /usr/local/pkg/swapstate_check.php So, if you activate the new option you will reset your cache every night. At 2.2.1 cache.log file wasn't rotate because squid.conf didn't have any debug_options rotate=N (squid3 syntax) line. And rm for swap.state is not necessary, as discussed in this thread.
  • Squid3-dev - wrong github commit link at WebGUI

    1
    0 Votes
    1 Posts
    709 Views
    No one has replied
  • Squid external_acl_type for DHCP CHECK

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • SquidGuard log rotate bug

    2
    0 Votes
    2 Posts
    2k Views
    belleraB
    I forgot to say that squid is trying also to write to /var/log/squidGuard.log cat /var/squid/logs/cache.log | grep /var/log/squidGuard.log 2014-04-05 11:19:04 [23381] (squidGuard): can't write to logfile /var/log/squidGuard.log My work around cd /var/log rm /var/log/squidGuard.log ln -s /var/squidGuard/log/squidGuard.log squidGuard.log Everything ok and no more logs from squidGuard at squid cache.log
  • Snort failing to start after latest rules update

    5
    0 Votes
    5 Posts
    3k Views
    bmeeksB
    @madscientist159: Never mind.  It seems that if the disk usage is high enough (> 102% ?) Snort will sliently fail. :-[ I am using NanoBSD, so I was a bit surprised by this.  I take it the Snort rules are not kept in tmpfs? [/quote] The rules are written to /usr/local/etc/snort (if on a 2.0.x machine) and to /usr/pbi/snort-arch/etc/snort on a 2.1 machine.  If there is not enough free disk space, bad things can certainly happen.
  • Squid + Multi-WAN failover on 2.1 AMD64: does it work?

    6
    0 Votes
    6 Posts
    2k Views
    T
    See https://forum.pfsense.org/index.php?topic=74618.0 for a pure failover workaround.
  • Squid dynamic caching url with ?

    2
    0 Votes
    2 Posts
    947 Views
    marcellocM
    this acl is created while caching windows update is selected on squid3-dev. # Windows Update refresh_pattern range_offset_limit -1 refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims refresh_pattern -i windows.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
  • Can not remove or re-install package OpenVPN Client Export Utility

    5
    0 Votes
    5 Posts
    2k Views
    P
    You rock!  That did it. I deleted the openvpn-client-export.inc file.  It still showed up in the package manager.  But I was able to delete it normally after that point. I was then able to install it and my "Client Export" tab showed up as expected. Perfect!  Thanks again. -Keith
  • Haproxy-devel 1.5-dev22 pkg v 0.7 on 2.1 - fatal error

    6
    0 Votes
    6 Posts
    1k Views
    D
    Thank you! It may come handy next time I build something like this from scratch.
  • Snort not Restarting after update

    4
    0 Votes
    4 Posts
    2k Views
    bmeeksB
    @BBcan17: Thanks Bill, Are there any other logs that I could look at to see where the issue could be? One of those routers is using the Open ET ruleset ("C") so its most likely not a recent rule, as the open ruleset is 30 days behind. Snort logs everything it logs to the system log, so if nothing is there to give a hint, you are out of luck.  Snort is not as "helpful" with logging as Suricata.  All of that is under control of the binary, so nothing can be done from the GUI package side. As for those rules, my understanding is the 30-day timer is actually per rule.  So some "rule X" in the set may hit 30-days old today and wind up in the ET Open collection while other rules may not.  At least that's how I believe it works on the Snort subscriber versus registered-user rules. Bill
  • Captive portal + squid3-dev trouble

    6
    0 Votes
    6 Posts
    2k Views
    marcellocM
    You can also try to forward any dns request to a specific dns server using nat rules.
  • Snort problem with installation of some rules

    10
    0 Votes
    10 Posts
    32k Views
    bmeeksB
    @coer: Thank you that is the answer. Glad I could help.. :) Bill
  • Squid3-dev netdb is looking for /var/log/squid directory

    10
    0 Votes
    10 Posts
    9k Views
    T
    Awesome Marcelloc  ;)
  • Squid3 not logging access

    4
    0 Votes
    4 Posts
    3k Views
    marcellocM
    @ptbman: I've discovered (through netstat) that the port squid should be listening is closed. Any ideas? Enable ipv6 on system -> advanced. It's something with squid compilation on freebsd/pfsense.
  • 0 Votes
    5 Posts
    7k Views
    T
    Tip: https://calomel.org/proxy_auto_config.html isInNet(host, pattern, mask) isInNet(host, "192.168.249.79", "255.255.255.255")     is true if the IP address of host matches exactly 192.168.249.79. isInNet(host, "192.168.0.0", "255.255.0.0")     is true if the IP address of the host matches 192.168.*.*. Well it might work, but like you said you have hosts without local records…
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.