[client] Enable userspace forwarder conditionally (#3309)

* Enable userspace forwarder conditionally

* Move disable/enable logic
This commit is contained in:
Viktor Liu
2025-02-12 11:10:49 +01:00
committed by GitHub
parent 18f84f0df5
commit b41de7fcd1
7 changed files with 145 additions and 54 deletions

View File

@ -218,6 +218,14 @@ func (m *Manager) SetLogLevel(log.Level) {
// not supported
}
func (m *Manager) EnableRouting() error {
return nil
}
func (m *Manager) DisableRouting() error {
return nil
}
func getConntrackEstablished() []string {
return []string{"-m", "conntrack", "--ctstate", "RELATED,ESTABLISHED", "-j", "ACCEPT"}
}