Cách Cài Proxy Trên Mac
macOS có nhiều cách cấu hình proxy. Bài viết này hướng dẫn setup proxy cho toàn hệ thống và từng ứng dụng.
Cách 1: System Preferences (Toàn Hệ Thống)
Các Bước
- Click Apple menu → System Preferences
- Chọn Network
- Chọn connection đang dùng (Wi-Fi hoặc Ethernet)
- Click Advanced…
- Chọn tab Proxies
- Tick các protocol cần dùng:
- Web Proxy (HTTP)
- Secure Web Proxy (HTTPS)
- SOCKS Proxy
- Nhập Server và Port
- Tick Proxy server requires password nếu cần auth
- Nhập Username và Password
- Click OK → Apply
Cách 2: Terminal (Command Line)
Cấu hình proxy qua terminal:
# HTTP Proxy
export http_proxy="http://user:pass@proxy-ip:port"
export HTTP_PROXY="http://user:pass@proxy-ip:port"
# HTTPS Proxy
export https_proxy="http://user:pass@proxy-ip:port"
export HTTPS_PROXY="http://user:pass@proxy-ip:port"
# No proxy cho local
export no_proxy="localhost,127.0.0.1"
Thêm vào ~/.zshrc hoặc ~/.bash_profile để lưu vĩnh viễn.
Cách 3: Proxy Cho Chrome Trên Mac
Chrome trên Mac sử dụng system proxy. Hoặc dùng extension:
- Cài Proxy SwitchyOmega
- Tạo profile mới
- Nhập thông tin proxy
- Activate profile
Cách 4: Proxy Cho Safari
Safari sử dụng system proxy settings. Không cần cấu hình riêng.
Cách 5: Dùng App Proxy
Các app quản lý proxy trên Mac:
- Proxifier – Force all apps qua proxy
- Charles Proxy – Debug + proxy
- ClashX – Proxy client mạnh
Kiểm Tra Proxy
Cách 1: Terminal
curl ifconfig.me
Cách 2: Browser
Truy cập whatismyipaddress.com
Troubleshooting
| Vấn đề | Giải pháp |
|---|---|
| Proxy không hoạt động | Check IP:Port đúng chưa |
| Chỉ một số app qua proxy | Dùng Proxifier |
| Terminal không qua proxy | Export biến môi trường |
| Chậm | Đổi proxy server khác |
VinaProxy Cho Mac
- ✅ HTTP/HTTPS/SOCKS5
- ✅ Tương thích macOS mọi phiên bản
- ✅ IP Việt Nam sạch
- ✅ Hướng dẫn setup chi tiết
- 💰 Từ 25K/tháng
