wireguard-sub
- Erik Lönroth
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 3 | 07 Sep 2022 | |
latest/edge | 1 | 19 Aug 2022 |
juju deploy wireguard-sub
Deploy universal operators easily with Juju, the Universal Operator Lifecycle Manager.
Platform:
-
add-peer
Adds a peer and then restarts the wireguard service.
- Params
-
allowedips string
"A comma-separated list of IP (v4 or v6) addresses with CIDR masks from which incoming traffic for this peer is allowed and to which outgoing traffic for this peer is directed/routed. The catch-all 0.0.0.0/0 may be specified for matching all IPv4 addresses, and ::/0 may be specified for matching all IPv6 addresses. May be specified multiple times."
-
endpoint string
"An endpoint IP or hostname, followed by a colon, and then a port number. This endpoint will be updated automatically to the most recent source IP address and port of correctly authenticated packets from the peer."
-
peername string
"A common name added as a comment in the Peer configuration."
-
persistentkeepalive integer
"(Optional) A seconds interval, between 1 and 65535 inclusive, of how often to send an authenticated empty packet to the peer for the purpose of keeping a stateful firewall or NAT mapping valid persistently. For example, if the interface very rarely sends traffic, but it might at anytime receive traffic from a peer, and it is behind NAT, the interface might benefit from having a persistent keepalive interval of 25 seconds. If set to 0, this option is disabled. By default or when unspecified, this option is off. Most users will not need this."
-
presharedkey string
"(Optional) A base64 preshared key generated by wg genpsk. Optional, and may be omitted. This option adds an additional layer of symmetric-key cryptography to be mixed into the already existing public-key cryptography, for post-quantum resistance. Optional."
-
publickey string
PublicKey of the peer
- Required
publickey, allowedips
-
down
Stop and disable VPN
-
get-public-key
Returns the public key
-
remove-peer
Removes a peer and then restarts the wireguard service.
- Params
-
PublicKey string
public key of the peer to remove
- Required
publickey
-
show-peers
Show the peers active in the config.
-
up
Starts and enable VPN