mirror of
https://github.com/fphammerle/docker-tor-proxy.git
synced 2025-10-27 02:43:35 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0cd4a1b854 | |||
| 55b6ed7889 | |||
| 1eba286ed7 | |||
| a75b7aebae |
+14
-1
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [4.3.1] - 2021-05-15
|
||||
### Fixed
|
||||
- create prerouting chain if not already created by container runtime
|
||||
(fixes dns proxy with direct routing & transparent proxy on some hosts)
|
||||
|
||||
## [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 +79,9 @@ 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.1...HEAD
|
||||
[4.3.1]: https://github.com/fphammerle/docker-tor-proxy/compare/v4.3.0...v4.3.1
|
||||
[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
|
||||
|
||||
+5
-1
@@ -3,8 +3,12 @@
|
||||
set -e
|
||||
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
nft add chain ip nat PREROUTING { type nat hook prerouting priority dstnat \; } || true
|
||||
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