Là một dự án mã nguồn mở, yrutschle/sslh đã đạt 5.1k sao trên GitHub, ngôn ngữ C. Applicative Protocol Multiplexer (e.g. share SSH and HTTPS on the same port)
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
sslh accepts connections on specified ports, and forwards
them further based on tests performed on the first data
packet sent by the remote client.
Probes for HTTP, TLS/SSL (including SNI and ALPN), SSH, WireGuard,
OpenVPN, tinc, XMPP, SOCKS5, are implemented, and any other
protocol that can be tested using a regular expression, can
be recognised. A typical use case is to allow serving
several services on port 443 (e.g. to connect to SSH from
inside a corporate firewall, which almost never block port
443) while still serving HTTPS on that port.
Hence sslh acts as a protocol demultiplexer, or a
switchboard. With the SNI and ALPN probe, it makes a good
front-end to a virtual host farm hosted behind a single IP
address.
sslh has the bells and whistles expected from a mature
daemon: privilege and capabilities dropping, inetd support,
systemd support, transparent proxying, support for HAProxy's
proxyprotocol, chroot, logging, IPv4 and IPv6, TCP and UDP,
a fork-based, a select-based model, and yet another based on
libev for larger installations.
Install
Please refer to the install guide.
Security
Matthias Gerstner from OpenSUSE has performed a code review
of sslh from a security point of view, which revealed a
number of problems, including two CVE. His findings have
already been taken partly into account for the more critical
ones. The full
review
is well worth reading if you are using sslh in production.
Part of the securing your installation involves configuring
connection limits. This is described in this
guide.
Configuration
Please refer to the configuration guide.
Transparent proxying
Transparent proxying allows the target server to see the
original client IP address, i.e. sslh becomes invisible.
The same result can be achieved more easily by using
proxyprotocol if the backend server supports it. This is a
simple setting to add to the sslh protocol configuration,
usually with an equivalently simple setting to add in
the backend server configuration, so try that first. This is
explained in a separate document.
This means services behind sslh (Apache, sshd and so on)
will see the external IP and ports as if the external world
connected directly to them. This simplifies IP-based access
control (or makes it possible at all), and makes it possible
to use IP-based banning tools such as fail2ban.
There are two methods. One uses additional virtual network
interfaces. The principle and basic setup is described
here, with further
scenarios described there.
There is also a guide to use podman.
Another method uses iptable packet marking features, and is
highly dependent on your network environment and
infrastructure setup. There is no known generic approach,
and if you do not find directions for your exact setup, you
will probably need an extensive knowledge of network
management and iptables setup".
It is described in its own document.
In most cases, you will be better off following the first
method.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/yrutschle/sslh là nguồn chính thức.
yrutschle/sslh có phải mã nguồn mở không?
Có — yrutschle/sslh phát hành theo license GPL-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/yrutschle/sslh.
yrutschle/sslh là gì?
yrutschle/sslh (yrutschle/sslh) là dự án C trên GitHub. Theo mô tả gốc: Applicative Protocol Multiplexer (e.g. share SSH and HTTPS on the same port)
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về sslh?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về sslh.