_ _
_ __ __ _ __ _ ___| |_| |
| '_ \ / _` |/ _` |/ __| __| |
| |_) | (_| | (_| | (__| |_| |
| .__/ \__,_|\__, |\___|\__|_|
|_| |_|
Bypass firewall restrictions and access the free internet
paqctl is a unified management tool for bypass proxies. It helps you connect to a server outside restricted networks (like behind the Great Firewall) and access the internet freely. You run the server component on a VPS, and the client on your Windows/Mac/Linux machine.
This tool supports two different bypass methods. Choose based on your situation:
| Paqet | GFW-Knocker (GFK) | |
|---|---|---|
| Difficulty | Easy ⭐ | Advanced ⭐⭐⭐ |
| Best for | Most situations | Heavy censorship (GFW) |
| Your proxy | 127.0.0.1:1080 |
127.0.0.1:14000 |
| Technology | KCP over raw sockets | Violated TCP + QUIC tunnel |
| Server needs | Just paqet | GFK + Xray |
START HERE
|
v
+----------------------------------+
| Is your network heavily censored |
| (like Iran or China's GFW)? |
+----------------------------------+
| |
YES NO
| |
v v
+-----------+ +-----------+
| Try GFK | | Use Paqet |
| first | | |
+-----------+ +-----------+
Tip: You can install BOTH and have a backup! They use different ports.
YOUR COMPUTER YOUR VPS INTERNET
+--------------+ +--------------+ +----------+
| Browser | | Paqet | | Google |
| | | | Server | | YouTube |
| v | ---KCP--> | | | -------> | etc. |
| Paqet | (random | v | | |
| Client | UDP) | SOCKS5 | | |
+--------------+ +--------------+ +----------+
127.0.0.1:1080 your.vps.ip
How Paqet bypasses firewalls:
- Uses KCP protocol (reliable UDP) instead of TCP
- Sends packets via raw sockets, making them look like random UDP traffic
- DPI systems can't easily identify it as proxy traffic
YOUR COMPUTER YOUR VPS INTERNET
+--------------+ +--------------+ +----------+
| Browser | | GFK Server | | Google |
| | | "Violated | | | | YouTube |
| v | TCP" | v | | etc. |
| GFK Client | ---------> | QUIC Tunnel | -------> | |
| (VIO+QUIC) | (malformed | | | | |
| | | +QUIC) | v | | |
| Port 14000 | | Xray | | |
+--------------+ +--------------+ +----------+
127.0.0.1:14000 your.vps.ip
How GFK bypasses firewalls:
- Violated TCP: Sends TCP packets that are intentionally "broken" - they have wrong flags, no proper handshake. Firewalls expect normal TCP and often pass these through.
- QUIC Tunnel: Inside these violated packets, there's a QUIC connection carrying your actual data.
- Xray Backend: On the server, Xray provides the actual SOCKS5 proxy service.
Run this on your VPS (requires root):
curl -fsSL https://raw.githubusercontent.com/SamNet-dev/paqctl/main/paqctl.sh | sudo bashThen open the interactive menu:
sudo paqctl menuAfter setup, get your connection info:
sudo paqctl infoThis will show you the Server IP, Port, and Key/Auth Code you need for the client.
- Windows 10 or 11
- Administrator access
- Your server's connection info (from
paqctl infoon server)
The simplest way to get started - just download, double-click, and connect!
- Go to: https://github.com/SamNet-dev/paqctl
- Click the green "Code" button → "Download ZIP"
- Extract the ZIP file anywhere (e.g., Desktop)
- Open the
windowsfolder inside
You'll see two .bat files:
Paqet-Client.bat- For Paqet protocol (simple, recommended)GFK-Client.bat- For GFW-knocker protocol (advanced)
Right-click your chosen .bat file → "Run as administrator"
First run will install Npcap (required for raw sockets). Follow the installer prompts.
After installation, the script will ask for your server info:
- Paqet: Server address (e.g.,
1.2.3.4:8443) and encryption key - GFK: Server IP and auth code
Enter the values from your server (shown after server setup or via paqctl info).
Once configured, press Connect and you're done!
Configure your browser to use SOCKS5 proxy:
- Paqet:
127.0.0.1:1080 - GFK:
127.0.0.1:14000
To disconnect, press Ctrl+C in the window.
For more control, use the interactive PowerShell menu.
- Press
Win + S, typePowerShell - Right-click "Windows PowerShell" → "Run as administrator"
- Click "Yes" on the UAC prompt
Option A: One-liner (downloads and runs automatically)
irm https://raw.githubusercontent.com/SamNet-dev/paqctl/main/windows/paqet-client.ps1 | iexOption B: Download first, then run
git clone https://github.com/SamNet-dev/paqctl.git
cd paqctl\windows
.\paqet-client.ps1The interactive menu lets you:
- Install paqet or GFK
- Configure connection
- Start/stop client
- Check status
Windows blocks scripts by default. Run this once:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserType Y and press Enter when prompted.
Option 1: Double-click (Easiest)
- Double-click
Paqet-Client.bat - It will automatically run as Administrator
Option 2: From PowerShell
.\paqet-client.ps1You'll see an interactive menu:
===============================================
PAQET/GFK CLIENT MANAGER
===============================================
No backend installed yet
1. Install paqet (simple, all-in-one SOCKS5)
2. Install GFW-knocker (advanced, for heavy DPI)
3. Configure connection
4. Start client
5. Stop client
6. Show status
7. About (how it works)
0. Exit
Select option:
Tip: For a smoother experience, download and install Npcap separately first.
- Press
1and Enter - The script will:
- Download and install Npcap (network capture driver)
- Download the paqet binary
- When Npcap installer opens:
- Click "I Agree"
- Keep default options checked
- Click "Install"
- Click "Finish"
- Press
2and Enter - The script will:
- Install Npcap
- Install Python 3.10+ (if not present)
- Install Python packages:
scapy,aioquic - Copy GFK client scripts
- Press
3and Enter - Enter the info from your server:
For Paqet:
Server address (e.g., 1.2.3.4:8443): <your server IP:port>
Encryption key (16+ chars): <your key from server>
For GFK:
Server IP (e.g., 1.2.3.4): <your server IP>
Auth code (from server setup): <your auth code from server>
- Press
4and Enter - The client will start and show logs
- Keep this window open while using the proxy
Now you need to tell your browser to use the proxy.
Your proxy address is:
- Paqet:
127.0.0.1:1080(SOCKS5) - GFK:
127.0.0.1:14000(SOCKS5)
- Open Firefox
- Go to Settings → General → Network Settings → Settings...
- Select "Manual proxy configuration"
- In "SOCKS Host":
127.0.0.1 - Port:
1080(for Paqet) or14000(for GFK) - Select "SOCKS v5"
- Check "Proxy DNS when using SOCKS v5" ← Important!
- Click OK
Chrome uses Windows proxy settings. Use a browser extension instead:
- Install "SwitchyOmega" extension
- Create a new profile
- Set SOCKS5 proxy:
127.0.0.1:1080or127.0.0.1:14000 - Activate the profile
- Open your browser (with proxy configured)
- Go to: https://whatismyipaddress.com
- Your IP should show your VPS IP, not your real IP
- Try accessing blocked sites
- Press
Ctrl+Cin the PowerShell window, OR - Run the script again and choose option
5(Stop client)
"Running scripts is disabled" error
Run this command first:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser"Administrator privileges required"
You must run PowerShell as Administrator. Right-click PowerShell and select "Run as administrator".
Npcap installation fails
- Download manually from https://npcap.com
- Run the installer as Administrator
- Make sure "WinPcap API-compatible Mode" is checked
- Restart your computer after installation
Connection times out
- Make sure your server is running (
paqctl statuson server) - Check if your VPS firewall allows the port (8443 for Paqet, 45000 for GFK)
- Try the other method (if Paqet fails, try GFK)
GFK: "Gateway MAC not found"
The script couldn't detect your router's MAC address. You'll need to enter it manually:
- Open Command Prompt
- Run:
arp -a - Find your gateway IP (usually 192.168.1.1 or 192.168.0.1)
- Copy the MAC address next to it (format: aa-bb-cc-dd-ee-ff)
- Enter it when the script asks
macOS requires manual setup since there's no automated script yet.
- macOS 10.15 (Catalina) or newer
- Administrator access (for sudo)
- Homebrew (recommended)
- Your server's connection info
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"# Create directory
mkdir -p ~/paqet && cd ~/paqet
# Download latest release (Intel Mac)
curl -LO https://github.com/SamNet-dev/paqctl/releases/download/v1.0.0-alpha.12/paqet-darwin-amd64-v1.0.0-alpha.12.tar.gz
tar -xzf paqet-darwin-amd64-v1.0.0-alpha.12.tar.gz
# For Apple Silicon (M1/M2/M3):
# curl -LO https://github.com/SamNet-dev/paqctl/releases/download/v1.0.0-alpha.12/paqet-darwin-arm64-v1.0.0-alpha.12.tar.gz
# tar -xzf paqet-darwin-arm64-v1.0.0-alpha.12.tar.gz
# Make executable
chmod +x paqetcat > ~/paqet/config.yaml << 'EOF'
mode: client
listen: 127.0.0.1:1080
remote: YOUR_SERVER_IP:8443
key: YOUR_SECRET_KEY
EOFReplace YOUR_SERVER_IP and YOUR_SECRET_KEY with your actual values.
# Requires sudo for raw socket access
sudo ~/paqet/paqet_darwin_amd64 run -c ~/paqet/config.yamlFor Apple Silicon:
sudo ~/paqet/paqet_darwin_arm64 run -c ~/paqet/config.yamlYour SOCKS5 proxy is now at 127.0.0.1:1080
GFK requires Python and some setup:
brew install python@3.11git clone https://github.com/SamNet-dev/paqctl.git
cd paqctl/gfk/clientpip3 install scapy aioquiccat > parameters.py << 'EOF'
# GFW-knocker client configuration
from scapy.all import conf
# Server settings
vps_ip = "YOUR_SERVER_IP"
xray_server_ip = "127.0.0.1"
# Port mappings (local_port: remote_port)
tcp_port_mapping = {14000: 443}
udp_port_mapping = {}
# VIO (raw socket) ports
vio_tcp_server_port = 45000
vio_tcp_client_port = 40000
vio_udp_server_port = 35000
vio_udp_client_port = 30000
# QUIC tunnel ports
quic_server_port = 25000
quic_client_port = 20000
quic_local_ip = "127.0.0.1"
# QUIC settings
quic_verify_cert = False
quic_idle_timeout = 86400
udp_timeout = 300
quic_mtu = 1420
quic_max_data = 1073741824
quic_max_stream_data = 1073741824
quic_auth_code = "YOUR_AUTH_CODE"
quic_certificate = "cert.pem"
quic_private_key = "key.pem"
# SOCKS proxy
socks_port = 14000
EOFReplace YOUR_SERVER_IP and YOUR_AUTH_CODE with your actual values.
# Requires sudo for raw socket access
sudo python3 mainclient.pyYour SOCKS5 proxy is now at 127.0.0.1:14000
- Open System Preferences → Network
- Select your connection (Wi-Fi or Ethernet)
- Click Advanced → Proxies
- Check SOCKS Proxy
- Server:
127.0.0.1 - Port:
1080(Paqet) or14000(GFK) - Click OK → Apply
Same as Windows - go to Firefox Settings → Network Settings → Manual proxy.
"Operation not permitted" error
macOS requires special permissions for raw sockets:
- Run with
sudo - If still failing, you may need to disable SIP (not recommended) or use a different method
Python package installation fails
Try using a virtual environment:
python3 -m venv ~/paqet-venv
source ~/paqet-venv/bin/activate
pip install scapy aioquicThen run GFK from within the venv.
# Download paqet
mkdir -p ~/paqet && cd ~/paqet
curl -LO https://github.com/SamNet-dev/paqctl/releases/download/v1.0.0-alpha.12/paqet-linux-amd64-v1.0.0-alpha.12.tar.gz
tar -xzf paqet-linux-amd64-v1.0.0-alpha.12.tar.gz
chmod +x paqet
# Create config
cat > config.yaml << 'EOF'
mode: client
listen: 127.0.0.1:1080
remote: YOUR_SERVER_IP:8443
key: YOUR_SECRET_KEY
EOF
# Run (requires root for raw sockets)
sudo ./paqet_linux_amd64 run -c config.yaml# Install dependencies
sudo apt install python3 python3-pip # Debian/Ubuntu
# or: sudo dnf install python3 python3-pip # Fedora
pip3 install scapy aioquic
# Clone and configure
git clone https://github.com/SamNet-dev/paqctl.git
cd paqctl/gfk/client
# Create parameters.py (same as macOS section above)
# Then run:
sudo python3 mainclient.pyFirefox: Settings → Network Settings → Manual proxy → SOCKS5 127.0.0.1:1080 or 127.0.0.1:14000
Or use system-wide proxy via environment variables:
export ALL_PROXY=socks5://127.0.0.1:1080After installing on your VPS, use these commands:
# Show interactive menu
sudo paqctl menu
# Quick commands
sudo paqctl status # Check if running
sudo paqctl start # Start the service
sudo paqctl stop # Stop the service
sudo paqctl restart # Restart the service
sudo paqctl info # Show connection info for clients
sudo paqctl logs # View recent logs- Change default keys/auth codes - Never use example values in production
- Keep your VPS IP private - Don't share it publicly
- Use strong encryption keys - At least 16 characters for Paqet
- Keep software updated - Run
sudo paqctl updateperiodically
Can I run both Paqet and GFK at the same time?
Yes! They use different ports:
- Paqet:
127.0.0.1:1080 - GFK:
127.0.0.1:14000
This is useful as a backup - if one method gets blocked, switch to the other.
Which VPS provider should I use?
Any VPS outside your restricted region works. Popular choices:
- DigitalOcean
- Vultr
- Linode
- AWS Lightsail
- Hetzner
Choose a location close to you for better speed (but outside the firewall).
Is this legal?
This tool is for legitimate privacy and access needs. Laws vary by country. Use responsibly and check your local regulations.
My connection is slow. How can I improve it?
- Choose a VPS closer to your location
- Try the other method (Paqet vs GFK)
- Check your VPS isn't overloaded
- Make sure your local network is stable
The server keeps disconnecting
- Check server logs:
sudo paqctl logs - Make sure your VPS has enough resources
- Check if the port is blocked by your ISP
- Try switching between Paqet and GFK
Issues and pull requests are welcome at: https://github.com/SamNet-dev/paqctl
MIT License - See LICENSE file.
- paqet - KCP-based proxy with built-in SOCKS5 (original source)
- GFW-knocker - Violated TCP technique
- aioquic - QUIC protocol implementation
- scapy - Packet manipulation library
- kcptun - KCP protocol inspiration
پاکتکنترل یک ابزار مدیریت پروکسی برای دور زدن فایروال است. این ابزار به شما کمک میکند تا به سروری خارج از شبکههای محدود (مثل پشت فایروال بزرگ) متصل شوید و آزادانه به اینترنت دسترسی داشته باشید.
شما کامپوننت سرور را روی VPS و کلاینت را روی ویندوز/مک/لینوکس خود اجرا میکنید.
این ابزار از دو روش مختلف پشتیبانی میکند:
| Paqet | GFW-Knocker (GFK) | |
|---|---|---|
| سختی | آسان ⭐ | پیشرفته ⭐⭐⭐ |
| مناسب برای | اکثر شرایط | سانسور سنگین (GFW) |
| پروکسی شما | 127.0.0.1:1080 |
127.0.0.1:14000 |
| تکنولوژی | KCP روی raw socket | TCP نقضشده + تونل QUIC |
| نیاز سرور | فقط paqet | GFK + Xray |
- اگر شبکه شما سانسور سنگین دارد (مثل ایران یا GFW چین): ابتدا GFK را امتحان کنید
- در غیر این صورت: از Paqet استفاده کنید
نکته: میتوانید هر دو را نصب کنید و یک بکاپ داشته باشید! از پورتهای مختلف استفاده میکنند.
[Browser] --> [Paqet Client] --KCP/UDP--> [Paqet Server] --SOCKS5--> [Internet]
127.0.0.1:1080 your.vps.ip
نحوه دور زدن فایروال:
- از پروتکل KCP (UDP قابل اطمینان) به جای TCP استفاده میکند
- بستهها را از طریق raw socket ارسال میکند که شبیه ترافیک UDP تصادفی به نظر میرسند
- سیستمهای DPI نمیتوانند به راحتی آن را شناسایی کنند
[Browser] --> [GFK Client] --Violated TCP--> [GFK Server] --> [Xray] --> [Internet]
(VIO+QUIC) (QUIC Tunnel) (SOCKS5)
127.0.0.1:14000 your.vps.ip
نحوه دور زدن فایروال:
- TCP نقضشده: بستههای TCP ارسال میکند که عمداً "خراب" هستند
- تونل QUIC: درون این بستهها، یک اتصال QUIC دادههای واقعی را حمل میکند
- بکند Xray: روی سرور، Xray سرویس SOCKS5 را ارائه میدهد
این دستور را روی VPS خود اجرا کنید (نیاز به root دارد):
curl -fsSL https://raw.githubusercontent.com/SamNet-dev/paqctl/main/paqctl.sh | sudo bashسپس منوی تعاملی را باز کنید:
sudo paqctl menuبعد از راهاندازی، اطلاعات اتصال را دریافت کنید:
sudo paqctl infoاین دستور آیپی سرور، پورت و کلید/کد احراز هویت را نشان میدهد.
- ویندوز ۱۰ یا ۱۱
- دسترسی Administrator
- اطلاعات اتصال سرور (از دستور
paqctl infoروی سرور)
سادهترین روش - فقط دانلود کنید، دوبار کلیک کنید و وصل شوید!
- بروید به: https://github.com/SamNet-dev/paqctl
- روی دکمه سبز "Code" کلیک کنید → "Download ZIP"
- فایل ZIP را در هر جایی استخراج کنید (مثلاً دسکتاپ)
- وارد پوشه
windowsشوید
دو تا فایل .bat میبینید:
Paqet-Client.bat- برای پروتکل Paqet (ساده، پیشنهادی)GFK-Client.bat- برای پروتکل GFW-knocker (پیشرفته)
روی فایل .bat مورد نظر راستکلیک کنید → "Run as administrator"
اجرای اول Npcap را نصب میکند (برای raw socket لازم است). مراحل نصب را دنبال کنید.
بعد از نصب، اسکریپت اطلاعات سرور را میخواهد:
- Paqet: آدرس سرور (مثلاً
1.2.3.4:8443) و کلید رمزنگاری - GFK: آیپی سرور و کد احراز هویت
مقادیر را از سرور وارد کنید (بعد از نصب سرور نشان داده میشود یا با paqctl info).
وقتی تنظیم شد، Connect را بزنید و تمام!
مرورگر را روی پروکسی SOCKS5 تنظیم کنید:
- Paqet:
127.0.0.1:1080 - GFK:
127.0.0.1:14000
برای قطع اتصال، Ctrl+C را در پنجره فشار دهید.
برای کنترل بیشتر، از منوی تعاملی PowerShell استفاده کنید.
- کلید
Win + Sرا فشار دهید، تایپ کنیدPowerShell - روی "Windows PowerShell" راستکلیک → "Run as administrator"
- روی "Yes" در پنجره UAC کلیک کنید
گزینه A: یک خطی (خودکار دانلود و اجرا میکند)
irm https://raw.githubusercontent.com/SamNet-dev/paqctl/main/windows/paqet-client.ps1 | iexگزینه B: اول دانلود، بعد اجرا
git clone https://github.com/SamNet-dev/paqctl.git
cd paqctl\windows
.\paqet-client.ps1منوی تعاملی امکان این کارها را میدهد:
- نصب paqet یا GFK
- پیکربندی اتصال
- شروع/توقف کلاینت
- بررسی وضعیت
نکته: اگر خطای "Running scripts is disabled" دیدید، این را یک بار اجرا کنید:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
روش ۱: دوبار کلیک (آسانتر)
- روی فایل
Paqet-Client.batدوبار کلیک کنید - به صورت خودکار با دسترسی Administrator اجرا میشود
روش ۲: از PowerShell
.\paqet-client.ps1یک منوی تعاملی خواهید دید:
===============================================
PAQET/GFK CLIENT MANAGER
===============================================
1. Install paqet (ساده، SOCKS5 همهکاره)
2. Install GFW-knocker (پیشرفته، برای DPI سنگین)
3. Configure connection
4. Start client
5. Stop client
6. Show status
0. Exit
Select option:
نکته: برای تجربه روانتر، ابتدا Npcap را جداگانه دانلود و نصب کنید.
- کلید
1را بزنید و Enter - اسکریپت موارد زیر را انجام میدهد:
- دانلود و نصب Npcap
- دانلود باینری paqet
- وقتی نصبکننده Npcap باز شد:
- روی "I Agree" کلیک کنید
- روی "Install" کلیک کنید
- روی "Finish" کلیک کنید
- کلید
2را بزنید و Enter - اسکریپت موارد زیر را انجام میدهد:
- نصب Npcap
- نصب Python 3.10+
- نصب پکیجهای Python
- کلید
3را بزنید و Enter - اطلاعات سرور خود را وارد کنید:
برای Paqet:
Server address: <آیپی:پورت سرور>
Encryption key: <کلید از سرور>
برای GFK:
Server IP: <آیپی سرور>
Auth code: <کد احراز هویت از سرور>
- کلید
4را بزنید و Enter - کلاینت شروع به کار میکند
- این پنجره را باز نگه دارید
آدرس پروکسی شما:
- Paqet:
127.0.0.1:1080(SOCKS5) - GFK:
127.0.0.1:14000(SOCKS5)
- Firefox را باز کنید
- بروید به Settings → General → Network Settings → Settings...
- "Manual proxy configuration" را انتخاب کنید
- در "SOCKS Host":
127.0.0.1 - Port:
1080(برای Paqet) یا14000(برای GFK) - "SOCKS v5" را انتخاب کنید
- "Proxy DNS when using SOCKS v5" را تیک بزنید ← مهم!
- روی OK کلیک کنید
- افزونه "SwitchyOmega" را نصب کنید
- یک پروفایل جدید بسازید
- پروکسی SOCKS5 را تنظیم کنید:
127.0.0.1:1080یا127.0.0.1:14000 - پروفایل را فعال کنید
- مرورگر خود را باز کنید
- بروید به: https://whatismyipaddress.com
- آیپی شما باید آیپی VPS را نشان دهد
- سایتهای مسدود را امتحان کنید
- در پنجره PowerShell کلید
Ctrl+Cرا بزنید، یا - اسکریپت را دوباره اجرا کنید و گزینه
5را انتخاب کنید
خطای "اجرای اسکریپت غیرفعال است"
ابتدا این دستور را اجرا کنید:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser"نیاز به دسترسی Administrator"
باید PowerShell را به عنوان Administrator اجرا کنید. روی PowerShell راستکلیک کنید و "Run as administrator" را انتخاب کنید.
نصب Npcap ناموفق است
- به صورت دستی از https://npcap.com دانلود کنید
- نصبکننده را به عنوان Administrator اجرا کنید
- مطمئن شوید "WinPcap API-compatible Mode" تیک خورده است
- کامپیوتر را ریستارت کنید
اتصال timeout میشود
- مطمئن شوید سرور در حال اجرا است
- بررسی کنید که فایروال VPS پورت را اجازه میدهد
- روش دیگر را امتحان کنید
GFK: "MAC گیتوی پیدا نشد"
- Command Prompt را باز کنید
- اجرا کنید:
arp -a - آیپی گیتوی خود را پیدا کنید (معمولاً 192.168.1.1)
- آدرس MAC کنار آن را کپی کنید
- وقتی اسکریپت پرسید آن را وارد کنید
macOS نیاز به راهاندازی دستی دارد.
- macOS 10.15 یا جدیدتر
- دسترسی Administrator (برای sudo)
- Homebrew (توصیهشده)
- اطلاعات اتصال سرور
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"mkdir -p ~/paqet && cd ~/paqet
# برای Intel Mac:
curl -LO https://github.com/SamNet-dev/paqctl/releases/download/v1.0.0-alpha.12/paqet-darwin-amd64-v1.0.0-alpha.12.tar.gz
tar -xzf paqet-darwin-amd64-v1.0.0-alpha.12.tar.gz
# برای Apple Silicon (M1/M2/M3):
# curl -LO https://github.com/SamNet-dev/paqctl/releases/download/v1.0.0-alpha.12/paqet-darwin-arm64-v1.0.0-alpha.12.tar.gz
# tar -xzf paqet-darwin-arm64-v1.0.0-alpha.12.tar.gz
chmod +x paqetcat > ~/paqet/config.yaml << 'EOF'
mode: client
listen: 127.0.0.1:1080
remote: YOUR_SERVER_IP:8443
key: YOUR_SECRET_KEY
EOFYOUR_SERVER_IP و YOUR_SECRET_KEY را با مقادیر واقعی جایگزین کنید.
sudo ~/paqet/paqet_darwin_amd64 run -c ~/paqet/config.yaml
# یا برای Apple Silicon:
sudo ~/paqet/paqet_darwin_arm64 run -c ~/paqet/config.yamlپروکسی SOCKS5 شما اکنون در 127.0.0.1:1080 است.
brew install python@3.11git clone https://github.com/SamNet-dev/paqctl.git
cd paqctl/gfk/clientpip3 install scapy aioquicفایل parameters.py را با اطلاعات سرور خود بسازید (مشابه بخش انگلیسی بالا).
sudo python3 mainclient.pyپروکسی در 127.0.0.1:14000 است.
- System Preferences → Network را باز کنید
- اتصال خود را انتخاب کنید
- Advanced → Proxies را کلیک کنید
- SOCKS Proxy را تیک بزنید
- Server:
127.0.0.1 - Port:
1080یا14000 - OK → Apply
# دانلود paqet
mkdir -p ~/paqet && cd ~/paqet
curl -LO https://github.com/SamNet-dev/paqctl/releases/download/v1.0.0-alpha.12/paqet-linux-amd64-v1.0.0-alpha.12.tar.gz
tar -xzf paqet-linux-amd64-v1.0.0-alpha.12.tar.gz
chmod +x paqet
# ایجاد config
cat > config.yaml << 'EOF'
mode: client
listen: 127.0.0.1:1080
remote: YOUR_SERVER_IP:8443
key: YOUR_SECRET_KEY
EOF
# اجرا (نیاز به root)
sudo ./paqet_linux_amd64 run -c config.yaml# نصب وابستگیها
sudo apt install python3 python3-pip # Debian/Ubuntu
pip3 install scapy aioquic
# کلون و پیکربندی
git clone https://github.com/SamNet-dev/paqctl.git
cd paqctl/gfk/client
# ایجاد parameters.py (مشابه بخش macOS)
# سپس اجرا:
sudo python3 mainclient.pyFirefox: Settings → Network Settings → Manual proxy → SOCKS5 127.0.0.1:1080 یا 127.0.0.1:14000
بعد از نصب روی VPS:
sudo paqctl menu # منوی تعاملی
sudo paqctl status # بررسی وضعیت
sudo paqctl start # شروع سرویس
sudo paqctl stop # توقف سرویس
sudo paqctl restart # ریستارت
sudo paqctl info # اطلاعات اتصال
sudo paqctl logs # مشاهده لاگها- کلیدها را تغییر دهید - هرگز از مقادیر نمونه استفاده نکنید
- آیپی VPS را خصوصی نگه دارید
- از کلیدهای قوی استفاده کنید - حداقل ۱۶ کاراکتر
- بهروز نگه دارید -
sudo paqctl update
آیا میتوانم Paqet و GFK را همزمان اجرا کنم؟
بله! از پورتهای مختلف استفاده میکنند:
- Paqet:
127.0.0.1:1080 - GFK:
127.0.0.1:14000
اگر یکی مسدود شد، به دیگری سوییچ کنید.
از کدام VPS استفاده کنم؟
هر VPS خارج از منطقه محدود:
- DigitalOcean
- Vultr
- Linode
- AWS Lightsail
- Hetzner
مکانی نزدیک انتخاب کنید (اما خارج از فایروال).
اتصال کند است
- VPS نزدیکتر انتخاب کنید
- روش دیگر را امتحان کنید
- VPS را بررسی کنید
- شبکه محلی را بررسی کنید
سرور مدام قطع میشود
- لاگها را بررسی کنید:
sudo paqctl logs - منابع VPS را بررسی کنید
- پورت توسط ISP مسدود نشده باشد
- بین Paqet و GFK سوییچ کنید
مشکلات و pull request در گیتهاب: https://github.com/SamNet-dev/paqctl
- paqet - پروکسی مبتنی بر KCP با SOCKS5 داخلی (سورس اصلی)
- GFW-knocker - تکنیک TCP نقضشده
- aioquic - پیادهسازی QUIC
- scapy - کتابخانه دستکاری بسته
- kcptun - الهامبخش پروتکل KCP