mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
19 lines
430 B
Go
19 lines
430 B
Go
package main
|
|
|
|
import (
|
|
"github.com/safing/portmaster/firewall/interception"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var recoverIPTablesCmd = &cobra.Command{
|
|
Use: "recover-iptables",
|
|
Short: "Removes obsolete IP tables rules in case of an unclean shutdown",
|
|
RunE: func(*cobra.Command, []string) error {
|
|
return interception.DeactivateNfqueueFirewall()
|
|
},
|
|
SilenceUsage: true,
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(recoverIPTablesCmd)
|
|
}
|