mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-07 10:53:15 +03:00
Updated configuration info and startup scripts to use the configuration file rather than command line parameters
This commit is contained in:
parent
43d2db9123
commit
88af6ebaee
1
Makefile
1
Makefile
@ -75,7 +75,6 @@ install: sslh $(MAN)
|
|||||||
install-debian: install sslh $(MAN)
|
install-debian: install sslh $(MAN)
|
||||||
sed -e "s+^PREFIX=+PREFIX=$(PREFIX)+" scripts/etc.init.d.sslh > /etc/init.d/sslh
|
sed -e "s+^PREFIX=+PREFIX=$(PREFIX)+" scripts/etc.init.d.sslh > /etc/init.d/sslh
|
||||||
chmod 755 /etc/init.d/sslh
|
chmod 755 /etc/init.d/sslh
|
||||||
cp scripts/etc.default.sslh /etc/default/sslh
|
|
||||||
update-rc.d sslh defaults
|
update-rc.d sslh defaults
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
13
README.md
13
README.md
@ -93,7 +93,8 @@ Installation
|
|||||||
|
|
||||||
make
|
make
|
||||||
cp sslh-fork /usr/local/sbin/sslh
|
cp sslh-fork /usr/local/sbin/sslh
|
||||||
cp scripts/etc.default.sslh /etc/default/sslh
|
cp basic.cfg /etc/sslh.cfg
|
||||||
|
vi /etc/sslh.cfg
|
||||||
|
|
||||||
* For Debian:
|
* For Debian:
|
||||||
|
|
||||||
@ -113,14 +114,12 @@ start automatically at boot-up, e.g. under Debian:
|
|||||||
Configuration
|
Configuration
|
||||||
=============
|
=============
|
||||||
|
|
||||||
You can edit settings in /etc/default/sslh:
|
If you use the scripts provided, sslh will get its
|
||||||
|
configuration from /etc/sslh.cfg. Please refer to
|
||||||
LISTEN=ifname:443
|
example.cfg for an overview of all the settings.
|
||||||
SSH=localhost:22
|
|
||||||
SSL=localhost:443
|
|
||||||
|
|
||||||
A good scheme is to use the external name of the machine in
|
A good scheme is to use the external name of the machine in
|
||||||
`$LISTEN`, and bind `httpd` to `localhost:443` (instead of all
|
`listen`, and bind `httpd` to `localhost:443` (instead of all
|
||||||
binding to all interfaces): that way, HTTPS connections
|
binding to all interfaces): that way, HTTPS connections
|
||||||
coming from inside your network don't need to go through
|
coming from inside your network don't need to go through
|
||||||
`sslh`, and `sslh` is only there as a frontal for connections
|
`sslh`, and `sslh` is only there as a frontal for connections
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
LISTEN=ifname:443
|
|
||||||
SSH=localhost:22
|
|
||||||
SSL=localhost:443
|
|
||||||
USER=nobody
|
|
||||||
PID=/var/run/sslh.pid
|
|
@ -27,7 +27,7 @@ DAEMON=$PREFIX/sbin/sslh
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
echo "Start services: sslh"
|
echo "Start services: sslh"
|
||||||
$DAEMON --user ${USER} --pidfile ${PID} --listen ${LISTEN} --ssh ${SSH} --ssl ${SSL}
|
$DAEMON -F /etc/sslh.cfg
|
||||||
logger -t ${tag} -p ${facility} -i 'Started sslh'
|
logger -t ${tag} -p ${facility} -i 'Started sslh'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user