|
|
@@ -11,12 +11,12 @@ import os
|
|
|
# --- CONFIGURACIÓN BASE ---
|
|
|
LISTENING_PORT = int(sys.argv[1]) if len(sys.argv) > 1 else 8080
|
|
|
SSH_HOST = '127.0.0.1'
|
|
|
-SSH_PORT = 227 # Compatible con Dropbear (22 o 223) y OpenSSH
|
|
|
+SSH_PORT = 22 # Compatible con Dropbear (22 o 223) y OpenSSH
|
|
|
LOG_FILE = "/root/proxy.log"
|
|
|
MAX_LOG_SIZE = 10 * 1024 * 1024 # 10MB
|
|
|
|
|
|
# --- CONFIGURACIÓN DE SEGURIDAD AVANZADA ---
|
|
|
-MAX_CONNECTIONS = 1000
|
|
|
+MAX_CONNECTIONS = 100
|
|
|
CONNECTION_COOLDOWN = 0.7
|
|
|
TIMEOUT = 60
|
|
|
BUFLEN = 16384
|
|
|
@@ -35,7 +35,9 @@ CUSTOM_HEADERS = {
|
|
|
"X-Forwarded-For": "127.0.0.1",
|
|
|
"Content-Type": "text/html; charset=UTF-8",
|
|
|
"Proxy-Connection": "keep-alive",
|
|
|
- "Cache-Control": "no-cache"
|
|
|
+ "Cache-Control": "no-cache",
|
|
|
+ "X-Proxy-Agent": "Gemini-Ultra-Robust-v3",
|
|
|
+ "X-Forwarded-For-Proxy": "True"
|
|
|
}
|
|
|
|
|
|
# --- MENSAJES ROTATIVOS (Status 101) ---
|
|
|
@@ -43,7 +45,19 @@ MENSAJES = [
|
|
|
"🚀 CONEXION ESTABLECIDA",
|
|
|
"🛡️ SEGURIDAD ACTIVA",
|
|
|
"🔋 OPTIMIZACION SISTEMA",
|
|
|
- "🌐 ACCESO NETMOD OK"
|
|
|
+ "Pfsense",
|
|
|
+ "OPNsense",
|
|
|
+ "VyOS",
|
|
|
+ "Claro",
|
|
|
+ "Windows Server",
|
|
|
+ "BSD Free",
|
|
|
+ "VyOS",
|
|
|
+ "Altice",
|
|
|
+ "Viva",
|
|
|
+ "Google",
|
|
|
+ "VyOS",
|
|
|
+ "TNSR",
|
|
|
+ "🌐 ACCESO OK"
|
|
|
]
|
|
|
mensaje_cycle = itertools.cycle(MENSAJES)
|
|
|
cycle_lock = threading.Lock()
|