VPSTTT

Proxy V4 Dân Cư Xoay

Hệ thống quản lý Proxy dân cư xoay IP tự động, hỗ trợ API xoay IP, check IP real-time. Quản trị tập trung VPS, Proxy và User.

🔐 Quản Trị Admin 📡 API Documentation
🔄

Xoay IP Tự Động

Tắt/bật PPPoE thông qua MikroTik, IP mới cập nhật tự động sau 60 giây

📡

API Đầy Đủ

REST API với token auth - Check IP, Xoay IP, Quản lý proxy từ xa

🔒

Bảo Mật

Rate limit, IP whitelist, token auth đảm bảo an toàn tuyệt đối

👥

Quản Lý User

Tạo user, gán proxy, cấp API token tự động

📡 API Documentation

Sử dụng token được cấp để xác thực các API endpoint bên dưới

🔍 Check IP Hiện Tại

GET/api.php?action=check_ip&token=YOUR_TOKEN

Kiểm tra IP public hiện tại của proxy, local IP và trạng thái port.

cURL Example:
curl -X GET "https://proxy.webtui.vn/api.php?action=check_ip&token=YOUR_TOKEN&proxy_id=1"
JSON Response:
{ "success": true, "proxy": { "id": 1, "pppoe_name": "pppoe-out101", "ip_public": "123.19.109.77", "ip_local": "10.0.1.2", "proxy_port": 10001, "status": "active", "last_rotated": "2026-04-16 20:30:00" } }

🔄 Xoay IP

POST/api.php?action=rotate_ip&token=YOUR_TOKEN

Thực hiện reset kết nối PPPoE để lấy IP mới. Cooldown mặc định 60 giây giữa các lần xoay.

cURL Example:
curl -X POST "https://proxy.webtui.vn/api.php?action=rotate_ip&token=YOUR_TOKEN&proxy_id=1"
JSON Response:
{ "success": true, "message": "Đã xoay IP thành công. IP mới sẽ được cập nhật sau 60 giây.", "old_ip": "123.19.109.77", "proxy_id": 1 }

📋 Danh Sách Proxy Của Tôi

GET/api.php?action=my_proxies&token=YOUR_TOKEN

Lấy toàn bộ proxy thuộc quyền sở hữu của User token hiện tại.

cURL Example:
curl -X GET "https://proxy.webtui.vn/api.php?action=my_proxies&token=YOUR_TOKEN"
JSON Response:
{ "success": true, "user": { "id": 1, "username": "user1" }, "proxies": [ { "id": 1, "pppoe_name": "pppoe-out101", "ip_proxy": "103.178.235.249", "ip_public": "123.19.109.77", "proxy_port": 10001, "status": "active" } ] }

⚙️ Thông Tin Config Proxy

GET/api.php?action=proxy_info&token=YOUR_TOKEN

Lấy thông tin xác thực (User/pass, whitelist) của một proxy.

cURL Example:
curl -X GET "https://proxy.webtui.vn/api.php?action=proxy_info&token=YOUR_TOKEN&proxy_id=1"
JSON Response:
{ "success": true, "proxy": { "id": 1, "pppoe_name": "pppoe-out101", "auth_type": "userpass", "proxy_user": "user123", "proxy_pass": "pass123", "whitelist_ips": ["1.2.3.4"], "status": "active" } }

🔐 Đổi Loại Xác Thực

POST/api.php?action=proxy_change_auth&token=YOUR_TOKEN

Thay đổi Auth Type, User/Pass, Whitelist, Proxy Type (HTTP/SOCKS5). Tự động update trên VPS.

cURL Example:
curl -X POST "https://proxy.webtui.vn/api.php?action=proxy_change_auth&token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "proxy_id": 1, "auth_type": "whitelist", "whitelist_ips": "1.2.3.4,5.6.7.8" }'
JSON Response:
{ "success": true, "message": "Đã cập nhật auth thành công và restart 3proxy" }

✅ Thêm IP Whitelist

POST/api.php?action=proxy_allow_ip&token=YOUR_TOKEN

Thêm nhanh 1 IP vào danh sách whitelist.

cURL Example:
curl -X POST "https://proxy.webtui.vn/api.php?action=proxy_allow_ip&token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "proxy_id": 1, "ip_allow": "1.2.3.4" }'
JSON Response:
{ "success": true, "message": "Đã thêm 1.2.3.4 vào whitelist" }

❌ Xóa IP Whitelist

POST/api.php?action=proxy_remove_ip&token=YOUR_TOKEN

Xóa 1 IP khỏi danh sách whitelist.

cURL Example:
curl -X POST "https://proxy.webtui.vn/api.php?action=proxy_remove_ip&token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "proxy_id": 1, "ip_remove": "1.2.3.4" }'
JSON Response:
{ "success": true, "message": "Đã xóa 1.2.3.4 khỏi whitelist" }

🔧 Đổi DNS

POST/api.php?action=proxy_change_dns&token=YOUR_TOKEN

Đổi DNS resolver (như 8.8.8.8 và 8.8.4.4) dùng trên 3proxy.

cURL Example:
curl -X POST "https://proxy.webtui.vn/api.php?action=proxy_change_dns&token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "proxy_id": 1, "dns1": "1.1.1.1", "dns2": "1.0.0.1" }'
JSON Response:
{ "success": true, "message": "Đã đổi DNS thành 1.1.1.1 / 1.0.0.1" }

🧦 Đổi Loại Proxy

POST/api.php?action=proxy_change_type&token=YOUR_TOKEN

Chuyển đổi Proxy giữa HTTP và SOCKS5.

cURL Example:
curl -X POST "https://proxy.webtui.vn/api.php?action=proxy_change_type&token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "proxy_id": 1, "proxy_type": "socks5" }'
JSON Response:
{ "success": true, "message": "Đã đổi loại proxy thành socks5" }

🛑 Tắt Proxy

POST/api.php?action=proxy_stop&token=YOUR_TOKEN

Dừng proxy service trên VPS, đổi trạng thái sang Tạm ngưng.

cURL Example:
curl -X POST "https://proxy.webtui.vn/api.php?action=proxy_stop&token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "proxy_id": 1 }'
JSON Response:
{ "success": true, "message": "Đã tắt proxy thành công" }

▶️ Bật Proxy

POST/api.php?action=proxy_start&token=YOUR_TOKEN

Khởi động lại proxy service đang bị tắt trên VPS.

cURL Example:
curl -X POST "https://proxy.webtui.vn/api.php?action=proxy_start&token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "proxy_id": 1 }'
JSON Response:
{ "success": true, "message": "Đã bật proxy thành công" }

🔄 Reset Proxy

POST/api.php?action=proxy_reset&token=YOUR_TOKEN

Đưa trạng thái proxy về thiết lập gốc sạch sẽ.

cURL Example:
curl -X POST "https://proxy.webtui.vn/api.php?action=proxy_reset&token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "proxy_id": 1 }'
JSON Response:
{ "success": true, "message": "Đã reset proxy về mặc định (whitelist, http, DNS Google)" }