netpipe November 20, 2022

configuring a tor openwrt setup with uhttpd was very easy and hastle free. here are some notes to help you with yours.

opkg update;opkg install tor openssh-sftp-server php8 php8-cli
mkdir /www/tor or /root/tor

vi /etc/config/uhttpd — add these lines

config uhttpd ‘secondary’
option home ‘/root/tor’
option redirect_https ‘0’
option rfc1918_filter ‘1’
option max_requests ‘3’
option max_connections ‘100’
option cert ‘/etc/uhttpd.crt’
option key ‘/etc/uhttpd.key’
list index_page ‘index.php’
option tcp_keepalive ‘1’
list interpreter ‘.php=/usr/bin/php8-cgi’
list listen_http ‘’

vi /etc/tor/torrc — add these lines
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80

service restart tor

cat /var/lib/tor/hidden_service/hostname << this will have your website address in it

sftp is a good combination with this then upload site with filezilla

apache2 is also another good easy to use option

DocumentRoot “/usr/share/apache2/htdocs”
DocumentRoot “/root/tor” adding php support just change to php8-cli

ext root is a good option for extra space too, easy to do with luci but takes rebooting after installing blockmount and fsutils

Leave a comment.