Add nftables support.

This commit is contained in:
cameronts
2022-08-01 11:12:25 -07:00
parent c702afb329
commit 81c896b22a
2 changed files with 61 additions and 19 deletions

View File

@@ -19,6 +19,11 @@ import (
"github.com/gravitl/netmaker/netclient/ncutils"
)
// nfTablesPresent - returns true if nftables is present, false otherwise
func IsNFTablesPresent() bool {
return FileExists("/etc/nftables.conf")
}
// IsBase64 - checks if a string is in base64 format
// This is used to validate public keys (make sure they're base64 encoded like all public keys should be).
func IsBase64(s string) bool {