የግል WireGuard VPN ማለት ሰርቨሩ፣ ቁልፎቹና ምዝግቦቹ ሁሉም ያንተ ናቸው። ይህ የእጅ ውቅር how-to ነው፤ ከንግድ VPN ጋር ስላለው ንፅፅር፣ የአንድ-ትዕዛዝ wg-easy መንገድና የDPI ማስጠንቀቂያ WireGuard ራስ-ማስተናገድ እና ለVPN VPS አጠቃቀም ተመልከት። የተወሰነ-IP እቅድ ያስፈልግሃል — WireGuard በገቢ UDP ወደብ ያዳምጣል።
1. WireGuard ጫንና የሰርቨር ቁልፎችን ፍጠር
apt update && apt install -y wireguard
wg genkey | tee /etc/wireguard/server.key | wg pubkey > /etc/wireguard/server.pub
chmod 600 /etc/wireguard/server.key
2. የሰርቨር ውቅር ጻፍ
# /etc/wireguard/wg0.conf
[Interface]
Address = 10.8.0.1/24
ListenPort = 51820
PrivateKey = <contents of /etc/wireguard/server.key>
PostUp = iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
[Peer] # your phone/laptop
PublicKey = <client public key — see step 4>
AllowedIPs = 10.8.0.2/32
3. forwarding አንቃና አስጀምረው
sysctl -w net.ipv4.ip_forward=1
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
ufw allow 51820/udp
systemctl enable --now wg-quick@wg0
wg show
4. የደንበኛ ቁልፍ ፍጠርና ተገናኝ
በደንበኛው ላይ (ወይም በሰርቨሩ ላይ ፍጠርና አዛውረው)፦
wg genkey | tee client.key | wg pubkey > client.pub
client.pub ን ከላይ ባለው [Peer] ብሎክ ውስጥ አስገባ (ከዚያ systemctl restart wg-quick@wg0)፣ እና ለደንበኛው ይህን ውቅር ስጠው፦
[Interface]
PrivateKey = <client.key>
Address = 10.8.0.2/32
DNS = 1.1.1.1
[Peer]
PublicKey = <server.pub>
Endpoint = YOUR.SERVER.IP:51820
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25
ወደ WireGuard መተግበሪያ አስገባው (በሞባይል ላይ በqrencode -t ansiutf8 < client.conf QR ፈጣኑ ነው)፣ አብራው — እና በራስህ ሰርቨር በኩል እየተመራህ ነው።
ማስታወሻዎች
- ከDPI ጀርባ (ኢራን/ቻይና/ሩሲያ)? WireGuard ጣት አሻራ ተደርጎ ይታገዳል — በምትኩ VLESS + Reality ተጠቀም።
- የድር UI ትመርጣለህ? የአንድ-ትዕዛዝ wg-easy መንገድ ይህን በQR-ኮድ የአስተዳደር ፓነል ያዋቅረዋል።
Nano-IP ($8/ወር) ከበቂ በላይ ነው፣ ያልተለካ ትራፊክ፣ በአንድ ደቂቃ ገደማ root፣ ያለ KYC፣ በክሪፕቶ የሚከፈል።
አስተያየቶች
እስካሁን አስተያየቶች የሉም። መጀመሪያ ይሁኑ።