VPN
- async OPNsenseClient.get_openvpn()
Return OpenVPN server and client status information.
- Returns:
- Mapping with
serversandclients keyed by UUID. Server entries combine instance, provider, session, route, tunnel-address, DNS, status, byte-counter, and connected-client data when available.
- Mapping with
- Return type:
MutableMapping[str, Any]
- async OPNsenseClient.get_wireguard()
Return WireGuard server and client status information.
- Returns:
- Mapping with
serversandclients keyed by UUID. Entries combine configured tunnel addresses, peer links, enabled state, interface names, handshake status, byte counters, and connected peer counts where available.
- Mapping with
- Return type:
MutableMapping[str, Any]
- async OPNsenseClient.toggle_vpn_instance(vpn_type, clients_servers, uuid)
Toggle the specified VPN instance on or off.
- Parameters:
- Returns:
True when the toggle operation completes successfully; otherwise, False.
- Return type: