interface WGQuickInterface

Interface configuration for WireGuard wg-quick.

Properties

optional
ListenPort: number

The port to listen on for incoming connections

optional
PrivateKey: string

The private key for this interface

optional
Address: string[]

Array of IP addresses to assign to this interface

optional
MTU: number

Maximum Transmission Unit size

optional
DNS: string[]

Array of DNS server addresses

optional
Table: string

Routing table to use

optional
PreUp: string[]

Commands to run before bringing up the interface

optional
PreDown: string[]

Commands to run before bringing down the interface

optional
PostUp: string[]

Commands to run after bringing up the interface

optional
PostDown: string[]

Commands to run after bringing down the interface

optional
SaveConfig: boolean

Whether to save the configuration

Usage

import { type WGQuickInterface } from ".";