{"id":13775700,"url":"https://github.com/itshaadi/torbox","last_synced_at":"2025-05-11T08:33:05.705Z","repository":{"id":216001537,"uuid":"210219799","full_name":"itshaadi/torbox","owner":"itshaadi","description":"Container-based Tor access point (Anonymizing Middlebox).","archived":false,"fork":false,"pushed_at":"2019-10-13T16:15:42.000Z","size":18,"stargazers_count":61,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-03T17:12:11.737Z","etag":null,"topics":["accesspoint","anonymizing-middlebox","docker","gateway","tor","transparent-proxy","wifi"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itshaadi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-09-22T21:58:27.000Z","updated_at":"2023-10-24T19:09:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"db729099-a1b5-44b7-bbfd-f50302eb0121","html_url":"https://github.com/itshaadi/torbox","commit_stats":null,"previous_names":["itshaadi/torbox"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itshaadi%2Ftorbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itshaadi%2Ftorbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itshaadi%2Ftorbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itshaadi%2Ftorbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itshaadi","download_url":"https://codeload.github.com/itshaadi/torbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225027511,"owners_count":17409450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accesspoint","anonymizing-middlebox","docker","gateway","tor","transparent-proxy","wifi"],"created_at":"2024-08-03T17:01:46.556Z","updated_at":"2024-11-17T10:31:52.671Z","avatar_url":"https://github.com/itshaadi.png","language":"Shell","funding_links":[],"categories":["\u003ca id=\"6e80463404d46f0493cf6e84597e4b5c\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"e99ba5f3de02f68412b13ca718a0afb6\"\u003e\u003c/a\u003eTor\u0026\u0026\u0026Onion\u0026\u0026洋葱"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003eTor Box\u003c/h3\u003e\n  \u003cp align=\"center\"\u003eContainer-based Tor access point (Anonymizing Middlebox).\u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/GouveaHeitor/nipe/blob/master/LICENSE.md\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/10201704/65461099-245fde00-de60-11e9-95e4-1f0c57806c3f.jpg\" alt=\"how it works\"\u003e\n\u003c/p\u003e\n\n### How it works\n    Tor Box is a script for Setting up a Tor wireless access point using docker containers.\n    it's aimed to be used as an Always-On anti-censorship BACKUP gateway.\n\n    This script enables you to directly route traffic of connected devices to the Tor network\n    Currently Tor Box only supports IPv4, and only traffic from TCP/DNS/DHCP is allowed\n    any non-local traffic from other protocols are blocked.\n\n    this script is not optimized for visiting .onion addresses. please use Tor Browser instead.\n    Tor Box is to be used only as a BACKUP for situations where popular solutions (such as OpenVPN)\n    are temporarily blocked by a state firewall.\n\n    This isolation is achived by sharing a Network Namespace between the containers.\n\n\n#### Requirements:\n* wireless network card/adapter (with proper drivers already installed).\n* following packages must be installed: `iw`, `iptables`, `docker`\n\n#### Defaults:\n* Gateway: `192.168.162.1/24`\n* SSID: `Tor Box`\n* Passphrase: `torbox12345`\n\n**note:** edit `templates/torrc.template` according to your needs but do not touch `TransPort` and `DNSPort`\n\n### Installation\nTested on:\n* Debian 10 with RT5370 Wireless Adapter\n* Raspberry Pi 3\n\n```\ngit clone https://github.com/itshaadi/torbox.git\n\ncd torbox\n\nchmod +x torbox\n```\n\nuseful documentations:\n* [hostapd](https://wiki.gentoo.org/wiki/Hostapd)\n* [dnsmasq](https://wiki.archlinux.org/index.php/Dnsmasq)\n* [Local Redirection and Anonymizing Middlebox](https://trac.torproject.org/projects/tor/wiki/doc/TransparentProxy#LocalRedirectionandAnonymizingMiddleboxy)\n\n### Usage\n\n```\n./torbox help\n\nUsage: \n \t \u003cstart|stop\u003e \u003cinterface\u003e \n \t \u003clog\u003e \u003ccontainer\u003e\n\neg: ./torbox start wlan0\n    ./torbox log torbox-tor\n    ./torbox stop wlan0\n```\n\n#### nmap results\n```\nsudo nmap -sU -p 10558 38.84.132.167 # us1.freeopenvpn.org (non-local UDP connection is dropped)\n\nStarting Nmap 7.80 ( https://nmap.org ) at XXXXXX\nNmap scan report for 38.84.132.167\nHost is up (0.00085s latency).\n\nPORT      STATE    SERVICE\n10558/udp filtered unknown\n\nsudo nmap -sU -p 5353 192.168.162.1 # DNS (which uses UDP) is allowed\n\nStarting Nmap 7.80 ( https://nmap.org ) at XXXXX\nNmap scan report for 192.168.162.1\nHost is up (0.00053s latency).\n\nPORT     STATE  SERVICE\n5353/udp open   zeroconf\nMAC Address: XXXXXXXX (Tenda Technology)\n```\n\u003e  Filtered means that a firewall, filter, or other network obstacle is blocking the port so that Nmap cannot tell whether it is open or closed. [source](https://wiki.onap.org/display/DW/Nmap)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitshaadi%2Ftorbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitshaadi%2Ftorbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitshaadi%2Ftorbox/lists"}