Enable Tor DNSPort (#17)

This commit is contained in:
$hoot-Pairs 2020-05-14 17:15:06 +08:00 committed by GitHub
parent f8a6c02360
commit 260fdc6eca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,6 @@ COPY torrc /etc/tor/
HEALTHCHECK --timeout=10s --start-period=60s \
CMD curl --fail --socks5-hostname localhost:9150 -I -L 'https://www.facebookcorewwwi.onion/' || exit 1
EXPOSE 9150
EXPOSE 53 9150
CMD ["/usr/bin/tor", "-f", "/etc/tor/torrc"]

View file

@ -6,5 +6,6 @@ services:
container_name: tor-socks-proxy
image: peterdavehello/tor-socks-proxy:latest
ports:
- "127.0.0.1:53:53"
- "127.0.0.1:9150:9150"
restart: unless-stopped

1
torrc
View file

@ -1,5 +1,6 @@
User tor
HardwareAccel 1
Log notice stdout
DNSPort 0.0.0.0:53
SocksPort 0.0.0.0:9150
DataDirectory /var/lib/tor