إعدادات WireGuard

يدعم Chute WireGuard كبروتوكول بروكسي صادر. يمكنك إما تكوين WireGuard مضمن في القسم [Proxy]، أو تعريف قسم [WireGuard] مسمى والإشارة إليه.

قسم WireGuard

يعرف قسم [WireGuard] تكوين نفق WireGuard كامل يمكن الإشارة إليه بالاسم من سياسة بروكسي WireGuard.

[WireGuard wg0]
private-key = base64_private_key
peer-public-key = base64_peer_public_key
self-ip = 10.0.0.2
self-ipv6 = fd00::2
preshared-key = base64_preshared_key
server = example.com
port = 51820
mtu = 1420
keepalive = 25
dns = 1.1.1.1

المعاملات

المفتاح مطلوب الوصف
private-key نعم مفتاح WireGuard الخاص، مشفر بـ base64
peer-public-key نعم مفتاح النظير العام، مشفر بـ base64
self-ip لا عنوان IPv4 المحلي لواجهة WireGuard
self-ipv6 لا عنوان IPv6 المحلي لواجهة WireGuard
preshared-key لا مفتاح مشترك مسبقاً لمقاومة ما بعد الكم
server لا عنوان الخادم البعيد (يتجاوز سياسة البروكسي)
port لا منفذ الخادم البعيد
mtu لا MTU لواجهة WireGuard (الافتراضي: 1420)
keepalive لا فاصل keepalive المستمر بالثواني
dns لا خادم DNS لنفق WireGuard
reserved-bits لا بتات محجوزة لمصافحة WireGuard

الاستخدام

الإشارة إلى القسم من سياسة بروكسي:

[Proxy]
WG = wireguard, section-name=wg0

[Proxy Group]
WGGroup = select, WG

[Rule]
IP-CIDR,10.0.0.0/8,WGGroup
FINAL,DIRECT

يمكن تعريف عدة أقسام [WireGuard] لأنفاق مختلفة:

[WireGuard us]
private-key = ...
peer-public-key = ...
self-ip = 10.0.1.2

[WireGuard eu]
private-key = ...
peer-public-key = ...
self-ip = 10.0.2.2

ملاحظة: يستخدم WireGuard المحول القائم على QUIC. الأسماء (مثال wg0) حساسة لحالة الأحرف.

S. Smart Rabbit LLC © All Rights Reserved            updated 2026-06-28 02:09:17

results matching ""

    No results matching ""