Tuesday, November 20, 2012

[tutorial] web,vpn,ssh server on one port

contoh kasus:
punya vps / dedicated server, ingin install webserver, openvpn, dan openssh di port 80

masalah:
webserver. openvpn, dan openssh tidak bisa listen di port yang sama

pemecahan:
sslh - ssl/ssh multiplexer
sslh accepts connections in HTTP, HTTPS, SSH, OpenVPN, tinc, XMPP, or any other protocol that can be tested using a regular expression, on the same port

so,
webserver listen di 81
openvpn listen di 82
openssh listen di 22
sslh listen di 80
command:
sslh -u nobody -f -n -p 0.0.0.0:80 --ssh 127.0.0.1:22 --openvpn 127.0.0.1:82 --ssl 127.0.0.1:81

ref:
http://www.rutschle.net/tech/sslh.shtml

0 comments:

Post a Comment