Security

security screenshot

Displays some general information about the state of the machine’s wifi connection, firewall, DNS settings, and logged-in users.

Wifi Network

Firewall

DNS

Users

Configuration

security:
  enabled: true
  position:
    top: 1
    left: 2
    height: 1
    width: 1
  refreshInterval: 3600
Name Description Value
border Optional Whether or not to draw this widget with a border. Default: true. true, false
enabled Optional Whether or not this module is executed and if its data displayed onscreen. Default: false. true, false
position Defines where in the grid this module’s widget will be displayed.
refreshInterval Optional How often, in seconds, this module will update its data. Default: 300. Any positive integer.

For Linux Firewall Users

For most Linux distributions, to get the correct firewall settings by default, the program needs to be run as root. This is obviously a bad idea. Here’s is one potetial solution:

sudo visudo -f /etc/sudoers.d/ufwstatus

# Then add the following to that file:

# We need to add the "full" command as alias:
Cmnd_Alias      UFWSTATUS = /usr/sbin/ufw status

# Group privilege specification
%ufwstatus      ALL=NOPASSWD: UFWSTATUS

Now run:

# Add new group: "ufwstatus"
sudo groupadd -r ufwstatus

# Add the username (here "xxxx") to the "ufwstatus" group
sudo gpasswd --add xxxx ufwstatus

# We add all "root" user sbin paths for convenience
export PATH=${PATH}:/usr/local/sbin:/usr/sbin:/sbin

Thanks to @E3V3A for Security Widget gives wrong firewall info for non-root linux users which described the original issue and solution.

Source Code

wtf/modules/security/