Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureForwarding ¶
func ConfigureForwarding(options ForwardingOptions) error
func ServerVPNIPs ¶
ServerVPNIPs returns two netip.Prefix objects (for IPv4 + IPv6) with the Addr set to the server's IP addresses in these subnets, i.e. the first usable address The return values are the zero prefixes if the corresponding input is an empty string
func SplitAddresses ¶
SplitAddresses splits multiple comma-separated addresses into a slice of address strings
func StringJoinIPNets ¶
StringJoinIPNets joins the string representations of a and b using ", "
func StringJoinIPs ¶
StringJoinIPs joins the string representations of the IPs of a and b using ", "
Types ¶
type ForwardingOptions ¶ added in v0.7.0
type ForwardingOptions struct {
GatewayIface string
CIDR, CIDRv6 string
NAT44, NAT66 bool
ClientIsolation bool
AllowedIPs []string
DisableIPTables bool
// contains filtered or unexported fields
}
ForwardingOptions contains all options used for configuring the firewall rules
Click to show internal directories.
Click to hide internal directories.