• How to create .txz in FreeBSD & transfer it to pfSense?

    15
    0 Votes
    15 Posts
    3k Views
    D
    @renato.nogueira: @doktornotor: If you do not want the webgui, just don't install it. pkg remove pfSense-pkg-squid pkg install squid sorry, the pfsense is 2.0.1 [image: giphy.gif]
  • XSD for Config.XML

    2
    0 Votes
    2 Posts
    976 Views
    jimpJ
    No, there is no formal spec or XSD.
  • Add apply button on 2.3 pkg xml framework

    1
    0 Votes
    1 Posts
    542 Views
    No one has replied
  • Block traffic when related NAT rule Alias doesn't exist

    7
    0 Votes
    7 Posts
    928 Views
    Q
    Thanks for raising Rajko and thanks for the fix devs.
  • MOVED: Found this was an interesting read, execute code on routers

    Locked
    1
    0 Votes
    1 Posts
    491 Views
    No one has replied
  • Interface names

    4
    0 Votes
    4 Posts
    2k Views
    luckman212L
    Thank you both for the helpful replies. Might not be a bad idea to add a note about that to the Developer Style Guide (e.g. Whenever possible, the preferred way to reference interfaces is by using the logical interfaces name eg opt2 yada yada…)
  • PHP error on 2.3.2 update

    4
    0 Votes
    4 Posts
    2k Views
    D
    @thallam08: Issue is still there in 2.3.3 and 2.3.3_p1 Not really, don't necropost. https://github.com/pfsense/pfsense/blob/RELENG_2_3/src/usr/local/bin/dhcpd_gather_stats.php
  • What is check_reload_status?

    6
    0 Votes
    6 Posts
    5k Views
    luckman212L
    I made a small test patch (have not submitted a PR yet because I wanted feedback first) that seems to solve the issue for me. At least in my case it was caused by Console opt 16 restart php-fpm, killing that made check_reload_status go into a nosedive.  So I wrapped it with a start/stop. Been testing that for a couple days and so far it has helped. Any thoughts? Side note: since it doesn't seem possible to build a "pfSense" platform from source, what is the recommended method for trying to make & test changes to check_reload_status.c in case it needs to be worked on? edit: didn't get any comments here so I submitted PR#3637
  • SSH GitSync

    1
    0 Votes
    1 Posts
    673 Views
    No one has replied
  • Why won't pfsense 2.3.3 build nonSense out of the box

    2
    0 Votes
    2 Posts
    691 Views
    D
    I think it's fairly obvious that it's broken on purpose and you won't get any assistance from pfSense guys here, whatsoever. https://forum.pfsense.org/index.php?topic=109089.0
  • Do I still need this patch? Upgrade to 2.3.3-RELEASE broke it.

    8
    0 Votes
    8 Posts
    971 Views
    D
    Dude dunno what are you after here. There's no user-configurable stuff in there and in general nothing of user interest in there either. The file was split to one per PHP extension. There's nothing to patch, fix, add, edit or invent there. And no, there's is no easy way to look.
  • Is this plugin idea even possible?

    5
    0 Votes
    5 Posts
    1k Views
    B
    Ok so i figured out the problem. It should probably be noted in the documentation that in order for accounting to work FreeRADIUS needs an interface set to listen on port 1813 for Accounting packets. But now i have a new problem. According to the documentation to reset the counter you simply have to delete the used-octets- <username>file. Well for some reason that does not work. When it regenerates the file it simply picks up where it left off. At this point i dont think i will even use radius to handle the data caps i will just use it as a counter and handle everything with scripts. But its going to make things a lot more complicated if i cant reset the counter. Edit: Im also noticing something odd about the accounting. It seems the usage counter continues to increase at a rate of a few hundred KB per minute even when the user is no longer connected to the network. Meaning a user can login then disconnect their machine from the network and until their login session times out they will continue to use data at a relatively slow rate. That will get rather annoying if i cant figure out how to fix it… Edit2: Its worse that i thought. A user that isnt even connected to the network just used around 20MB in about 10 minutes. Thats going to make this completely unusable... Edit3: Unless im just missing something stupid i think radius accounting may just be broken on PFSense. I just tried a fresh pfsense install on a different system and its doing the exact same thing... So... Any ideas? Oh and what i said about it showing 20MB used in 10 minutes... It got worse than that. It seems a bit random but after a bit more testing i left the test user connected and went to bed. In the morning the user had been disconnected for reaching the 100GB limit set...</username>
  • Need help building module for broadcom 5719

    22
    0 Votes
    22 Posts
    8k Views
    M
    I know this is off topic. But does this device support inline IPS? Also do you know where can I get updated firmware for this device. Thanks in advance!
  • Regular expression generator

    3
    0 Votes
    3 Posts
    2k Views
    N
    My favorite is: http://php.net/manual/en/pcre.pattern.php Along with: $regex_sub_pattern_x = "something_x"; $regex_sub_pattern_y = "something_y"; $regex_sub_pattern_z = "something_z"; $regex_pattern = $sub_pattern_x . $sub_pattern_y . $sub_pattern_z;
  • Sprintf or direct assignment

    4
    0 Votes
    4 Posts
    2k Views
    N
    Kind of torn between the alternatives. Found this quote interesting.  Never thought of the opcache. http://stackoverflow.com/questions/7147305/performance-of-variable-expansion-vs-sprintf-in-php Ultimately the 1st is the fastest when considering the context of a single variable assignment which can be seen by looking at various benchmarks. Perhaps though, using the sprintf flavor of core PHP functions could allow for more extensible code and be better optimized for bytecode level caching mechanisms like opcache or apc. In other words, a particular sized application could use less code when utilizing the sprintf method. The less code you have to cache into RAM, the more RAM you have for other things or more scripts. However, this only matters if your scripts wouldn't properly fit into RAM using evaluation. Sounds like single quote (nowdocs) catenation may be fastest when only a single var.  But then there is that opcache thing and memory mentioned in the quote.
  • Idea to Install CPU-X into pfsense as a package with widget

    4
    0 Votes
    4 Posts
    1k Views
    johnpozJ
    Have at it… I see zero reason for such a thing..  Its a firewall, pretty sure will know what cpu it has on it before I set it up ;)  After that would have zero reason to look at this info.. if did need any such info, could just read dmesg or sysctl [2.3.2-RELEASE][root@pfsense.local.lan]/root: sysctl hw.model hw.machine hw.ncpu hw.model: AMD Turion II Neo N40L Dual-Core Processor hw.machine: amd64 hw.ncpu: 2
  • Why is service killed after package installation

    6
    0 Votes
    6 Posts
    2k Views
    D
    Service is killed normally as part of uninstall, see function uninstall_package() in pkg-utils.inc I'm completely confused with the daemonize stuff or whatever you mention, pretty sure that's not the problem. Put some log_error() stuff in place (or use /usr/bin/logger in the .sh script) and see how many times the service is (re)started on reinstall.
  • Custom Repository pfSense 2.3

    2
    0 Votes
    2 Posts
    2k Views
    A
    I seek the same: Is there a manual available how to create my own pfSense and pfsense package repository for pfSense 2.3? I can find some stuff for 2.1 and older, but not for 2.3, where is a lot changed. Thanks in advance!
  • [Solved] Where the do_input_validation() source code?

    4
    0 Votes
    4 Posts
    800 Views
    D
    Huh, thanks. I've probably mistyped something since I've grepped entire /usr/local as well, and got nothing. After that, I've searched GitHub, found nothing. Even looked at php56-pfSense-module  (and of course found nothing there ::))
  • PfSense seems impossible to build

    4
    0 Votes
    4 Posts
    1k Views
    P
    Yes, that's fine. I fully understand that if you are going to modify a component written in a compiled language then you need to have a working build process somewhere and easy way to deploy the changed executables to a test system. I was just pointing out that a lot of contributions can be developed and tested without needing that environment set up.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.