-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup WinNUT Client on Win 10 with synology #47
Comments
When I was setting up the original NUT software to talk to a Synology host, I found out that Synology uses a hardcoded username/password to connect to their NUT software. In /etc/syno/etc/ups/ups.users, the username is monuser and password is secret. Although when I just tried this with WinNUT, it did not indicate a successful or failed connection, so I think it may be silently failing somewhere. |
I always setup my NUT server (with the UPS connected to it) on a Linux machine and then I setup each clients. |
Update for @witzker: I was able to get this working with my Synology device. On your Diskstation web page, go to Control Panel, Hardware & Power, then click on the UPS tab. Make sure Enable UPS server is checked, then click the Permitted DiskStation devices button. Type in the IP address for your computer running WinNUT. You might need to put in both IPv4 and IPv6 addresses, I'm not clear on which one is preferred. After you've done that, click OK and then Apply. Now open the Options for WinNUT. Type in the hostname or IP for your diskstation in NUT host. Port can be left at 3493, and UPS Name left at UPSName. For login, type Please let us know if you have any issues with this. |
@tgp1994 |
Sure! Here's the first part:
Finaly step, in WinNUT:
|
I've just recently set up my UPS (APC Back-UPS Pro) to secure my Diskstations. I've set up UPS monitoring with automated shutdown (to safe mode) in my DS220+ as a server and DS213+ as a client. Now I was looking for a way to include my PCs into this and found this project. Great - love it !! Actually it took my only one hour to set everything up including configuring Windows NUT client. After some trial & error I did some research and found that only ups works as a parameter for the UPS Name |
You're right - I don't know why I didn't figure it out before, but I had the ups name wrong the whole time until recently. I'll need to redo the screenshots... |
I'm trying to get WinNUT 2.0.7722.30975 working with my Synology DS1019+, and I'm having issues getting WinNUT to talk to the NAS. I'm hoping some of you guys might be able to help. As you can see here, I've got the UPS attached to the NAS: I've got my PC's IP included in the list of permitted devices: I've verified my PC's local IP both in my router's device list table, as well as in my Windows networking settings. I've plugged everything in WinNUT as best I can: Here, I've tried both When I try to list UPS variables, I get this error:
Does anyone have any ideas? The firewall on the NAS is completely disabled, so it shouldn't be that. Any help is appreciated! |
Try With « Polling interval » >=1 in your options. |
Ok, that's hilarious; that worked immediately! I should've tried tweaking that setting! Thank you! |
One more minor question: I thought I could put a hostname in the
Is this expected behavior? |
Just want to chime in here: I was having issues connecting to my Synology just like you, and the reason seemed to be because I was using an IPv4/v6 combined LAN and the allowed hosts list is very strict about what address you put in. So if I put the hostname in, it resolves to the IPv6 address when I had only put my v4 address in the allowed hosts list. To work around this, you'll want to make sure you have both IPv4 and v6 addresses in the allowed hosts list, or enter the IPv4 address when you connect. As a note to us developing WinNUT, perhaps we can attempt connection over both addresses if we detect a Synology host or get access denied the first time? |
Well seen for the IPV4 / 6 combo. @gbakeman, For your suggestion, it would have to be studied but on this blow I could not certainly not develop it alone, I will need one or more beta testers who have a synology. It will be seen for v2.1 when it starts to be sufficiently developed. |
Nice to note. I just put my local IPv6 address in the list of permitted devices: But this still doesn't seem to enable me to connect using the NAS' hostname. WinNUT still yields this error:
It still only works if I provide the IPv4 address. I tried providing the NAS' IPv6 address in the @gawindx, I'm happy to help test. |
Just to double check, are you clicking "Ok" and "Apply" after that? I was only doing one, and that caught me up! Edit: To confirm, you're adding the IP of your computer running WinNUT and not the NAS, correct? |
Yes, correct on both accounts. The 2 IPs in that screenshot are of my PC running WinNUT, and I did apply those settings. |
I say maybe a stupidity but there is no limit of the number of connections? a session lifetime? Normally Winnut forces a clean logout but can synology keep an active session for a while? |
I just double checked on my end, and I think I may have misremembered what I did! I was just now able to authenticate with an IPv6 connection. I admit I still don't understand how IPv6 works, but for some reason my PC has multiple IPv6 addresses. I opened a connection with a terminal (KiTTY), then opened a network monitor (Process Hacker) and found the exact local endpoint it was using. It ended up being a different address than I thought. I added that to the list of authorized clients, and I can connect now. Lesson learned here: I guess you either need to figure out exactly which IPv6 address the application is using on your PC to establish the connection, add every IPv6 address assigned to your PC to the authorized clients list, disable IPv6 wholesale on your diskstation, or explicitly use IPv4 when connecting. |
Good question. I can't imagine there is a session limit that's impacting us (i.e., if there is a limit, I'd sure hope it's greater than 2!). |
Ah, your comment really helped! After digging around, for reasons I don't understand yet, I see the same thing. Here's a screenshot of my network adapter properties: Of particular note is that temporary IPv6 address, which is different than the (non-temporary?) IPv6 address listed above it. I thought to check my Synology logs to see what IP Synology's logs are capturing, and I see this: So what Synology is seeing is my temporary IPv6 address, not the other one. When I pasted that IPv6 address into the list of IPs that are permitted to access the NUT service, all of a sudden I can specify the The fact that my NAS is only seeing the temporary IPv6 is concerning because if I'm supposed to rely on a whitelist in the Synology UI and that IPv6 address is changing with some regularity, then that'll mean that the whitelist is functionally useless. My takeaway here is to stick with IPv4 addresses in the Synology UI as well as WinNUT preferences. It would be really neat if WinNUT tried connecting to both IPv4 and IPv6 addresses when a hostname is provided (since that's one less static IP that needs to be tracked), but I can use the IPv4 address until that gets implemented. |
Hi Guys, When trying to connect I get the following Error message: [Id 19: 01/04/2021 19:13:17] Connection to Nut Host nutserver host:3493 Failed: Connection Error Does anyone have any ides what to try next? I'm not using IPv6 at all so when I use config/all I only have IPv4 addresses shown for the PC. Thanx for any help. |
Did you authorize your ip in the nas config? |
Yes I did specify my computer IPv4 in the Synalogy Permitted discstation settings and I can see the ups information in the Nas ups device information. |
Can you try using |
Thank you for the suggestion, Yes I had already tried monuser but still the same result. |
Can you provide the full logs from WinNUT when it tries to connect? |
Here is the Debug log: 01/04/2021 20:32:23 Pid: 14020 WinNUT : Windows standby, WinNUT will disconnect |
Ok. It looks like we need to make the error messages more clear. :) Just to be sure, when you added your computer's IP address to the authorized devices, did you hit OK then Apply after? I forgot to click Apply one time! If you did that, then it may be worth rebooting your Synology since that has also cleared out some strange NUT server bugs for me. |
Here is the log after changing the user name to monuser: 01/04/2021 20:51:24 Pid: 14020 WinNUT : Open Pref Gui From Menu |
i also have problems with connecting the latest winNUT client with synology(updated), i keep getting acces denied. i tried everything on this page, put ipv6 in front of the ipv4 addresses, i clicked apply ;) checked the credentials with ssh. i even made a rule in synology to allow port 3493 here are the debug logs: |
@Gerbildral Could you post screenshots of:
|
The address of your host is 10.234.1.101, you need to modify that in Diskstation, click OK then Apply. If you still can't connect, try disabling IPv6 on your adapter. |
huh Thats strange i gave my laptop a static ip of 10.234.10.101, but either way it works now. little dumb of me :) |
Thanks for this - the lowcase 'ups' as the ups name got me. The exact combination you described works for me. |
Hi, Indeed for me, winnut works with this parameters : Thanks for this utiliy 😊 |
Try changing your polling interval to 1, login to upsmon and password secret |
Thank you for your reply. |
Thank you so much @gbakeman for all the help. I've just got my WinNUT connected to my APC Backup-UPS 650MI via my Synology DS218+ NAS. |
Just a reminder to everyone to please follow the continuation of WinNUT at https://github.com/nutdotnet/WinNUT-Client. We've had several pre-releases with may bug fixes. |
@witzker Please see my above comment. This repository is no longer under development, and it's moved to the new repository linked above. Please see there for updated WinNUT versions and more info. |
And delay 5000
вт, 11 июл. 2023 г., 19:19 Witzker ***@***.***>:
… So next try on Synology 1522+ running
[image: image]
<https://user-images.githubusercontent.com/4120266/252726618-a0bd572b-0bf1-463c-8d32-b33cb4314f43.png>
on Windows 10 latest update 11.07.23
Version:
[image: image]
<https://user-images.githubusercontent.com/4120266/252726860-78be3f9f-2bcb-46ef-822a-b3b061916219.png>
Settings:
[image: image]
<https://user-images.githubusercontent.com/4120266/252727018-98b9faef-9c73-469c-8d1c-9a532ce4eca5.png>
Without PW - if I put their "secret" Connection failed!
Connected but no Data!
[image: image]
<https://user-images.githubusercontent.com/4120266/252727481-df86184b-5904-4ea9-a42e-1df1f07738a0.png>
What have I done wrong?
—
Reply to this email directly, view it on GitHub
<#47 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2JMMNGPAJPM5OD3IRA2563XPV4KLANCNFSM4UUQVWLQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@witzker The new repository is at https://github.com/nutdotnet/WinNUT-Client. There you can find newer versions of WinNUT as well as more discussion if there are any issues. Please consider closing this issue so other people know to find to the new repository. Thank you! |
OK THX but now I found this: Here, as reported above: https://github.com/nutdotnet/WinNUT-Client Can someone explain the difference, pls. |
Network UPS Tools (NUT for short) is the system that interacts with the UPS and provides the server that WinNUT connects to. WinNUT versions and NUT versions are totally separate and have nothing to do with each other. Hope that clears things up. 😊 |
Ok Got it! |
You're very welcome, I hope that WinNUT continues to be useful for you. And please do consider closing this issue - I truly believe at this point that that will help future users find the right repository. |
Many THX here! Now closed here |
Hi all, so after the PC is turned OFF, how do you turn it ON after the power is back? |
Hi all, This repository is no longer active, and work has moved to the NUTDotNet project. Please make sure you are running the latest version of WinNUT, then go here to create further discussions. |
Thanks for pointing at that. Just for the records, my issue above was solved as soon as I installed latest version. |
I put in the NUT Host IP
As port for Synology 3493
Smart-UPS C 1500 as shown in Synology Host
username and PW for Synology Admin
When I click connect nothing happens.
Pls Help
The text was updated successfully, but these errors were encountered: