Allow to set firewall log level

This commit is contained in:
Viktor Liu
2025-01-03 16:02:33 +01:00
parent 3ce39905c6
commit f26b418e83
7 changed files with 34 additions and 0 deletions

View File

@@ -215,6 +215,11 @@ func (m *Manager) AllowNetbird() error {
// Flush doesn't need to be implemented for this manager
func (m *Manager) Flush() error { return nil }
// SetLogLevel sets the log level for the firewall manager
func (m *Manager) SetLogLevel(log.Level) {
// not supported
}
func getConntrackEstablished() []string {
return []string{"-m", "conntrack", "--ctstate", "RELATED,ESTABLISHED", "-j", "ACCEPT"}
}