mirror of
https://github.com/moparisthebest/sslh
synced 2024-11-28 03:52:21 -05:00
ae008179f0
Fixed calls referring to sockaddr length so they work with FreeBSD. Try target addresses in turn until one works if there are several (e.g. "localhost:22" resolves to an IPv6 address and an IPv4 address and sshd does not listen on IPv6). Fixed sslh-fork so killing the head process kills the listener processes. Heavily cleaned up test suite. Added stress test t_load script. Added coverage (requires lcov). Support for XMPP (Arnaud Gendre). Updated README.MacOSX (Aaron Madlon-Kay).
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
|
|
sslh is available for Mac OS X via MacPorts. If you have
|
|
MacPorts installed on your system you can install sslh by
|
|
executing the following in the Terminal:
|
|
|
|
port install sslh
|
|
|
|
Also, the following is a helpful launchd configuration that
|
|
covers the most common use case of sslh. Save the following
|
|
into a text file, e.g.
|
|
/Library/LaunchDaemons/net.rutschle.sslh.plist, then load it
|
|
with launchctl or simply reboot.
|
|
|
|
----BEGIN FILE----
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>Disabled</key>
|
|
<false/>
|
|
<key>KeepAlive</key>
|
|
<true/>
|
|
<key>Label</key>
|
|
<string>net.rutschle.sslh</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>/opt/local/sbin/sslh</string>
|
|
<string>-f</string>
|
|
<string>-v</string>
|
|
<string>-u</string>
|
|
<string>nobody</string>
|
|
<string>-p</string>
|
|
<string>0.0.0.0:443</string>
|
|
<string>--ssh</string>
|
|
<string>localhost:22</string>
|
|
<string>--ssl</string>
|
|
<string>localhost:443</string>
|
|
</array>
|
|
<key>QueueDirectories</key>
|
|
<array/>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
<key>StandardErrorPath</key>
|
|
<string>/Library/Logs/sslh.log</string>
|
|
<key>StandardOutPath</key>
|
|
<string>/Library/Logs/sslh.log</string>
|
|
<key>WatchPaths</key>
|
|
<array/>
|
|
</dict>
|
|
</plist>
|
|
|
|
----END FILE----
|
|
|
|
|