{"id":31956289,"url":"https://github.com/catsec/wg-tor-proxy","last_synced_at":"2026-07-01T19:31:29.154Z","repository":{"id":317192872,"uuid":"1066359509","full_name":"catsec/wg-tor-proxy","owner":"catsec","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-29T12:23:34.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-23T19:52:00.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catsec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-29T11:29:48.000Z","updated_at":"2025-09-29T12:23:37.000Z","dependencies_parsed_at":"2025-09-29T13:30:54.400Z","dependency_job_id":null,"html_url":"https://github.com/catsec/wg-tor-proxy","commit_stats":null,"previous_names":["catsec/wg-tor-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/catsec/wg-tor-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catsec%2Fwg-tor-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catsec%2Fwg-tor-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catsec%2Fwg-tor-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catsec%2Fwg-tor-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catsec","download_url":"https://codeload.github.com/catsec/wg-tor-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catsec%2Fwg-tor-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35020869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-14T14:48:20.146Z","updated_at":"2026-07-01T19:31:29.129Z","avatar_url":"https://github.com/catsec.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wg-tor-proxy\nWireGuard → Tor SOCKS proxy tailored for **Molly (Signal)**. The client routes only to the server’s tunnel IP; inside the container, SOCKS and DNS are handled via Tor. No logs by default; enable `DEBUG=true` if you need to troubleshoot.\n\n## Quick start\n```bash\ndocker compose up -d\n```\nClient files (after first start):\n- `./data/molly-tor.conf` — import into WireGuard mobile\n- `./data/molly-tor.qr.txt` — ASCII QR (optional)\n- `./data/molly-tor.txt` — quick Molly steps\n\n## Synology DSM 7.2 (Intel/amd64) notes\n- Ensure `/dev/net/tun` exists and `tun` module is loaded (DSM 7.2 usually is):\n  ```sh\n  lsmod | grep tun\n  ls -l /dev/net/tun\n  ```\n- Compose already includes:\n  ```yaml\n  devices:\n    - /dev/net/tun:/dev/net/tun\n  cap_add:\n    - NET_ADMIN\n  ```\n- Map your data folder to a Synology path, e.g. `/volume1/docker/wg-tor/data:/data`.\n\n## Router\nForward **UDP 51820 → your NAS**. If behind dynamic IP, use a DNS name and set `WG_HOST` to it in `docker-compose.yml`.\n\n## Debug\nSet `DEBUG=true` in `docker-compose.yml` and restart. Tor logs switch to stdout; entrypoint prints status.\n\n## Security\n- Only SOCKS (`10.13.13.1:9050`) and DNS (redirected to Tor) are reachable over the tunnel.\n- Keys live under `./data` — keep this folder private.\n\n\n## GitHub Actions (GHCR) workflow\nThis repo includes `.github/workflows/build.yml` to build **linux/amd64 + linux/arm64** and push to **GHCR** on:\n- pushes to `main`/`master` → tags `:latest` and `:\u003cshort-sha\u003e`\n- tags `v*` (e.g., `v0.1.0`) → tags `:latest` and `:v0.1.0`\n\nNo extra secrets are needed: the default `GITHUB_TOKEN` has `packages: write` permission.\nTo pull on Synology:\n```bash\ndocker login ghcr.io -u catsec -p \u003ca classic PAT or token\u003e\ndocker pull ghcr.io/catsec/wg-tor-proxy:latest\n```\n\n**Compose example using the published image:**\n```yaml\nservices:\n  wg-tor:\n    image: ghcr.io/catsec/wg-tor-proxy:latest\n    devices:\n      - /dev/net/tun:/dev/net/tun\n    cap_add:\n      - NET_ADMIN\n    volumes:\n      - /volume1/docker/wg-tor/data:/data\n    ports:\n      - \"51820:51820/udp\"\n    environment:\n      - WG_HOST=auto\n      - WG_PORT=51820\n      - SOCKS_PORT=9050\n      - DEBUG=false\n    restart: unless-stopped\n```\n\n## Sanity fixes included\n- Corrected client `Endpoint` when `WG_HOST=auto` by passing the detected IP to the generator.\n- Adjusted `DNSPort` bind to `0.0.0.0:5353` to work with iptables REDIRECT from wg0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatsec%2Fwg-tor-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatsec%2Fwg-tor-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatsec%2Fwg-tor-proxy/lists"}