From 055ef5439549f36a8ff8ffddf5ef19ef89cb0dbd Mon Sep 17 00:00:00 2001 From: Abhishek Kondur Date: Mon, 6 Feb 2023 20:14:30 +0400 Subject: [PATCH] rm firewall check --- logic/gateway.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/logic/gateway.go b/logic/gateway.go index 6792fa7e..5e50311b 100644 --- a/logic/gateway.go +++ b/logic/gateway.go @@ -22,12 +22,9 @@ func CreateEgressGateway(gateway models.EgressGatewayRequest) (models.Node, erro if err != nil { return models.Node{}, err } - if host.OS != "linux" && host.OS != "freebsd" { // add in darwin later + if host.OS != "linux" { // support for other OS to be added return models.Node{}, errors.New(host.OS + " is unsupported for egress gateways") } - if host.OS == "linux" && host.FirewallInUse == models.FIREWALL_NONE { - return models.Node{}, errors.New("firewall is not supported for egress gateways") - } for i := len(gateway.Ranges) - 1; i >= 0; i-- { if gateway.Ranges[i] == "0.0.0.0/0" || gateway.Ranges[i] == "::/0" { logger.Log(0, "currently internet gateways are not supported", gateway.Ranges[i])