There is a funny little hack out there called sslh, which lets one accept both https and ssh connection on the same, one port. It lets me connect from inside my corporate proxy, which allows outbound connections on port 443, using Putty, while still being able to serve Web pages over https.
Created attachment 175588 [details] sslh-1.5.ebuild Ebuild for the sslh-1.5.
Created attachment 175590 [details] sslh.init.d Gentoo init.d script for the sslh.
(In reply to comment #1) > Created an attachment (id=175588) [edit] > sslh-1.5.ebuild > > Ebuild for the sslh-1.5. > Please use doinitd,doconfd for installing init.d conf.d files.
(In reply to comment #3) > Please use doinitd,doconfd for installing init.d conf.d files. 1) There is no documentation about those functions on the web (http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1). The only description is in "man 5 ebuild". Somebody should fix it. 2) doinitd, doconfd, ... do not allow change the source file name! So, if I want to have "/etc/init.d/smtg" and the source file is called "smtg.init.d" then I have to use "cp" and not the "doinitd". Or am I wrong?
(In reply to comment #4) > (In reply to comment #3) > 2) doinitd, doconfd, ... do not allow change the source file name! So, if I > want to have "/etc/init.d/smtg" and the source file is called "smtg.init.d" > then I have to use "cp" and not the "doinitd". > > Or am I wrong? > There's newconfd and newinitd for that, sorry I didn't see that detail
(In reply to comment #5) > There's newconfd and newinitd for that, sorry I didn't see that detail Thank you for the hint. Anyway, somebody should fix the documentation on the web.
Created attachment 175686 [details] sslh-1.5.ebuild Correction of init.d and conf.d files installation.
(In reply to comment #7) > Created an attachment (id=175686) [edit] > sslh-1.5.ebuild > > Correction of init.d and conf.d files installation. > It's best that all sed stuff is done in src_unpack and dies on error. Also dosbin, dodoc should doesn't die on its own as well. Adding sunrise for notification. For further contributions please consider contacting sunrise project on #gentoo-sunrise @ FreeNode (best around evening in Europe) and reading their documentation[1][2]. And please be patient and give them some time to review. 1: http://www.gentoo.org/proj/en/sunrise/ 2: http://overlays.gentoo.org/proj/sunrise/wiki
Created attachment 176463 [details] sslh-1.5.ebuild Some corrections for the sslh-1.5. Thanks to Serkan.
An updated ebuild for sslh is already in sunrise overlay: https://overlays.gentoo.org/proj/sunrise/browser/reviewed/net-misc/sslh
ive cleaned up the ebuild and added 1.7a to the tree. thanks !