mirror of
https://github.com/fphammerle/docker-tor-proxy.git
synced 2025-10-27 02:43:35 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1eba286ed7 | |||
| a75b7aebae |
+8
-1
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [4.3.0] - 2021-05-07
|
||||
### Added
|
||||
- when running entrypoint as `uid=0`:
|
||||
add `nftables` rule forwarding udp dns requests (port 53) to tor
|
||||
(alternative for less flexible `docker run --publish 53:9053 …`)
|
||||
|
||||
## [4.2.0] - 2021-04-30
|
||||
### Added
|
||||
- when running entrypoint as `uid=0`:
|
||||
@@ -68,7 +74,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Added
|
||||
- tor socks5 & DNS proxy
|
||||
|
||||
[Unreleased]: https://github.com/fphammerle/docker-tor-proxy/compare/v4.2.0...HEAD
|
||||
[Unreleased]: https://github.com/fphammerle/docker-tor-proxy/compare/v4.3.0...HEAD
|
||||
[4.3.0]: https://github.com/fphammerle/docker-tor-proxy/compare/v4.2.0...v4.3.0
|
||||
[4.2.0]: https://github.com/fphammerle/docker-tor-proxy/compare/v4.1.0...v4.2.0
|
||||
[4.1.0]: https://github.com/fphammerle/docker-tor-proxy/compare/v4.0.0...v4.1.0
|
||||
[4.0.0]: https://github.com/fphammerle/docker-tor-proxy/compare/v3.0.0...v4.0.0
|
||||
|
||||
+4
-1
@@ -4,7 +4,10 @@ set -e
|
||||
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
nft add rule ip nat PREROUTING ip protocol tcp fib daddr type != local counter redirect to :9040 \
|
||||
|| echo 'failed to configure nftables for transparent proxy (missing CAP_NET_ADMIN?)'
|
||||
|| echo 'warning: failed to configure nftables for transparent proxy (missing CAP_NET_ADMIN?)'
|
||||
nft add rule ip nat PREROUTING fib daddr type local udp dport 53 counter redirect to :9053 \
|
||||
|| echo 'warning: failed to configure nftables for DNS proxy' \
|
||||
'(alternative for less flexible `docker run --publish 53:9053 ...`)'
|
||||
exec su -s /bin/sh tor -- "$0" "$@"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user