mamanga

Docker: wireguard easy + adguard+ ssh chat para usarlo solo con wireguard

Apr 16th, 2025
94
0
Never
12
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4. # --- WireGuard-Easy (VPN Server) ---
  5. wireguard:
  6. image: ghcr.io/wg-easy/wg-easy:latest
  7. container_name: wg-easy
  8. environment:
  9. - WG_HOST=tu_vps_ip # Reemplaza con la IP pública de tu VPS
  10. - WG_PORT=51820
  11. - WG_DEFAULT_ADDRESS=10.8.0.x
  12. - WG_DEFAULT_DNS=10.8.0.53 # Usa AdGuard como DNS
  13. - WG_ALLOWED_IPS=10.8.0.0/24
  14. volumes:
  15. - ./wg-easy:/etc/wireguard
  16. ports:
  17. - "51820:51820/udp" # Solo expón este puerto para la VPN
  18. cap_add:
  19. - NET_ADMIN
  20. sysctls:
  21. - net.ipv4.ip_forward=1
  22. restart: unless-stopped
  23. networks:
  24. vpn_net:
  25. ipv4_address: 10.8.0.1
  26.  
  27. # --- AdGuard Home (DNS Blocker) ---
  28. adguard:
  29. image: adguard/adguardhome:latest
  30. container_name: adguard
  31. volumes:
  32. - ./adguard/work:/opt/adguardhome/work
  33. - ./adguard/conf:/opt/adguardhome/conf
  34. networks:
  35. vpn_net:
  36. ipv4_address: 10.8.0.53 # DNS para los clientes VPN
  37. restart: unless-stopped
  38.  
  39. # --- SSH-Chat (Solo red interna VPN) ---
  40. ssh-chat:
  41. image: ghcr.io/shazow/ssh-chat:latest
  42. container_name: ssh-chat
  43. command: --bind "10.8.0.2:22" --admin admin --verbose
  44. networks:
  45. vpn_net:
  46. ipv4_address: 10.8.0.2
  47. restart: unless-stopped
  48.  
  49. # Red interna aislada
  50. networks:
  51. vpn_net:
  52. driver: bridge
  53. ipam:
  54. config:
  55. - subnet: 10.8.0.0/24
  56.  
  57. ¿Cómo funciona?
  58. WireGuard-Easy:
  59.  
  60. Crea la VPN en 10.8.0.0/24.
  61. Asigna a los clientes el DNS 10.8.0.53 (AdGuard).
  62. Solo expone el puerto UDP 51820 (ningún otro servicio es accesible desde fuera).
  63.  
  64. AdGuard Home:
  65.  
  66. Bloquea anuncios/trackers para todos los dispositivos VPN.
  67. Panel web accesible solo dentro de la VPN en http://10.8.0.53:3000.
  68.  
  69. SSH-Chat:
  70.  
  71. Solo escucha en 10.8.0.2:22 (solo accesible para clientes VPN).
  72.  
  73. Conéctate desde un dispositivo VPN con:
  74.  
  75.  
  76. Pasos para implementar
  77.  
  78. Prepara tu VPS Oracle:
  79. sudo apt update && sudo apt install -y docker.io docker-compose
  80. mkdir -p ~/vpn-private/{wg-easy,adguard} && cd ~/vpn-private
  81. nano docker-compose.yml # Pega el contenido YML
  82.  
  83. Inicia los servicios:
  84. sudo docker-compose up -d
  85.  
  86. Configura clientes WireGuard:
  87.  
  88. Los archivos de configuración (peer1.conf, etc.) se generan en ./wg-easy.
  89.  
  90. Descárgalos y conéctate desde cualquier dispositivo.
  91.  
  92. Accede a los servicios:
  93.  
  94. AdGuard: Abre http://10.8.0.53:3000 desde un navegador dentro de la VPN.
  95.  
  96. SSH-Chat: Usa el comando SSH mencionado arriba.
  97.  
  98. Ventajas clave
  99. Totalmente privado: Ningún servicio (excepto WireGuard) está expuesto a Internet.
  100.  
  101. DNS seguro: AdGuard bloquea anuncios/malware para todos los clientes VPN.
  102.  
  103. Chat interno: SSH-Chat solo funciona dentro de la red VPN.
  104.  
  105. ⚠️ Ajustes importantes
  106. Oracle Cloud: Abre solo el puerto UDP 51820 en las reglas de seguridad.
  107.  
  108. Sin HTTPS: No se necesita Nginx porque los servicios son internos.
  109.  
  110. IP estática: Los contenedores tienen IPs fijas en 10.8.0.0/24.
  111.  
  112. 📱 Futura app Android
  113. Para integrar esto en una app:
  114.  
  115. Usa la API de WireGuard Android para conectar automáticamente a la VPN.
  116.  
  117. Implementa un cliente SSH custom que apunte a 10.8.0.2:22.
  118.  
  119. Configura el DNS 10.8.0.53 programáticamente.
  120.  
  121. Ejemplo de conexión VPN en Android (Kotlin):
  122.  
  123. val config = """
  124. [Interface]
  125. PrivateKey = <clave_privada_cliente>
  126. Address = 10.8.0.x/24
  127. DNS = 10.8.0.53
  128. [Peer]
  129. PublicKey = <clave_pública_servidor>
  130. AllowedIPs = 0.0.0.0/0
  131. Endpoint = tu_vps_ip:51820
  132. """.trimIndent()
  133. WireGuard.connect(config) // Usa la librería oficial
  134.  
  135.  
  136.  
Advertisement
Comments
  • User was banned
  • Korweutov
    219 days
    # CSS 0.83 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1S1iTruSLkgEPO8QtTuo2twS4f2FoJ3_l0-p4GKqeAUY/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8.  
    9. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    10.  
    11. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification).
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment