Skip to content

Instantly share code, notes, and snippets.

@nstanke
Last active August 29, 2015 14:04
Show Gist options
  • Save nstanke/3a1b5e0f42a304b1ac93 to your computer and use it in GitHub Desktop.
Save nstanke/3a1b5e0f42a304b1ac93 to your computer and use it in GitHub Desktop.
sslh-public-ip
# Default options for sslh initscript
# sourced by /etc/init.d/sslh
# Disabled by default, to force yourself
# to read the configuration:
# - /usr/share/doc/sslh/README.Debian (quick start)
# - /usr/share/doc/sslh/README, at "Configuration" section
# - sslh(8) via "man sslh" for more configuration details.
# Once configuration ready, you *must* set RUN to yes here
# and try to start sslh (standalone mode only)
RUN=yes
# binary to use: forked (sslh) or single-thread (sslh-select) version
DAEMON=/usr/sbin/sslh
# dirty hack to retrieve our public ip
IP=$(curl -s icanhazip.com)
DAEMON_OPTS="-u sslh -p $IP:443 --ssh 127.0.0.1:22 --openvpn 127.0.0.1:1194 --ssl 127.0.0.1:443 -P /var/run/sslh/sslh.pid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment