From b3f5d4e8f8ff3a26fa24715cb4dbf9f8a4f3a68e Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Wed, 30 Sep 2026 13:53:17 +0100 Subject: [PATCH] Update AmneziaWG obfuscation parameters for v1.0.2 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/vpn.rs | 46 ++++++++++++++++++++++------------------------ 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 18e0f88..643ddd6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -61,7 +61,7 @@ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "amnezia-fellow" -version = "1.0.1" +version = "1.0.2" dependencies = [ "async-trait", "base64 0.22.1", diff --git a/Cargo.toml b/Cargo.toml index 5a80905..e6b3463 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "amnezia-fellow" -version = "1.0.1" +version = "1.0.2" edition = "2024" description = "Amnezia VPN client manager with SSO, SQLite/PostgreSQL, and Kubernetes Secret sync" diff --git a/src/vpn.rs b/src/vpn.rs index 5250502..36ea2f4 100644 --- a/src/vpn.rs +++ b/src/vpn.rs @@ -320,18 +320,17 @@ pub fn render_client_config( Address = {}/32\n\ DNS = {}\n\ MTU = {}\n\ - Jc = 4\n\ - Jmin = 64\n\ - Jmax = 128\n\ - S1 = 15\n\ - S2 = 18\n\ - S3 = 20\n\ - S4 = 23\n\ - H1 = 1020325451\n\ - H2 = 3288052141\n\ - H3 = 1766607858\n\ - H4 = 2528465083\n\ - I1 = \n\ + Jc = 5\n\ + Jmin = 96\n\ + Jmax = 320\n\ + S1 = 37\n\ + S2 = 47\n\ + S3 = 29\n\ + S4 = 43\n\ + H1 = 1247270921\n\ + H2 = 1956534873\n\ + H3 = 886504771\n\ + H4 = 1623791047\n\ \n\ [Peer]\n\ PublicKey = {}\n\ @@ -374,18 +373,17 @@ pub fn render_vpn_payload( "mtu": config.vpn_mtu.to_string(), "persistent_keep_alive": "25", "allowed_ips": ["0.0.0.0/0", "::/0"], - "Jc": "4", - "Jmin": "64", - "Jmax": "128", - "S1": "15", - "S2": "18", - "S3": "20", - "S4": "23", - "H1": "1020325451", - "H2": "3288052141", - "H3": "1766607858", - "H4": "2528465083", - "I1": "", + "Jc": "5", + "Jmin": "96", + "Jmax": "320", + "S1": "37", + "S2": "47", + "S3": "29", + "S4": "43", + "H1": "1247270921", + "H2": "1956534873", + "H3": "886504771", + "H4": "1623791047", }); let server = serde_json::json!({