Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Nut Package working after hack detailed here

    Scheduled Pinned Locked Moved 2.2 Snapshot Feedback and Problems - RETIRED
    1 Posts 1 Posters 971 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PhilipG
      last edited by

      pfSense-memstick-2.2-ALPHA-i386-20140407-0319.img
      installed to HDD via easy/quick and standard kernel

      Completed WebUI Wizard with only hostname/timezone change and allow private and bogon networks. Enabled ssh access.

      Install the NUT package:-
      N.B. during my trials I had to disable package signing to allow install.
      System: Advanced: Miscellaneous
      Packages signature - tick (to disable)
      Save
      N.B. if you get “Fatal error: Cannot unset string offsets in /usr/local/www/system_advanced_misc.php on line 175” then please see:- https://forum.pfsense.org/index.php?topic=74753.0

      Then prior to nut setup/configuration ssh into the install.

      Using pfSense 2.1.1 as a guide I added the following directories and links:-

      mkdir /usr/pbi/nut-i386/etc/nut
      mkdir /usr/local/etc/nut
      mkdir /usr/local/libexec/nut
      ln -s /usr/pbi/nut-i386/local/libexec/nut/* /usr/local/libexec/nut/
      ln -s /usr/pbi/nut-i386/local/lib/libupsclient.* /usr/local/lib/
      ln -s /usr/pbi/nut-i386/local/sbin/snmp* /usr/local/sbin/
      ln -s /usr/pbi/nut-i386/local/sbin/ups* /usr/local/sbin/

      Services:NUT - Nut Settings tab
      configure you ups setup eg:-
      UPS Monitoring = Local UPS
      Local UPS Name = ups
      Local UPS Model = MGE UPS SYSTEMS Evolution (for serial and mge-shut)
      Local UPS Port = cuaU0 (usb-to-serial adapter used)
      Change button

      N.B. the config files should now have been created in:- /usr/pbi/nut-i386/etc/nut
      but their respective links are missing in /usr/local/etc/nut
      Although I could have linked the directory /usr/local/etc/nut -> /usr/pbi/nut-i386/etc/nut
      that is not the arrangement in 2.1.1, the files are individually linked so:-

      ln -s /usr/pbi/nut-i386/etc/nut/* /usr/local/etc/nut/
      ln -s /usr/pbi/nut-i386/local/etc/nut/cmdvartab /usr/local/etc/nut/

      Services:NUT - Nut Settings tab
      Change button

      NUT should now be working.

      I hope this helps with patching the nut package / package system.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.