We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1bd3a commit c75d251Copy full SHA for c75d251
firewall/ufw.go
@@ -69,7 +69,7 @@ func removeUFWRule(ip string) error {
69
}
70
port, proto := parts[0], parts[1]
71
72
- cmd := fmt.Sprintf("sudo ufw delete proto %s from %s to any port %s", proto, ip, port)
+ cmd := fmt.Sprintf("sudo ufw delete allow proto %s from %s to any port %s", proto, ip, port)
73
output, err := utils.RunCommand(cmd)
74
if err != nil {
75
return fmt.Errorf("❌ failed to delete rule for port %s: %v\n%s", port, err, output)
0 commit comments