adhdhackers

VM Wireguard Script

Mar 31st, 2026
16,953
0
Never
11
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # VPN Setup #Script for VM w Auto Detection
  4.  
  5. # =============================
  6. # EDIT THIS SECTION for your VM subnet and Proxmox host IP
  7. HOST_IP="192.168.1.76"           # Proxmox host vmbr0 IP
  8. VM_SUBNET="192.168.1.0/24"       # VM network/subnet
  9. WG_CONF="/etc/wireguard/wg0.conf" # Path to your existing WireGuard config on host
  10. # =============================
  11.  
  12. echo "(1) Installing Packages..."
  13. apt update
  14. apt install -y wireguard-tools resolvconf iptables iproute2 curl sudo
  15.  
  16. echo "(2) IP Forwarding..."
  17. sysctl -w net.ipv4.ip_forward=1
  18. echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/99-ipforward.conf
  19. sysctl --system
  20.  
  21. echo "(3) Wireguard NAT Setup..."
  22. iptables -t nat -A POSTROUTING -s $VM_SUBNET -o wg0 -j MASQUERADE
  23. apt install -y iptables-persistent
  24. netfilter-persistent save
  25. wg-quick up $WG_CONF
  26.  
  27. echo "(4) Configuring Gateway & DNS..."
  28. VM_IF=$(ip -o link show | awk -F': ' '{print $2}' | grep -v lo | head -n1)
  29. ip route replace default via $HOST_IP dev $VM_IF
  30. # Set DNS to host VPN DNS (adjust if needed)
  31. echo "nameserver 10.2.0.1" > /etc/resolv.conf
  32.  
  33.  
  34. echo "Setup Complete!"
  35.  
  36.  
  37.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Zicolyy
    36 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Sylpadgu
    27 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Huvinig
    12 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=oisqrwkeou
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment