Setup SOCKS5 proxy di VPS Ubuntu yang traffic-nya keluar lewat Surfshark VPN.
Satu command, langsung jalan.
App → SOCKS5 (127.0.0.1:18080) → microsocks → tun1 → Surfshark VPN
git clone https://github.com/guna64/surfshark-socks5-proxy.git
cd surfshark-socks5-proxy
sudo bash install.shInstaller akan tanya:
- Surfshark username (dari my.surfshark.com → Manual Setup → Credentials)
- Surfshark password
- Lokasi server (Singapore, Jakarta, US, Japan, dll)
- Port SOCKS5 (default: 18080)
Selesai! Test:
curl --socks5 127.0.0.1:18080 https://ifconfig.me| Kode | Lokasi | Server |
|---|---|---|
| sg | 🇸🇬 Singapore | sg-sng.prod.surfshark.com |
| id | 🇮🇩 Jakarta | id-jak.prod.surfshark.com |
| us | 🇺🇸 New York | us-nyc.prod.surfshark.com |
| jp | 🇯🇵 Tokyo | jp-tok.prod.surfshark.com |
| uk | 🇬🇧 London | uk-lon.prod.surfshark.com |
| de | 🇩🇪 Frankfurt | de-fra.prod.surfshark.com |
| au | 🇦🇺 Sydney | au-syd.prod.surfshark.com |
| hk | 🇭🇰 Hong Kong | hk-hkg.prod.surfshark.com |
# Cek status
sudo systemctl status surfshark-vpn surfshark-socks5
# Restart
sudo systemctl restart surfshark-vpn surfshark-socks5
# Ganti lokasi server
sudo bash change-server.sh
# Uninstall
sudo bash uninstall.sh# Python
import requests
proxies = {"http": "socks5://127.0.0.1:18080", "https": "socks5://127.0.0.1:18080"}
requests.get("https://example.com", proxies=proxies)# curl
curl --socks5 127.0.0.1:18080 https://example.com
# Environment variable
export ALL_PROXY=socks5://127.0.0.1:18080- Ubuntu 20.04 / 22.04 / 24.04
- Root / sudo access
- Akun Surfshark aktif
- Port SOCKS5 hanya listen di
127.0.0.1(tidak exposed ke publik) - Kalau butuh akses dari luar, gunakan SSH tunnel:
ssh -L 18080:127.0.0.1:18080 user@vps-ip - VPN tidak mengambil alih default route VPS (SSH tetap aman)
MIT