flayer.profiles.amneziawg¶
flayer.profiles.amneziawg ¶
AmneziaWG 3.1 preparation with private keys and a pinned Ubuntu guest installer.
AMNEZIAWG_CAPABILITIES
module-attribute
¶
AMNEZIAWG_CAPABILITIES = VpnCapabilities('amneziawg', 'ip-tunnel', ('full', 'split'))
AMNEZIAWG_GO_REVISION
module-attribute
¶
AMNEZIAWG_GO_REVISION = 'b5928efb6ca19f0153958460c3d141f04abc5c2e'
AMNEZIAWG_TOOLS_REVISION
module-attribute
¶
AMNEZIAWG_TOOLS_REVISION = 'ee0f0a9aa34ff0a0da4b3433b9512781cfe02843'
GO_LINUX_AMD64_SHA256
module-attribute
¶
GO_LINUX_AMD64_SHA256 = 'ecbadb99091a3f46e31f5f934b068b1864eafa7995211b39eaddf76996045fe5'
AmneziaWgDeviceKey
dataclass
¶
AmneziaWgDeviceKey(device_id: str, private_key: str)
AmneziaWgSecrets
dataclass
¶
AmneziaWgSecrets(server_private_key: str, header_protection_key: str, device_private_keys: tuple[AmneziaWgDeviceKey, ...])
Private preparation input kept out of generic configuration, state, and repr.
header_protection_key
class-attribute
instance-attribute
¶
header_protection_key: str = field(repr=False)
device_private_keys
class-attribute
instance-attribute
¶
device_private_keys: tuple[AmneziaWgDeviceKey, ...] = field(repr=False)
AmneziaWgSettings
dataclass
¶
AmneziaWgSettings(tunnel_cidr: str = '10.66.0.0/24', mtu: int = 1280)
GenerateAmneziaWgSecrets ¶
GenerateAmneziaWgSecrets(profile: VpnProfile, previous: AmneziaWgSecrets | None = None, *, rotate_device_ids: tuple[str, ...] = ()) -> AmneziaWgSecrets
Keep unchanged credentials while explicitly adding, rotating, or removing devices.
Source code in installed/flayer/profiles/amneziawg.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | |
EncodeAmneziaWgSecrets ¶
EncodeAmneziaWgSecrets(secret_values: AmneziaWgSecrets) -> bytes
Serialize controller-only credentials for an owned private material bundle.
Source code in installed/flayer/profiles/amneziawg.py
187 188 189 190 191 192 193 194 195 | |
DecodeAmneziaWgSecrets ¶
DecodeAmneziaWgSecrets(content: bytes) -> AmneziaWgSecrets
Validate bounded private material without returning rejected bytes in errors.
Source code in installed/flayer/profiles/amneziawg.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 | |
AmneziaWgServiceName ¶
AmneziaWgServiceName(profile: VpnProfile) -> str
Derive a stable guest service name from complete stack ownership, not credentials.
Source code in installed/flayer/profiles/amneziawg.py
245 246 247 248 249 250 | |
PrepareAmneziaWg ¶
PrepareAmneziaWg(profile: VpnProfile, endpoint: VpnEndpoint, settings: AmneziaWgSettings, secret_values: AmneziaWgSecrets) -> PreparedVpnTransport
Produce deterministic private server/client artifacts without any external operation.
Source code in installed/flayer/profiles/amneziawg.py
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 | |