feat(settings): prevent public firewall outbound subnets

This commit is contained in:
Quentin McGaw
2024-01-29 18:26:23 +00:00
parent d8b9b2a85b
commit 6b9c775055
3 changed files with 84 additions and 1 deletions

View File

@@ -7,7 +7,8 @@ var (
ErrControlServerPrivilegedPort = errors.New("cannot use privileged port without running as root")
ErrCountryNotValid = errors.New("the country specified is not valid")
ErrFilepathMissing = errors.New("filepath is missing")
ErrFirewallZeroPort = errors.New("cannot have a zero port to block")
ErrFirewallZeroPort = errors.New("cannot have a zero port")
ErrFirewallPublicOutboundSubnet = errors.New("outbound subnet is public")
ErrHostnameNotValid = errors.New("the hostname specified is not valid")
ErrISPNotValid = errors.New("the ISP specified is not valid")
ErrMinRatioNotValid = errors.New("minimum ratio is not valid")