adding hidden tor service by default
parent
911ebb9ca1
commit
efe253201e
@ -0,0 +1,16 @@
|
|||||||
|
BridgeRelay 1
|
||||||
|
ControlSocket /run/tor/control
|
||||||
|
ControlSocketsGroupWritable 1
|
||||||
|
CookieAuthentication 1
|
||||||
|
CookieAuthFileGroupReadable 1
|
||||||
|
CookieAuthFile /run/tor/control.authcookie
|
||||||
|
DataDirectory /var/lib/tor
|
||||||
|
ExitPolicy reject6 *:*, reject *:*
|
||||||
|
ExitRelay 0
|
||||||
|
IPv6Exit 0
|
||||||
|
Log notice stdout
|
||||||
|
ORPort 9001
|
||||||
|
PublishServerDescriptor 0
|
||||||
|
SOCKSPort 0.0.0.0:9050
|
||||||
|
HiddenServiceDir /var/lib/tor/monero
|
||||||
|
HiddenServicePort 18081 172.96.0.20:18081
|
@ -0,0 +1,15 @@
|
|||||||
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install tor -y
|
||||||
|
|
||||||
|
RUN mkdir -p /run/tor \
|
||||||
|
&& chown -R debian-tor:debian-tor /run/tor \
|
||||||
|
&& chmod 700 -R /run/tor
|
||||||
|
|
||||||
|
COPY conf/torrc /etc/tor/torrc
|
||||||
|
|
||||||
|
USER debian-tor
|
||||||
|
|
||||||
|
EXPOSE 9050
|
||||||
|
|
||||||
|
ENTRYPOINT ["tor"]
|
Loading…
Reference in New Issue