NM.DeviceWireGuard¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.DeviceWireGuard(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
New in version 1.14.
- get_fwmark()¶
- Returns:
0 if fwmark not in use, 32-bit fwmark value otherwise
- Return type:
Gets the fwmark (firewall mark) for this interface. It can be used to set routing policy for outgoing encrypted packets. See: ip-rule(8)
New in version 1.14.
- get_listen_port()¶
- Returns:
UDP listen port
- Return type:
Gets the local UDP port this interface listens on
New in version 1.14.
- get_public_key()¶
- Returns:
the
GLib.Bytes
containing the 32-byte public key- Return type:
Gets the public key for this interface
New in version 1.14.
Property Details¶
- NM.DeviceWireGuard.props.fwmark¶
-
Optional firewall mark - see ip-rule(8). Used when setting routing policy for outgoing encrypted packets. Set to 0 to disable the mark (default).
New in version 1.14.
- NM.DeviceWireGuard.props.listen_port¶
-
Local UDP listen port. Set to 0 to allow a random port to be chosen (default).
New in version 1.14.
- NM.DeviceWireGuard.props.public_key¶
- Name:
public-key
- Type:
- Default Value:
- Flags:
32-byte public key, derived from the current private key.
New in version 1.14.