Add default firewall rules and fix tests in the github flow.

This commit is contained in:
Givi Khojanashvili
2023-03-23 16:54:04 +04:00
parent 9eb5de6d62
commit 4c56578b0c
7 changed files with 111 additions and 38 deletions
+4 -9
View File
@@ -1,3 +1,5 @@
//go:build !linux
package internal
import (
@@ -5,15 +7,8 @@ import (
"runtime"
"github.com/netbirdio/netbird/client/firewall"
"github.com/netbirdio/netbird/client/firewall/iptables"
)
func buildFirewallManager() (fw firewall.Manager, err error) {
switch runtime.GOOS {
case "linux":
return iptables.Create()
default:
return nil, fmt.Errorf("not implemented for this OS: %s", runtime.GOOS)
}
func buildFirewallManager(wgIfaceName string) (fw firewall.Manager, err error) {
return nil, fmt.Errorf("not implemented for this OS: %s", runtime.GOOS)
}