-
Notifications
You must be signed in to change notification settings - Fork 818
Closed
Description
What should it do?
It would really be nice if the firewall could check if iptables or nftables are running so as not to only rely on ufw. Maybe with a systemctl status
if systemctl
is present on the os...
wtf/modules/security/firewall.go
Lines 45 to 50 in 6a02b97
func firewallStateLinux() string { // might be very Ubuntu specific | |
user, _ := user.Current() | |
if strings.Contains(user.Username, "root") { | |
cmd := exec.Command("ufw", "status") | |
I am not sure of how general to make this for distros without sysctemctl or service...
Metadata
Metadata
Assignees
Labels
No labels
Activity