- Format your storage
- Configure networking (it's easiest with LuCI, or just take a look at OpenWRT howtos)
- Configure
/storage
by adding proper options in/etc/config/fstab
, or, again, just clicking around in LuCI opkg update && opkg install tor
- Copy proper configuration, namely
/etc/tor/torrc
and/etc/config/uhttpd
- Reboot (or
/etc/init.d/uhttpd restart && /etc/init.d/tor restart
) - Check
/etc/tor/hidden_service/hostname
for your public.onion
address - ...
- PROFIT!
Last active
September 24, 2024 14:39
-
-
Save Informatic/65261ffd1aee8ddae861 to your computer and use it in GitHub Desktop.
Minimal Tor hidden service on OpenWRT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### /etc/config/fstab | |
# [ ... ] | |
config mount | |
# Put your storage partition UUID here | |
option uuid '0000-0000' | |
option target '/storage' | |
option enabled '1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### /etc/config/uhttpd | |
# [ ... ] | |
config uhttpd 'tor' | |
list listen_http '127.0.0.1:8000' | |
option home '/storage/tor' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### /etc/tor/torrc | |
## Basic configuration | |
Log notice syslog | |
RunAsDaemon 1 | |
DataDirectory /etc/tor | |
User tor | |
## Hidden service configuration | |
HiddenServiceDir /etc/tor/hidden_service | |
HiddenServicePort 80 127.0.0.1:8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment