mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 09:22:42 +08:00
add check to create egress as well
This commit is contained in:
@@ -47,6 +47,10 @@ func CreateEgressGateway(gateway models.EgressGatewayRequest) (models.Node, erro
|
|||||||
postUpCmd := ""
|
postUpCmd := ""
|
||||||
postDownCmd := ""
|
postDownCmd := ""
|
||||||
ipv4, ipv6 := getNetworkProtocols(gateway.Ranges)
|
ipv4, ipv6 := getNetworkProtocols(gateway.Ranges)
|
||||||
|
//no support for ipv6 and ip6tables in netmaker container
|
||||||
|
if node.IsServer == "yes" {
|
||||||
|
ipv6 = false
|
||||||
|
}
|
||||||
logger.Log(3, "creating egress gateway firewall in use is '", node.FirewallInUse, "'")
|
logger.Log(3, "creating egress gateway firewall in use is '", node.FirewallInUse, "'")
|
||||||
if node.OS == "linux" {
|
if node.OS == "linux" {
|
||||||
switch node.FirewallInUse {
|
switch node.FirewallInUse {
|
||||||
|
Reference in New Issue
Block a user