Skip to content

add OpenVpnAuthType, OpenVpnConfig, VpnType::OpenVpn #290

@cachebag

Description

@cachebag

part of #288. depends on the VpnConfig trait being merged first.

changes

add VpnType::OpenVpn variant (additive, non-breaking).

add OpenVpnAuthType enum:

#[non_exhaustive]
pub enum OpenVpnAuthType {
    Password,
    Tls,
    PasswordTls,
    StaticKey,
}

add OpenVpnConfig struct with fields for:

  • name, remote, port, tcp
  • auth_type
  • credentials: username, password
  • certs: ca_cert, client_cert, client_key, key_password
  • common: auth, cipher, dns, mtu, uuid

impl VpnConfig for OpenVpnConfig.

files

  • api/models/vpn.rs
  • lib.rs — re-exports

Metadata

Metadata

Assignees

Labels

featureNew feature or requestnmrsChanges to nmrsvpnChanges to VPN surface

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions