sslh: add transparent proxy support #12280
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Compile with
USELIBCAP=1
to make use of POSIX capabilities. This will save the required capabilities needed for transparent proxying for unprivileged processes. Furthermore, upstream will drop support for thessl
option in the next future version, hence we should usetls
instead.Signed-off-by: Gabor Seljan sgabe@users.noreply.github.com
Maintainer: @jmccrohan
Compile tested: MT7621, RB750Gr3, v19.07.3
Run tested: MT7621, RB750Gr3, v19.07.0
Description:
--transparent
option added in v1.15 of sslh. This PR updates the init script and the configuration file to support transparent proxying.USELIBCAP
compiler flag. This PR adds thelibcap
package as a dependency and enables theUSELIBCAP
flag. Capabilities support is especially needed for transparent proxying while running sslh as the unprivileged nobody user.ssl
option is deprecated and the legacy support will be removed in sslh v1.21. This PR replaces the oldssl
option with the newtls
option that should be used instead.