jeromelaliag
Forum Guru
- Joined
- Sep 25, 2012
- Posts
- 1,975
- Solutions
- 4
- Reaction
- 7,157
- Points
- 1,198
# apt-get update
# apt-get stunnel4 dropbear
Edit /etc/default/dropbear
Change NO_START=1 to NO_START=0
Change DROPBEAR_PORT=22 to DROPBEAR_PORT=444
Edit /etc/stunnel/stunnel.conf
Copy and paste this
# openssl genrsa -out key.pem 2048
# openssl req -new -x509 -key key.pem -out cert.pem -days 1095
# cat key.pem cert.pem >> /etc/stunnel/stunnel.pem
Edit /etc/default/stunnel4
Change ENABLED=0 to ENABLED=1
# service stunnel4 start
Yung # sa una means command na ieexecute.
# apt-get stunnel4 dropbear
Edit /etc/default/dropbear
Change NO_START=1 to NO_START=0
Change DROPBEAR_PORT=22 to DROPBEAR_PORT=444
Edit /etc/stunnel/stunnel.conf
Copy and paste this
cert = /etc/stunnel/stunnel.pem
client = no
socket = a:SO_REUSEADDR=1
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
[dropbear]
connect = 127.0.0.1:444
accept = 443
# openssl genrsa -out key.pem 2048
# openssl req -new -x509 -key key.pem -out cert.pem -days 1095
# cat key.pem cert.pem >> /etc/stunnel/stunnel.pem
Edit /etc/default/stunnel4
Change ENABLED=0 to ENABLED=1
# service stunnel4 start
Yung # sa una means command na ieexecute.