#!/bin/bash # Instalare Dante SOCKS5 apt update && apt install dante-server -y # Obține IP-ul public PUBLIC_IP=$(curl -s ifconfig.me) # Creare config cat > /etc/danted.conf << EOL logoutput: syslog internal: 0.0.0.0 port = 1080 external: $PUBLIC_IP method: username none user.privileged: proxy user.notprivileged: nobody client pass { from: 0.0.0.0/0 to: 0.0.0.0/0 log: error } socks pass { from: 0.0.0.0/0 to: 0.0.0.0/0 command: bind connect udpassociate log: error } EOL # Pornește serviciul systemctl restart danted systemctl enable danted echo "SOCKS5 instalat pe $PUBLIC_IP:1080"