🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 7m27s

rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh
rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh
rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
This commit is contained in:
casjay 2025-08-02 18:42:31 -04:00
parent fb27515b61
commit 6931aab5df
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145
3 changed files with 24 additions and 7 deletions

View File

@ -277,9 +277,11 @@ ORPort ${TOR_BRIDGE_OR_PORT:-57004}
DirPort ${TOR_BRIDGE_DIR_PORT:-57005} DirPort ${TOR_BRIDGE_DIR_PORT:-57005}
Nickname ${TOR_BRIDGE_NICK_NAME:-$RANDOM_NICK} Nickname ${TOR_BRIDGE_NICK_NAME:-$RANDOM_NICK}
ContactInfo ${TOR_BRIDGE_ADMIN:-tor-admin@$HOSTNAME} ContactInfo ${TOR_BRIDGE_ADMIN:-tor-admin@$HOSTNAME}
AccountingMax ${TOR_BRIDGE_ACCOUNT_MAX:-2000 GBytes} AccountingMax ${TOR_BRIDGE_ACCOUNT_MAX:-250 GBytes}
PublishServerDescriptor 1 RelayBandwidthRate ${TOR_BRIDGE_BANDWIDTH_RATE:-96 KB}
RelayBandwidthBurst ${TOR_BRIDGE_BANDWIDTH_BURST:-192 KB}
AccountingStart month 1 00:00 AccountingStart month 1 00:00
PublishServerDescriptor 1
# Block ports # Block ports
ExitPolicy reject *:25 ExitPolicy reject *:25

View File

@ -278,7 +278,9 @@ ExitRelay 1
PublishServerDescriptor 1 PublishServerDescriptor 1
Nickname ${TOR_RELAY_NICK_NAME:-$RANDOM_NICK} Nickname ${TOR_RELAY_NICK_NAME:-$RANDOM_NICK}
ContactInfo ${TOR_RELAY_ADMIN:-tor-admin@$HOSTNAME} ContactInfo ${TOR_RELAY_ADMIN:-tor-admin@$HOSTNAME}
AccountingMax ${TOR_RELAY_ACCOUNT_MAX:-2000 GBytes} AccountingMax ${TOR_RELAY_ACCOUNT_MAX:-250 GBytes}
RelayBandwidthRate ${TOR_RELAY_BANDWIDTH_RATE:-96 KB}
RelayBandwidthBurst ${TOR_RELAY_BANDWIDTH_BURST:-192 KB}
AccountingStart month 1 00:00 AccountingStart month 1 00:00
DirPortFrontPage /usr/share/tor/html/exit.html DirPortFrontPage /usr/share/tor/html/exit.html

View File

@ -251,6 +251,12 @@ CookieAuthentication 1
CookieAuthFileGroupReadable 1 CookieAuthFileGroupReadable 1
HashedControlPassword 16:C30604D1D90F341360A14D9A1048C1DF4A3CA2411444E52EE5B954C01F HashedControlPassword 16:C30604D1D90F341360A14D9A1048C1DF4A3CA2411444E52EE5B954C01F
##### bandwidth and accounting (monitoring only)
Nickname ${TOR_SERVER_NICK_NAME:-$RANDOM_NICK}
ContactInfo ${TOR_SERVER_ADMIN:-tor-admin@$HOSTNAME}
AccountingMax ${TOR_SERVER_ACCOUNT_MAX:-250 GBytes}
AccountingStart month 1 00:00
##### directiories and files ##### directiories and files
DataDirectory $DATA_DIR DataDirectory $DATA_DIR
ControlSocket $RUN_DIR/server.sock ControlSocket $RUN_DIR/server.sock
@ -260,20 +266,27 @@ CookieAuthFile $RUN_DIR/server.authcookie
SOCKSPort 0.0.0.0:9050 SOCKSPort 0.0.0.0:9050
SafeSocks ${TOR_SOCKS_SAFE:-0} SafeSocks ${TOR_SOCKS_SAFE:-0}
SocksTimeout ${TOR_SOCKS_TIMEOUT:-10} SocksTimeout ${TOR_SOCKS_TIMEOUT:-10}
#SOCKSPolicy accept *
#SOCKSPolicy accept6 *
##### logging ##### logging
LogMessageDomains 1 LogMessageDomains 1
Log notice file $LOG_DIR/server.log Log notice file $LOG_DIR/server.log
#Log debug file $LOG_DIR/server.debug
##### port mappings ##### port mappings
TransPort 0.0.0.0:9040 TransPort 0.0.0.0:9040
HTTPTunnelPort 0.0.0.0:9080 HTTPTunnelPort 0.0.0.0:9080
##### hidden services
HiddenServiceDir ${TOR_HIDDEN_SERVICE_DIR:-$DATA_DIR/hidden_service}
HiddenServicePort ${TOR_HIDDEN_SERVICE_PORT:-80 127.0.0.1:80}
##### security
SafeLogging 1
UseEntryGuards 1
NumEntryGuards 3
DisableAllSwap 1
##### exit relay ##### exit relay
ExcludeNodes {ru} ExcludeNodes {ru},{cn},{ir},{kp},{sy}
EOF EOF
# define actions # define actions