https://github.com/archef2000/sslh
docker container for sslh
https://github.com/archef2000/sslh
Last synced: 4 months ago
JSON representation
docker container for sslh
- Host: GitHub
- URL: https://github.com/archef2000/sslh
- Owner: archef2000
- Created: 2021-12-25T13:18:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-12T22:50:14.000Z (about 3 years ago)
- Last Synced: 2025-02-01T05:14:12.089Z (over 1 year ago)
- Language: Dockerfile
- Size: 267 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sslh
Docker alpine image containing sslh, configurable with environment variables.
Usage
By default, no multiplexing options are enabled:
Start and expose port 443 and/or 80 with no configurations
docker run -d -p 443:443 -p 80:80 --name sslh archef2000/sslh
To configure a backend, set at least the *_HOST env var:
Start and configure SSH, HTTP and HTTPS with default ports
docker run -e SSH_HOST=host -e HTTP_HOST=somehost.internal -e SOCKS5_HOST=socks5 -e HTTPS_HOST=somehost.internal -p 443:443 -p 80:80 archef2000/sslh
If the service is not listening on the default port, it can be overridden with the *_PORT env var:
Start and configure SSH,HTTP and HTTPS with custom ports
docker run -e SSH_HOST=host -e SSH_PORT=2222 -e HTTP_HOST=somehost.internal \
-e HTTP_HOST=8080 -e HTTPS_HOST=somehost.internal -e HTTPS_PORT=8443 -e OPENVPN_HOST=openvpn \
-e OPENVPN_PORT=1194 -e SOCKS5_PORT=1080 -e SOCKS5_HOST=socks5 -e ENABLE_IPV6=true -p 443:443 -p 80:80 archef2000/sslh
Available Environment Variables
Naming should be self explanatory, defaults are indicated.
If a *_HOST environment variable is omitted, it will not be configured.
HTTPS_HOST=
HTTPS_PORT=8443
OPENVPN_HOST=
OPENVPN_PORT=1194
SHADOWSOCKS_HOST=
SHADOWSOCKS_PORT=8388
SSH_HOST=
SSH_PORT=22
HTTP_HOST=
HTTP_PORT=80
SOCKS5_HOST=socks5
SOCKS5_PORT=1080
docker-compose
This can also be run with docker-compose:
---
version: '3'
services:
sslh:
image: archef2000/sslh:latest
ports:
- 443:443
- 80:80
environment:
- HTTPS_HOST=web
- HTTPS_PORT=443
- HTTP_HOST=web
- HTTP_PORT=80
- SSH_HOST=172.17.0.1 # Point to the Docker Host's IP
- SSH_PORT=22
- OPENVPN_HOST=openvpn
- OPENVPN_PORT=1194
- SOCKS5_HOST=socks5
- SOCKS5_PORT=1080
- ENABLE_IPV6=true