Similar thing I found: https://www.reddit.com/r/opnsense/comments/1g67pgg/is_it_possible_to_use_opnsense_as_a_nut_server/
But they didn´t really find a solution...
But they didn´t really find a solution...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: paul_ on April 01, 2025, 07:32:13 PMQuote from: OPNenthu on April 01, 2025, 12:17:47 AMTry adding "pollonly=enabled" in USBHID-Driver settings as a first tweak. I remember reading somewhere that it helps with certain models, and this option can be set directly from the NUT plugin UI.
Some other suggestions I came across might require you to go into config files:
ups.conf: Add the global driver options to the top of the file: "pollinterval = 2" and "maxretry = 3". The former might be default but the latter defaults to 1 (at least in the Debian nut package). Might have to play with these.
upsmon.conf: Add "DEADTIME 25" (again might have to play with this, it should be a multiple of POLLFREQ) and try toggling "RUN_AS_USER root" by commenting/uncommenting it. The latter is mentioned in https://forum.netgate.com/topic/149032/must-the-ups-nut-daemon-be-run-as-root/3.
Sorry if these waste your time. I had initial instability connecting my CyberPower to a Raspberry Pi with usbhid (connection kept flapping), but a combination of these fixed it. I haven't taken the time to isolate.
With this in ups.conf it´s running now :-) - Thanks for your help![USV-Keller]
driver=usbhid-ups
pollonly=enabled
port=auto
Just one more thing where can I setup the user I can access NUT? I want to add it to Homeassistant now, but it asks for a user.
Thanks!
Quote from: OPNenthu on April 01, 2025, 12:17:47 AMTry adding "pollonly=enabled" in USBHID-Driver settings as a first tweak. I remember reading somewhere that it helps with certain models, and this option can be set directly from the NUT plugin UI.
Some other suggestions I came across might require you to go into config files:
ups.conf: Add the global driver options to the top of the file: "pollinterval = 2" and "maxretry = 3". The former might be default but the latter defaults to 1 (at least in the Debian nut package). Might have to play with these.
upsmon.conf: Add "DEADTIME 25" (again might have to play with this, it should be a multiple of POLLFREQ) and try toggling "RUN_AS_USER root" by commenting/uncommenting it. The latter is mentioned in https://forum.netgate.com/topic/149032/must-the-ups-nut-daemon-be-run-as-root/3.
Sorry if these waste your time. I had initial instability connecting my CyberPower to a Raspberry Pi with usbhid (connection kept flapping), but a combination of these fixed it. I haven't taken the time to isolate.
[USV-Keller]
driver=usbhid-ups
pollonly=enabled
port=auto
Quote from: iRobot on March 31, 2025, 08:33:44 PMCheck the usb-type, only one entry must be ticked.These are my settings, and I only ticked one, but it still doesn´t work. LAso with port auto it didn´t work.
Best regards
Stefan
Quote from: Patrick M. Hausen on March 31, 2025, 07:46:14 PMIf you configure it as standalone you can use it as a server for other clients.
Use a NAT port forwarding rule for port 3493 on the interface where you have clients, forward to 127.0.0.1. Works great.
Quote from: jata on February 04, 2025, 10:10:36 PMThanks for this info. I will give it a try and report back...
My understanding of what this can/should enable is a bit more flexibility around internal IP redirection so i can point *.rpi.mydns.duckdns.org to 192.168.1.3 and *.mpc.mydns.duckdns.org to 192.168.1.5 (for example)
I have adguard in my config so I think the setup for me is adguard (port 53) --> unbound (port 5335) --> BIND (port 8053)
Quote from: jata on February 03, 2025, 09:32:30 PMCan you explain a little more about exactly how/what you did using BIND please @paul_
I am not sure what to start...
Quote from: Patrick M. Hausen on February 03, 2025, 06:23:09 PMBIND? BIND definitely supports wildcard A records - I don't know if the OPNsense UI permits it, though.