Hi Roger, here is a Diagramm of the Connections +----------------------------+ +----------------------------+ | Socomec UPS | |nut-server | | only capable of SNMP |-----------|Ubuntu Server 20.04 | | | |with upsd 2.7.4 | | | | | +----------------------------+ +----------------------------+ | | +-----------------------------+ | | | | | Firewall-1 with upsd 2.6.2 | | | without SNMP Support |----------------------+ | | +-----------------------------+ | | +-----------------------------+ | | | Firewall-2 with upsd 2.6.2 | | without SNMP Support | | | +-----------------------------+ My Problem is Firewall-2 can only reach Firewall-1. Firewall-1 can reach every Device. The Connection from Firewall-2 to Firewall-1 works via netcat. On Firewall-1 the nut-server is configured as Monitor and the shutdown works properly. I tried to configure this in the ups.conf on Firewall-1 [ups] driver = "nutclient" port = "netvision at nut-server" But on start of the upsd i get the Error Can't connect to UPS [ups] (nutclient-ups): No such file or directory Kind Regards Marco Hald Stadtverwaltung Crailsheim Ressort Digitales & Kommunikation Sachgebiet EDV Marktplatz 1 74564 Crailsheim Telefon +49 7951 403-1167 marco.hald at crailsheim.de www.crailsheim.de Von: "Roger Price" <roger at rogerprice.org> An: "nut-upsuser Mailing List" <nut-upsuser at lists.alioth.debian.org> Datum: 22.02.2021 16:13 Betreff: Re: [Nut-upsuser] Proxy upsmon Gesendet von: "Nut-upsuser" <nut-upsuser-bounces+marco.hald=crailsheim.de at alioth-lists.debian.net> On Mon, 22 Feb 2021, marco.hald at crailsheim.de wrote:> I have the following Scenario: > The Devices are connected as shown here > USV <-> nut-server <-> Firewall_1 <-> Firewall_2 > I have no Problem to get it working till Firewall_1. > The Problem is that Firewall_2 is not able to connect directly tonut-server.> I would like to setup upsd on the Firewall_1 to monitor the USV via thenut-server and then set the Firewall_2 to monitor the Firewall_1> Is this possible ?First, it would be good to get a clear understanding of your setup. Is this correct? ,--------------, ,--------------, ,-----, | upsd listens | <-Commands | upsmon | | UPS |---| on port 3493 |---------------| | | USV |===| | Responses-> | | /-----\ '--------------' '--------------' Firewall_1 Firewall_2>From machine Firewall_2 can you contact Firewall_1 on port 3493, forexample netcat Firewall_1 3493 HELP Commands: HELP VER GET LIST SET INSTCMD LOGIN LOGOUT USERNAME PASSWORD STARTTLS ^C Roger_______________________________________________ Nut-upsuser mailing list Nut-upsuser at alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20210223/9f57ddd5/attachment-0001.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11517 bytes Desc: not available URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20210223/9f57ddd5/attachment-0001.gif>
On Tue, 23 Feb 2021, marco.hald at crailsheim.de wrote:> here is a Diagramm of the Connections > Machine "S" > +----------------------------+ ? ? ? ? ? +--------------------+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > | ?Socomec UPS ? ? ? ? ? ? ? | ? ? ? ? ? |nut-server ? ? ? ? ?| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > | ?only capable of SNMP ? ? ?|-----------|Ubuntu Server 20.04 | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > | ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ? ? ? ? |with upsd 2.7.4 ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > +----------------------------+ ? ? ? ? ? +--------------------+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? > +-----------------------------+ ? ? ? ? ? ? ? ? ? ? ?| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > | ?Firewall-1 with upsd 2.6.2 | ? Network A ? ? ? ? ?| ? ? ? ? ? ? ? > | ?without SNMP Support ? ? ? |----------------------+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > +-----------------------------+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? | Network B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Hello Marco, Here in Firewall_1 you are running upsd only? Isn't it upsmon that you should be running?> ? ? ? ? ? ? | Network B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > +-----------------------------+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > | ?Firewall-2 with upsd 2.6.2 | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > | ?without SNMP Support ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > +-----------------------------+ ? ? ?In Firewall_2 you need upsmon to be able to talk to "nut-server" machine S> My Problem is Firewall-2 can only reach Firewall-1.I guess that Firewall_1 is supporting two networks, A and B, and that you cannot get from a machine on network B to machine S on network A. Is this correct? Do the firewall logs record any rejected traffic?> Firewall-1 can reach every Device. > On Firewall-1 the nut-server is configured as Monitor and the shutdown works properly.When you say "nut-server" one thinks of upsd, not upsmon. I guess you mean "nut-client".> The Connection from Firewall-2 to Firewall-1 works via netcat.But does netcat "nut-server" 3493 work on machine Firewall_2 ? Roger
Sorry, the ascii art was mangled. I'll try again. On Tue, 23 Feb 2021, marco.hald at crailsheim.de wrote:> here is a Diagramm of the Connections > Machine "S" > +---------------------------+ +--------------------+ > | Socomec UPS | |nut-server | > | only capable of SNMP |------|Ubuntu Server 20.04 | > | | |with upsd 2.7.4 | > +---------------------------+ +--------------------+ > | > +----------------------------+ | > | Firewall-1 with upsd 2.6.2 | Network A | > | without SNMP Support |--------------+ > +----------------------------+ > | Network BHello Marco, Here in Firewall_1 you are running upsd only? Isn't it upsmon that you should be running?> | Network B > +----------------------------+ > | Firewall-2 with upsd 2.6.2 | > | without SNMP Support | > +----------------------------+In Firewall_2 you need upsmon to be able to talk to "nut-server" machine S.> My Problem is Firewall-2 can only reach Firewall-1.I guess that Firewall_1 is supporting two networks, A and B, and that you cannot get from a machine Firewall_2 on network B to machine S on network A. Is this correct? Do the firewall logs record any rejected traffic?> Firewall-1 can reach every Device. > On Firewall-1 the nut-server is configured as Monitor and the shutdown works properly.When you say "nut-server" one thinks of upsd, not upsmon. I guess you mean "nut-client".> The Connection from Firewall-2 to Firewall-1 works via netcat.But does netcat S 3493 work on machine Firewall_2 ? Roger