Files
cunicu/pkg/pb/config.proto
Steffen Vogel df45ab1645 fix naming of WireGuard and wice
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-08-01 12:07:10 +02:00

28 lines
716 B
Protocol Buffer

syntax = "proto3";
package wice;
option go_package = "riasc.eu/wice/pkg/pb";
// WireGuard interface configuration
// See: https://pkg.go.dev/golang.zx2c4.com/wireguard/wgctrl/wgtypes#Config
message InterfaceConfig {
bytes private_key = 1;
uint32 listen_port = 2;
uint32 firewall_mark = 3;
bool replace_peers = 4;
repeated PeerConfig peers = 5;
}
// WireGuard peer configuration
// See: https://pkg.go.dev/golang.zx2c4.com/wireguard/wgctrl/wgtypes#PeerConfig
message PeerConfig {
bytes public_key = 1;
bool remove = 2;
bool update_only = 3;
bytes preshared_key = 4;
string endpoint = 5;
uint32 persistent_keepalive_interval = 6;
bool replace_allowed_ips = 7;
repeated string allowed_ips = 8;
}