fa

Shadowsocks روی VPS: دور زدن فیلترینگ اینترنت ایران

Shadowsocks یک پروکسی رمزنگاری‌شده است که در اصل برای دور زدن Great Firewall چین طراحی شد و حالا گسترده‌ترین ابزار دور زدن فیلترینگ در ایران نیز هست. برخلاف VPN های سنتی، ترافیک Shadowsocks شبیه به HTTPS معمولی است و توسط DPI سخت‌تر شناسایی می‌شود. روی VPS آفشور Anubiz Host در ایسلند، یک سرور Shadowsocks شخصی مناسب‌ترین گزینه برای دسترسی پایدار است.

Need this done for your project?

We implement, you ship. Async, documented, done in days.

Start a Brief

نصب Shadowsocks-libev روی VPS

Shadowsocks-libev نسخه رسمی C با مصرف حافظه بسیار پایین است:

apt update
apt install -y shadowsocks-libev
nano /etc/shadowsocks-libev/config.json
{
    "server": "0.0.0.0",
    "server_port": 8388,
    "password": "YourStrongPassword123!",
    "timeout": 300,
    "method": "chacha20-ietf-poly1305",
    "fast_open": true,
    "mode": "tcp_and_udp"
}
systemctl enable shadowsocks-libev
systemctl start shadowsocks-libev
systemctl status shadowsocks-libev

روش رمزگذاری chacha20-ietf-poly1305 قوی‌ترین و سریع‌ترین AEAD cipher است.

استفاده از پورت 443 و Obfuscation

برای دور زدن فیلترینگ پیشرفته، Shadowsocks را روی پورت 443 با v2ray-plugin راه‌اندازی کنید:

wget https://github.com/teddysun/v2ray-plugin/releases/latest/download/v2ray-plugin-linux-amd64.tar.gz
tar xzf v2ray-plugin-linux-amd64.tar.gz
mv v2ray-plugin_linux_amd64 /usr/local/bin/v2ray-plugin

پیکربندی سرور با v2ray-plugin در WebSocket mode:

{
    "server": "0.0.0.0",
    "server_port": 443,
    "password": "YourStrongPassword123!",
    "method": "chacha20-ietf-poly1305",
    "plugin": "v2ray-plugin",
    "plugin_opts": "server;tls;host=yourdomain.com;path=/shadowsocks"
}

این پیکربندی ترافیک Shadowsocks را درون TLS WebSocket پنهان می‌کند و کاملا مانند ترافیک HTTPS به نظر می‌رسد.

کلاینت Shadowsocks برای Android، iOS و Windows

Android: Shadowsocks از Google Play یا F-Droid
تنظیمات: IP سرور، پورت، پسورد، روش رمزگذاری

iOS: Shadowrocket یا Potatso Lite از App Store

Windows: Shadowsocks-windows از GitHub:
https://github.com/shadowsocks/shadowsocks-windows/releases

Linux:

apt install -y shadowsocks-libev
nano /etc/shadowsocks-libev/local.json
{
    "server": "VPS_IP",
    "server_port": 8388,
    "local_address": "127.0.0.1",
    "local_port": 1080,
    "password": "YourStrongPassword123!",
    "method": "chacha20-ietf-poly1305"
}
ss-local -c /etc/shadowsocks-libev/local.json -d start

بهینه‌سازی و عیب‌یابی

فعال کردن TCP BBR برای افزایش سرعت:

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_congestion_control

فعال کردن TCP Fast Open:

echo "net.ipv4.tcp_fastopen=3" >> /etc/sysctl.conf
sysctl -p

لاگ‌های Shadowsocks:

journalctl -u shadowsocks-libev -f --no-hostname

اگر اتصال قطع می‌شود، پورت فایروال را بررسی کنید:

ufw allow 8388/tcp
ufw allow 8388/udp

در صورت شناسایی توسط DPI، پورت را به 8080 یا 443 تغییر دهید یا از v2ray-plugin با TLS استفاده کنید.

Why Anubiz Host

100% async — no calls, no meetings
Delivered in days, not weeks
Full documentation included
Production-grade from day one
Security-first approach
Post-delivery support included

Ready to get started?

Skip the research. Tell us what you need, and we'll scope it, implement it, and hand it back — fully documented and production-ready.

Anubiz Chat AI

Online