Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- install_stunnel()
- {
- clear
- echo "Installing ssl."
- cd /etc/stunnel/
- {
- wget --no-check-certificate https://dl.dropboxusercontent.com/s/s0mg1yzk6m2fz0o/stunnel.pem
- } &>/dev/null
- echo "pid = /tmp/stunnel.pid
- debug = 0
- output = /tmp/stunnel.log
- cert = /etc/stunnel/stunnel.pem
- [SSH]
- connect = 22
- accept = 443
- " >> stunnel.conf
- cd /etc/default && rm stunnel4
- echo 'ENABLED=1
- FILES="/etc/stunnel/*.conf"
- OPTIONS=""
- PPP_RESTART=0
- RLIMITS=""
- ' >> stunnel4
- sudo service stunnel4 restart
- }
- install_stunnel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement