✦ عرض المدد الطويلة: خصم يصل إلى 50% عند الدفع المسبق لسنة كاملة، على جميع باقات الخوادم.عرض الأسعار ←
MercureHosting

دليل · قراءة 10 دقائق

Run your own WireGuard VPN on a VPS

Turn a small offshore VPS into a private VPN exit in about ten minutes, with no third-party VPN provider in the middle.

هذه الصفحة متاحة حاليًا باللغة الإنجليزية فقط.

Why self-host?

A commercial VPN asks you to trust its no-logs claim. Your own WireGuard server means the only logs are the ones you choose to keep. A VPS S plan is plenty for a few devices, and you pick the exit country.

1. Install WireGuard

On a fresh Ubuntu 24.04 or Debian 12 VPS, install WireGuard and generate the server's key pair.

apt update && apt install -y wireguard qrencode
umask 077
wg genkey | tee /etc/wireguard/server.key | wg pubkey > /etc/wireguard/server.pub
wg genkey | tee /etc/wireguard/client.key | wg pubkey > /etc/wireguard/client.pub

2. Enable forwarding

Let the kernel route packets for your clients. Find your public interface name with `ip route | grep default` (often eth0 or ens3).

echo 'net.ipv4.ip_forward=1' > /etc/sysctl.d/99-wireguard.conf
sysctl --system

3. Write the server config

Create /etc/wireguard/wg0.conf. Replace eth0 if your interface is named differently, and paste in the keys you generated.

[Interface]
Address = 10.66.0.1/24
ListenPort = 51820
PrivateKey = <contents of server.key>
PostUp = iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

[Peer]
PublicKey = <contents of client.pub>
AllowedIPs = 10.66.0.2/32

4. Open the port and start it

If you use ufw, also set DEFAULT_FORWARD_POLICY="ACCEPT" in /etc/default/ufw so forwarded traffic isn't dropped.

ufw allow 51820/udp
systemctl enable --now wg-quick@wg0
wg show

5. Configure your device

Create a client config, then scan it as a QR code with the WireGuard mobile app or import the file on desktop.

[Interface]
PrivateKey = <contents of client.key>
Address = 10.66.0.2/32
DNS = 9.9.9.9

[Peer]
PublicKey = <contents of server.pub>
Endpoint = <your VPS IP>:51820
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25

# then: qrencode -t ansiutf8 < client.conf

Keep it private

WireGuard doesn't log connections by default. Keep it that way: don't add verbose logging, and set journald to a short retention period.

The AUP still applies to traffic leaving the server. A personal VPN is fine. An open proxy for strangers is a different, and worse, idea.

طبّق ذلك عمليًا

باقة VPS S تكفي لمعظم الأدلة.

عرض باقات VPS

في كل صفحة

VPS الأوفشور بكلمات واضحة

VPS الأوفشور هو خادم KVM في دولة تختارها، يُطلب ببريد إلكتروني أو معرّف تيليغرام ويُدفع بالعملات المشفرة. الدولة هي القانون الذي يحكم الجهاز. الشكاوى القادمة من أماكن أخرى لا تعني إزالة تلقائية، وسياسة الاستخدام المقبول تسري في المواقع السبعة كلها.

فوترة بالعملات المشفرة

ادفع بـ BTC, ETH, USDT, USDC, LTC, DOGE, TRX, SOL, BNB, XRP, BCH. الأسعار معروضة بالدولار الأمريكي. اشحن رصيدك من المحفظة ثم اطلب من هذا الرصيد. لا بطاقة ولا حساب مصرفي. أرسل إلى هذا العنوان ثم انتظر تأكيد الفريق.

سبع ولايات قضائية

آيسلندا، بنما، مولدوفا، رومانيا، سويسرا، هولندا، روسيا. تختار الدولة عند الطلب، وقانون تلك الدولة هو الذي تُقرأ وفقه أي شكوى. صفحات المواقع تشرح المزايا والعيوب قبل أن تدفع لمدة طويلة.

خصوصية بقائمة حقيقية

لا نسجّل حركة البيانات التي يرسلها أو يستقبلها خادم VPS الخاص بك، ولا نحتفظ بمحتوى القرص. توجد سجلات فوترة: وسيلة اتصال، والطلب، ومرجع الدفع، وعنوان IP، وحالة التشغيل. سياسة الخصوصية هي القائمة الكاملة.

تعامل صادق مع الإشعارات

إشعار DMCA الأمريكي لا يعني إزالة تلقائية. تُراجع الشكاوى وفق قانون الدولة التي يوجد فيها خادم VPS. نلتزم بأوامر المحاكم الصحيحة من تلك الدولة. ويبقى انتهاك حقوق النشر وفق ذلك القانون مخالفًا لسياسة الاستخدام المقبول.

KVM وroot وVNC

كل VPS يعمل بتقنية KVM، مع root كامل ووحدة تحكم VNC إذا تعطلت الشبكة. ثبّت قالبًا أو ارفع ملف ISO خاصًا بك. ليس حاوية تقف في طريقها لوحة تحكم.

وفي الخادم نفسه أيضًا: NVMe من فئة ~3,500 ميغابايت/ث، ومنفذ غير محدود مع استخدام عادل، وربع سنوي −25%، ونصف سنوي −35%، وسنوي −50%، ومقارنة مع مزوّد نموذجي يطلب KYC. لا ننشر نسبة توافر مقاسة، ولا توجد قسيمة إضافية فوق خصومات المدد.