Advertisement
Guest User

Untitled

a guest
Apr 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. wget https://launchpad.net/ubuntu/+archive/primary/+files/dante-server_1.4.2+dfsg-2build1_amd64.deb
  4. dpkg -i dante-server_1.4.2+dfsg-2build1_amd64.deb
  5. echo '
  6. logoutput: syslog /var/log/danted.log
  7. internal: eth0 port = 1080
  8. external: eth0
  9.  
  10. socksmethod: username
  11. user.privileged: root
  12. user.unprivileged: nobody
  13.  
  14. client pass {
  15. from: 0.0.0.0/0 to: 0.0.0.0/0
  16. log: error
  17. }
  18.  
  19. socks pass {
  20. from: 0.0.0.0/0 to: 0.0.0.0/0
  21. command: connect
  22. log: error
  23. method: username
  24. }' > /etc/danted.conf
  25.  
  26. # basic ufw installation
  27. sudo apt-get install ufw
  28. sudo ufw status
  29. # https://wiki.dieg.info/socks
  30. sudo ufw allow ssh
  31. sudo ufw allow proto tcp from any to any port 1080
  32. sudo ufw status numbered
  33. sudo ufw enable
  34.  
  35. sudo systemctl enable danted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement