02.12.2015 Views

Network UPS Tools User Manual

Network UPS Tools User Manual

Network UPS Tools User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Network</strong> <strong>UPS</strong> <strong>Tools</strong> <strong>User</strong> <strong>Manual</strong> 39 / 84<br />

LISTEN 127.0.0.1<br />

LISTEN 192.168.50.1<br />

LISTEN ::1<br />

LISTEN 2001:0db8:1234:08d3:1319:8a2e:0370:7344<br />

This parameter will only be read at startup. You’ll need to restart (rather than reload) upsd to apply any changes made here.<br />

9.4.2 Firewall<br />

NUT has its own official IANA port: 3493/tcp.<br />

The upsmon process on slave systems, as well as any other NUT client (such as upsc, upscmd, upsrw, NUT-Monitor, . . . )<br />

connects to the upsd process on the master system via this TCP port. The upsd process does not connect out.<br />

You should use this to restrict network access.<br />

Uncomplicated Firewall (UFW) support<br />

NUT can tightly integrate with Uncomplicated Firewall using the provided profile (nut.ufw.profile).<br />

You must first install the profile on your system:<br />

$ cp nut.ufw.profile /etc/ufw/applications.d/<br />

To enable outside access to your local upsd, use:<br />

$ ufw allow NUT<br />

To restrict access to the network 192.168.X.Y, use:<br />

$ ufw allow from 192.168.0.0/16 to any app NUT<br />

You can also use graphical frontends, such as gui-ufw (gufw), ufw-kde or ufw-frontends.<br />

For more information, refer to:<br />

• UFW homepage,<br />

• UFW project page,<br />

• UFW wiki,<br />

• UFW manual page, section APPLICATION INTEGRATION<br />

9.4.3 TCP Wrappers<br />

If the server is build with tcp-wrappers support enabled, it will check if the NUT username is allowed to connect from the client<br />

address through the /etc/hosts.allow and /etc/hosts.deny files.<br />

Note<br />

this will only be done for commands that require the user to be logged into the server.<br />

hosts.allow:<br />

ups : admin@127.0.0.1/32<br />

ups : monslave@127.0.0.1/32 monslave@192.168.1.0/24<br />

hosts.deny:<br />

upsd : ALL<br />

Further details are described in hosts_access(5).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!