Skip to content

guna64/surfshark-socks5-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔒 Surfshark SOCKS5 Proxy (Auto Installer)

Setup SOCKS5 proxy di VPS Ubuntu yang traffic-nya keluar lewat Surfshark VPN.
Satu command, langsung jalan.

Arsitektur

App → SOCKS5 (127.0.0.1:18080) → microsocks → tun1 → Surfshark VPN

Quick Start

git clone https://github.com/guna64/surfshark-socks5-proxy.git
cd surfshark-socks5-proxy
sudo bash install.sh

Installer akan tanya:

  1. Surfshark username (dari my.surfshark.com → Manual Setup → Credentials)
  2. Surfshark password
  3. Lokasi server (Singapore, Jakarta, US, Japan, dll)
  4. Port SOCKS5 (default: 18080)

Selesai! Test:

curl --socks5 127.0.0.1:18080 https://ifconfig.me

Lokasi Server Tersedia

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

Manage

# 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

Pakai di Aplikasi

# 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

Requirements

  • Ubuntu 20.04 / 22.04 / 24.04
  • Root / sudo access
  • Akun Surfshark aktif

⚠️ Catatan Penting

  • 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)

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages