Skip to content

Instantly share code, notes, and snippets.

@Informatic
Last active March 26, 2025 00:18

Revisions

  1. Informatic revised this gist Jan 15, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    1. Format your storage
    2. Configure networking (again, it's easiest with LuCI, or just take a look at OpenWRT howtos)
    3. Configure `/storage` by adding proper options in `/etc/config/fstab`, or just clicking around in LuCI
    2. Configure networking (it's easiest with LuCI, or just take a look at OpenWRT howtos)
    3. Configure `/storage` by adding proper options in `/etc/config/fstab`, or, again, just clicking around in LuCI
    4. `opkg update && opkg install tor`
    5. Copy proper configuration, namely `/etc/tor/torrc` and `/etc/config/uhttpd`
    6. Reboot (or `/etc/init.d/uhttpd restart && /etc/init.d/tor restart`)
  2. Informatic revised this gist Jan 15, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    1. Format your storage
    2. Configure networking (again, it's easiest with LuCI, or just take a look at OpenWRT howtos)
    3. Configure `/storage` by adding proper options in /etc/config/fstab, or just clicking around in LuCI
    3. Configure `/storage` by adding proper options in `/etc/config/fstab`, or just clicking around in LuCI
    4. `opkg update && opkg install tor`
    5. Copy proper configuration, namely `/etc/tor/torrc` and `/etc/config/uhttpd`
    6. Reboot (or `/etc/init.d/uhttpd restart && /etc/init.d/tor restart`)
  3. Informatic created this gist Jan 15, 2016.
    9 changes: 9 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    1. Format your storage
    2. Configure networking (again, it's easiest with LuCI, or just take a look at OpenWRT howtos)
    3. Configure `/storage` by adding proper options in /etc/config/fstab, or just clicking around in LuCI
    4. `opkg update && opkg install tor`
    5. Copy proper configuration, namely `/etc/tor/torrc` and `/etc/config/uhttpd`
    6. Reboot (or `/etc/init.d/uhttpd restart && /etc/init.d/tor restart`)
    7. Check `/etc/tor/hidden_service/hostname` for your public `.onion` address
    8. ...
    9. PROFIT!
    9 changes: 9 additions & 0 deletions etc-config-fstab
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #### /etc/config/fstab

    # [ ... ]

    config mount
    # Put your storage partition UUID here
    option uuid '0000-0000'
    option target '/storage'
    option enabled '1'
    7 changes: 7 additions & 0 deletions etc-config-uhttpd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #### /etc/config/uhttpd

    # [ ... ]

    config uhttpd 'tor'
    list listen_http '127.0.0.1:8000'
    option home '/storage/tor'
    11 changes: 11 additions & 0 deletions etc-tor-torrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #### /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