scripts

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const INTERFACE_CONFIG string = "%s/%s/%s.conf" // Root wireguard, interface name, interface name
View Source
const INTERFACE_NAME string = "wg%d"
View Source
const WG_MAIN_DIR = "/etc/wireguard"

Variables

This section is empty.

Functions

func ChooseExistingClient

func ChooseExistingClient(interfaceDir string, interfaceName string) string

func ChooseExistingInterface

func ChooseExistingInterface() (string, string)

func DisableServer

func DisableServer(interfaceName string, wgMainDir string)

func EnableServer

func EnableServer(interfaceName string, wgMainDir string)

func EnsureWireguardInstalled

func EnsureWireguardInstalled()

func GenerateConfigQRCode

func GenerateConfigQRCode(configFilePath string)

func GenerateKeyPair

func GenerateKeyPair(prefix string) models.Creds

func GetClientConfig

func GetClientConfig()

func InstallWireguard

func InstallWireguard()

func ListInterfacesFromDir

func ListInterfacesFromDir(dir string) []fs.DirEntry

func OnboardNewClient

func OnboardNewClient()

func PasteConfigFileData

func PasteConfigFileData(configFilePath string)

func SetupWireguardServer

func SetupWireguardServer()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL