Skip to content

Commit

Permalink
Fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
nexryai committed Sep 23, 2023
1 parent abef61e commit 00fc402
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ func applyNftablesRules(configFilePath string) {
}

func flushNftablesRules() {
// FIXME: これやると何故かsshに繋がらなくなることがあるっぽい
core.ExecCommand("nft", []string{"flush", "ruleset"})
core.ExecCommand("nft", []string{"flush", "table", "inet", "lance"})
}

func writeRulesFromConfig(config *core.Config) bool {
Expand Down Expand Up @@ -124,7 +123,7 @@ func main() {
} else if operation == "disable" {

// 設定をアンロードする
core.ExecCommand("nft", []string{"flush", "table", "inet", "lance"})
flushNftablesRules()
core.MsgInfo("LanceLight firewall is disabled.")

} else if operation == "report" {
Expand Down

0 comments on commit 00fc402

Please sign in to comment.