From 83dde3d6b9794aa03f8c12927dd05999fa7f54d2 Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 11 Jun 2025 16:19:17 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/01-tor-bridge.sh | 10 +++++++++- rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh | 12 ++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh b/rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh index 34d9fbb..19def2b 100755 --- a/rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh +++ b/rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh @@ -277,9 +277,17 @@ ORPort ${TOR_BRIDGE_OR_PORT:-57004} DirPort ${TOR_BRIDGE_DIR_PORT:-57005} Nickname ${TOR_BRIDGE_NICK_NAME:-$RANDOM_NICK} ContactInfo ${TOR_BRIDGE_ADMIN:-tor-admin@$HOSTNAME} -AccountingMax ${TOR_BRIDGE_ACCOUNT_MAX:-1000 GBytes} +AccountingMax ${TOR_BRIDGE_ACCOUNT_MAX:-2000 GBytes} PublishServerDescriptor 1 AccountingStart month 1 00:00 + +# Block ports +ExitPolicy reject *:25 +ExitPolicy reject *:465 +ExitPolicy reject *:587 +ExitPolicy reject *:135-139 +ExitPolicy accept *:* + %include $CONF_DIR/conf.d/*.conf EOF diff --git a/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh b/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh index 8760639..0fa250a 100755 --- a/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh +++ b/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh @@ -276,11 +276,19 @@ DirPort ${TOR_RELAY_DIR_PORT:-57002} ExitRelay 1 PublishServerDescriptor 1 -ContactInfo ${TOR_RELAY_ADMIN:-tor-admin@$HOSTNAME} Nickname ${TOR_RELAY_NICK_NAME:-$RANDOM_NICK} -AccountingMax ${TOR_RELAY_ACCOUNT_MAX:-1000 GBytes} +ContactInfo ${TOR_RELAY_ADMIN:-tor-admin@$HOSTNAME} +AccountingMax ${TOR_RELAY_ACCOUNT_MAX:-2000 GBytes} AccountingStart month 1 00:00 DirPortFrontPage /usr/share/tor/html/exit.html + +# Block ports +ExitPolicy reject *:25 +ExitPolicy reject *:465 +ExitPolicy reject *:587 +ExitPolicy reject *:135-139 +ExitPolicy accept *:* + %include $CONF_DIR/conf.d/*.conf EOF