Skip to content

support nftables and iptables in module/firewall #1717

Open
@toby-bro

Description

@toby-bro

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...

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions