Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOverrides ¶
type IPAddr ¶
func (*IPAddr) UnmarshalText ¶
type IPNet ¶
func (*IPNet) UnmarshalText ¶
type Server ¶
type Server struct { MasterLink linkmgr.Link // Whether the ConfLink was created on startup and hence should be removed // afterwards. DelMasterLink bool Cfg SrvConfig // List of tunnel interfaces configured for clients. Tunnels []linkmgr.Link // List of newly created tunnel interface. These should be deleted on shutdown. NewTunnels []linkmgr.Link ClientCfgs map[wgtypes.Key]ClientCfg SolictConns []*net.UDPConn // contains filtered or unexported fields }
type SrvConfig ¶
type SrvConfig struct { If string `toml:"if"` PtMP bool `toml:"ptmp"` Subnet4 IPNet `toml:"subnet4"` Subnet6 IPNet `toml:"subnet6"` PrivateKey wirebox.PeerKey `toml:"private-key"` Server4 IPAddr `toml:"server4"` Server6 IPAddr `toml:"server6"` TunEndpoint4 IPAddr `toml:"advertised-endpoint4"` TunEndpoint6 IPAddr `toml:"advertised-endpoint6"` PortLow int `toml:"port-low"` PortHigh int `toml:"port-high"` // Network configuration for dynamically configured clients. Pool6 IPNet `toml:"pool6"` Pool6Offset uint64 `toml:"pool6-offset"` Pool4 IPNet `toml:"pool4"` Pool4Offset uint64 `toml:"pool4-offset"` ClientRoutes []Route `toml:"client-routes"` AuthFile string `toml:"authorized-keys"` // Overrides for static configuration. Clients map[string]ClientOverrides `toml:"clients"` }
Click to show internal directories.
Click to hide internal directories.