Documentation ¶
Index ¶
- func AddPeer(public wgtypes.Key, username string) (string, error)
- func Deauthenticate(address string) error
- func GetAllAuthorised() ([]string, error)
- func GetBPFHash() string
- func GetPeerRealIp(address string) (string, error)
- func GetRules() (map[string]FirewallRules, error)
- func GetTimeStamp() uint64
- func IsAuthed(address string) bool
- func Pin() error
- func RefreshConfiguration() []error
- func RemovePeer(internalAddress string) error
- func ServerDetails() (key wgtypes.Key, port int, err error)
- func SetAuthorized(internalAddress string) error
- func Setup(error chan<- error, iptables bool) (err error)
- func TearDown()
- func Unpin() error
- type FirewallRules
- type IfAddrmsg
- type IfInfomsg
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deauthenticate ¶
func GetAllAuthorised ¶
func GetBPFHash ¶ added in v1.4.1
func GetBPFHash() string
func GetPeerRealIp ¶
func GetRules ¶
func GetRules() (map[string]FirewallRules, error)
func GetTimeStamp ¶
func GetTimeStamp() uint64
func RefreshConfiguration ¶
func RefreshConfiguration() []error
func RemovePeer ¶
Remove a wireguard peer from database and wg device
func SetAuthorized ¶
Types ¶
type FirewallRules ¶ added in v1.4.1
Click to show internal directories.
Click to hide internal directories.