Advertisement
paperline27

stunnel4 ubuntu 22.04

Jan 6th, 2024
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | Cybersecurity | 0 0
  1. #apt update -y
  2. #apt upgrade -y
  3. #apt install dropbear -y
  4. #apt install stunnel4 -y
  5. #apt install nano -y
  6. #nano /etc/default/dropbear
  7. >NO_START=0ย menjadiย NO_START=1
  8. >DROPBEAR_PORT=3128
  9. #/etc/init.d/dropbear start
  10. #nano /etc/stunnel/stunnel.conf
  11. >
  12. cert = /etc/stunnel/stunnel.pem
  13. client = no
  14. socket = a:SO_REUSEADDR=1
  15. socket = l:TCP_NODELAY=1
  16. socket = r:TCP_NODELAY=1
  17.  
  18. [dropbear]
  19. connect = 127.0.0.1:3128
  20. accept = 443
  21. <
  22. #nano /etc/default/stunnel4
  23. >cukup tambahkanย ENABLED=1ย diawal baris
  24. #openssl genrsa -out key.pem 2048
  25. #openssl req -new -x509 -key key.pem -out cert.pem -days 1095
  26. #cat key.pem cert.pem >> /etc/stunnel/stunnel.pem
  27. #/etc/init.d/stunnel4 start
  28. #netstat -nlpt
  29.  
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement