3 # Starts the SSLH server
6 # default setup : listen on port 8090 forward ssh traffic to
7 # localhost:22 and http traffic to localhost:80
8 SSLH_ARGS
="--listen 0.0.0.0:8090 --ssh 127.0.0.1:22 --http 127.0.0.1:80"
10 # Allow a few customizations from a config file (overrides
12 test -r /etc
/default
/sslh
&& .
/etc
/default
/sslh
15 SSLH_ARGS
="$SSLH_ARGS --user root"
16 echo -n "Starting sslh: "
17 start-stop-daemon
-S -q -p /var
/run
/sslh.pid \
18 --exec /usr
/sbin
/sslh
-- $SSLH_ARGS
19 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
23 printf "Stopping sslh: "
24 start-stop-daemon
-K -q -p /var
/run
/sslh.pid
25 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
44 echo "Usage: $0 {start|stop|restart}"