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