Advertisement
imKobz

Untitled

Apr 10th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. install_stunnel()
  2. {
  3. clear
  4. echo "Installing ssl."
  5. cd /etc/stunnel/
  6. {
  7. wget --no-check-certificate https://dl.dropboxusercontent.com/s/s0mg1yzk6m2fz0o/stunnel.pem
  8. } &>/dev/null
  9.  
  10. echo "pid = /tmp/stunnel.pid
  11. debug = 0
  12. output = /tmp/stunnel.log
  13. cert = /etc/stunnel/stunnel.pem
  14. [SSH]
  15. connect = 22
  16. accept = 443
  17. " >> stunnel.conf
  18. cd /etc/default && rm stunnel4
  19. echo 'ENABLED=1
  20. FILES="/etc/stunnel/*.conf"
  21. OPTIONS=""
  22. PPP_RESTART=0
  23. RLIMITS=""
  24. ' >> stunnel4
  25. sudo service stunnel4 restart
  26. }
  27. install_stunnel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement