• I can't restart pfsense

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    M
    Strange, because I'm using version 2.0.1 x86 pfsense. Both the x86 and amd64 are having the same problem. If you can help me, pass me by e-mail the file libpcre.so.1. So I cut and paste in pfsense without problems. Thank you
  • Attempting to write NUT UPS Status widget for Dashboard

    Locked
    7
    0 Votes
    7 Posts
    7k Views
    T
    I received an email from user "LostInIgnorance" asking me to post the code I have.  I am posting the version I wrote before attempting to add the automatic AJAX widget refresh code.  It is as follows: /*         $Id$         Copyright 2008 Seth Mos         Part of pfSense widgets (www.pfsense.com)         originally based on m0n0wall (http://m0n0.ch/wall)         Redistribution and use in source and binary forms, with or without         modification, are permitted provided that the following conditions are met:         1\. Redistributions of source code must retain the above copyright notice,           this list of conditions and the following disclaimer.         2\. Redistributions in binary form must reproduce the above copyright           notice, this list of conditions and the following disclaimer in the           documentation and/or other materials provided with the distribution.         THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,         INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY         AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE         AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,         OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF         SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS         INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN         CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)         ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE         POSSIBILITY OF SUCH DAMAGE. */ $nocsrf = true; require_once("guiconfig.inc"); require_once("pfsense-utils.inc"); require_once("functions.inc"); $nut_config = $config['installedpackages']['nut']['config'][0]; /* functions */ function secs2hms($secs) { if ($secs<0) return false; $m = (int)($secs / 60); $s = $secs % 60; $h = (int)($m / 60); $m = $m % 60; return array($h, "h ", $m, "m ", $s, "s "); } function tblrowbar ($value, $symbol, $red, $yellow, $green) { if(!$value) return; $value = sprintf("%.1f", $value); $red = explode('-', $red); $yellow = explode('-', $yellow); $green = explode('-', $green); sort($red); sort($yellow); sort($green); if($value >= $red[0] && $value <= ($red[0]+9)) { $color = 'black'; $bgcolor = 'red'; } if($value >= ($red[0]+10) && $value <= $red[1]) { $color = 'white'; $bgcolor = 'red'; } if($value >= $yellow[0] && $value <= $yellow[1]) { $color = 'black'; $bgcolor = 'yellow'; } if($value >= $green[0] && $value <= ($green[0]+9)) { $color = 'black'; $bgcolor = 'green'; } if($value >= ($green[0]+10) && $value <= $green[1]) { $color = 'white'; $bgcolor = 'green'; } print(<< <eod<br>{$value}{$symbol} EOD ."\n"); } ?> | Monitoring | Model | Status | | $running = ((int)exec('pgrep upsmon | wc -l') > 0) ? true : false; if($nut_config['monitor'] == 'local') { echo "Local UPS"; $cmd = "upsc {$nut_config['name']}@localhost"; } elseif($nut_config['monitor'] == 'remote') { echo "Remote UPS"; $cmd = "upsc {$nut_config['remotename']}@{$nut_config['remoteaddr']}"; } elseif($nut_config['monitor'] == 'snmp') { echo "SNMP UPS"; $cmd = "upsc {$nut_config['snmpname']}@localhost"; } ?>   | if($running) $handle = popen($cmd, 'r'); elseif($nut_config['monitor'] == 'snmp') $condition = "NUT enabled but service not running!\nSNMP UPS may be unreachable."; else $condition = "NUT enabled but service not running!"; if($handle) { $read = fread($handle, 4096); pclose($handle); $lines = explode("\n", $read); $ups = array(); foreach($lines as $line) { $line = explode(':', $line); $ups[$line[0]] = trim($line[1]); } if(count($lines) == 1) $condition = "ERROR:Data stale!"; echo $ups['ups.model']; print(<< | EOD ."\n"); $status = explode(' ', $ups['ups.status']); foreach($status as $condition) { if($disp_status) $disp_status .= ', '; switch ($condition) { case 'WAIT': $disp_status .= 'Waiting'; break; case 'OFF': $disp_status .= 'Off Line'; break; case 'OL': $disp_status .= 'On Line'; break; case 'OB': $disp_status .= 'On Battery'; break; case 'TRIM': $disp_status .= 'SmartTrim'; break; case 'BOOST': $disp_status .= 'SmartBoost'; break; case 'OVER': $disp_status .= 'Overload'; break; case 'LB': $disp_status .= 'Battery Low'; break; case 'RB': $disp_status .= 'Replace Battery'; break; case 'CAL': $disp_status .= 'Calibration'; break; default: $disp_status .= $condition; break; } } echo $disp_status; print(<< | Battery Charge | Runtime Remaining | Battery Voltage | | EOD ."\n"); /* echo $ups['battery.charge'] . "%"; */ tblrowbar($ups['battery.charge'], '%', '0-29' ,'30-79', '80-100'); print(<< | EOD ."\n"); echo implode(secs2hms($ups['battery.runtime'])); print(<< | EOD ."\n"); echo $ups['battery.voltage'] . "V"; } ?> |</eod<br> It ain't pretty but it does the job.
  • You must enter valid credentials to access this resource

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    jimpJ
    Without knowing what packages you have installed, it's impossible to help. That string doesn't show up anywhere in our current code/releases, but it does show in a couple of packages (authng and spamd). If you're seeing it, the most likely explanation is that you're not entering the right password, or at least not the password it expects.
  • Block webgui acces to my wlan router connected to lan interface

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    T
    got it working. change port 80 on your wlan router to another port (1000) Set a firewall rule Block Proto: TCP Source: Lan Net Port: any Destination: Lan Adress Port: 1000
  • IPSec dashboard widget only displays 4 rows

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Web interface issue

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    B
    thanks jimp, Will do this in the future. Makes sense. Barry
  • Webgui access from internet

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    T
    Thx man i've got it working.
  • Changed to a new cert, no connection to webGUI´t!

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    N
    In general this should work without problems. Further if it does not work you can connect to pfsense using ssh or console and reassign the LAN ip address. then it will ask you if you would like to revert to http. This should be enough. I did this on pfsense 2.0.0 and it worked.
  • Incorrect LDAP setup causing Gui lockout

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    E
    Same problem here, i was testing ldap authentication with a Windows 2008R2 Domain Controller and had the test-dc shut down: i was barely able to login to the system. I suppose it's due to the fact that almost every page you visit the system checks if the user is ok. According to http://doc.pfsense.org/index.php/User_Manager "If you are using an LDAP server and the authentication server times out, the system will fall back to using pfSense's built-in authentication" so I think this could be solved lowering the ldap timeout but i havent found an option for it. Generally I think this should be changed: the ldap user connection could be used for authenticating VPN users but having the ldap server down shouldnt be disruptive for the whole firewall system. EDIT according to system log, it looks like everytime the system try to check which group the user belongs to: php: /system.php: ERROR! ldap_get_groups() could not bind to server test 2008.
  • Cpu realtime monitoring why 10 seconds ?

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    jimpJ
    Reloading the widget faster would put too much of a burden on the lighttpd process on small devices. If you really want realtime, login over ssh and watch with top -SH
  • Dashboard => Widget 'Firewall logs'

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    jimpJ
    IE is crap, use FF, Chrome, Safari, Opera. Basically any sane browser works. IE is not sane. That said, it's something that has already been fixed. I think it was this commit: https://github.com/bsdperimeter/pfsense/commit/6478e71e95c3224cf2b83d7e3e8f715c6a61f31e
  • Lost access to GUI, had to reboot router

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    jimpJ
    The way to give it a good swift kick is to do: killall -9 php; killall -9 lighttpd; /etc/rc.restart_webgui
  • Dashboard [2.0.1] IPSEC Tunnel status don't report correct status

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    M
    Thank you very much !!.
  • MOVED: monitoring proxy server squid pfsense 2.0.1 ? how to

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Export RRD to external webserver?

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    K
    Hi! Thanks for the reply! I will try to install Munin. Seems very promising. Are you displaying the Munin graphs from your router or another external webserver? Since i'm a FreeBSD newbie, do you have any good site for basic commands in FreeBSD? (Like editing a config file and such)
  • Lock user in home [solved]

    Locked
    8
    0 Votes
    8 Posts
    3k Views
    C
    There is an option with wget without using scp. http://doc.pfsense.org/index.php/Remote_Config_Backup @namezero111111: Afaik, there is a backup package that does exactly that. It needs a subscription however, but I would assume that it is safe. A lot of companies (like mine) probably would have a problem though having their firewall configs backed up in a cloud It encrypts the config before uploading, so we strictly store encrypted blobs, we have no readable configs. It's as safe as your encryption key is strong, plus requiring another account just to get to your encrypted configs.
  • I want that some user's can read ONLY Proxy report Lightsquid

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Macros or profiles or whatever…

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    C
    With optimal firewall rules, that should be as simple as one click to disable that particular rule. Or if it's more complex than that to the extent you can't pass the traffic easily with a single rule, have a block rule at the top that you enable for maintenance, leave disabled normally.
  • 0 Votes
    4 Posts
    2k Views
    J
    Thanks for the replies.  Now that I understand things a bit better I agree that hiding those tabs for assigned interfaces would not be a good idea.  I commented on Efonne's ticket and added screenshots for a sample configuration that would benefit from the improvement.
  • Dashboard Widget for harddrive SMART status

    Locked
    5
    0 Votes
    5 Posts
    5k Views
    jimpJ
    Made some further optimizations and fixed the license up: https://github.com/bsdperimeter/pfsense/commit/c91e242e607c6ff2376350108255dbadcdb039e0
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.