{"id":25227779,"url":"https://github.com/psaux-it/spy-openvpn-client","last_synced_at":"2026-02-16T01:11:21.196Z","repository":{"id":156003895,"uuid":"604912204","full_name":"psaux-it/spy-openvpn-client","owner":"psaux-it","description":"Content Filtering + (DoH) for OpenVPN Clients via BIND-DNSCrypt","archived":false,"fork":false,"pushed_at":"2025-01-09T04:17:50.000Z","size":90,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-26T04:33:18.977Z","etag":null,"topics":["bind9","cloudflare","content-filtering","dns","dns-server","dnscrypt","doh","openvpn-server","spy","vpn"],"latest_commit_sha":null,"homepage":"https://www.psauxit.com/secured-openvpn-clients-dnscrypt/","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/psaux-it.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}},"created_at":"2023-02-22T03:20:57.000Z","updated_at":"2025-01-09T04:20:40.000Z","dependencies_parsed_at":"2023-12-22T01:03:24.743Z","dependency_job_id":null,"html_url":"https://github.com/psaux-it/spy-openvpn-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psaux-it/spy-openvpn-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psaux-it%2Fspy-openvpn-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psaux-it%2Fspy-openvpn-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psaux-it%2Fspy-openvpn-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psaux-it%2Fspy-openvpn-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psaux-it","download_url":"https://codeload.github.com/psaux-it/spy-openvpn-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psaux-it%2Fspy-openvpn-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29496943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T00:16:34.147Z","status":"ssl_error","status_checked_at":"2026-02-16T00:15:26.759Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bind9","cloudflare","content-filtering","dns","dns-server","dnscrypt","doh","openvpn-server","spy","vpn"],"created_at":"2025-02-11T09:10:01.166Z","updated_at":"2026-02-16T01:11:21.167Z","avatar_url":"https://github.com/psaux-it.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Content Filtering + (DoH) for OpenVPN Clients via BIND-DNSCrypt\n\nA robust solution to secure and filter DNS traffic for OpenVPN clients using **BIND**, **DNSCrypt**, and **Cloudflare (DoH)**. This repository includes configuration steps, bash scripts, and guidelines for enabling content filtering and monitoring OpenVPN client traffic.\n\n---\n\n## Overview\n\nThis project demonstrates how to:\n- Secure DNS traffic with **DNSCrypt** using encrypted DNS-over-HTTPS (DoH).\n- Enable content filtering with **Cloudflare Family DNS** for OpenVPN clients.\n- Integrate **BIND** as an authoritative and recursive DNS server.\n- Push filtered, secure DNS configurations to OpenVPN clients.\n- Optionally monitor OpenVPN client HTTP traffic using logging techniques.\n\nThe tutorial assumes you have prior knowledge of:\n- Installing and configuring OpenVPN, BIND, and DNSCrypt.\n- System administration and handling advanced DNS setups.\n\n---\n\n## Features\n- **Content Filtering**: Block adult and other restricted content via Cloudflare Family DNS.\n- **DNS-over-HTTPS (DoH)**: Encrypt DNS traffic for privacy and security.\n- **OpenVPN Integration**: Push secure DNS to OpenVPN clients for consistent filtering.\n- **Traffic Monitoring**: Includes a sample script, `spy_vpn.sh`, to analyze OpenVPN client traffic.\n\n---\n\n## Files\n- **`spy_vpn.sh`**: A script to monitor OpenVPN client HTTP activity.\n\n---\n\n## Getting Started\n\n### Prerequisites\n- OpenVPN installed and configured with a functional TUN/TAP interface.\n- BIND set up as an authoritative primary DNS server.\n- DNSCrypt-proxy configured to use **Cloudflare (DoH)**.\n\n### Setup Steps\nRefer to the full tutorial: [Content Filtering + (DoH) for OpenVPN Clients via BIND-DNSCrypt](https://www.psauxit.com/secured-openvpn-clients-dnscrypt/).\n\n### Key Points\n1. **DNSCrypt Setup**:\n   - Listen on a secondary loopback address (e.g., `127.0.2.1:53`).\n   - Configure caching and logging for optimal performance and debugging.\n\n2. **BIND Integration**:\n   - Forward DNS queries to DNSCrypt-proxy.\n   - Separate OpenVPN client DNS traffic using BIND views.\n\n3. **OpenVPN Configuration**:\n   - Push filtered DNS to OpenVPN clients using `push \"dhcp-option DNS \u003cbind-listen-IP\u003e\"`.\n   - Enable logging for query tracking and debugging.\n\n4. **Traffic Monitoring**:\n   - Use `spy_vpn.sh` to analyze OpenVPN client DNS and HTTP traffic.\n\n---\n\n## Testing the Setup\n1. Connect an OpenVPN client.\n2. Verify DNS-over-HTTPS (DoH) using Cloudflare's [DoH Test](https://1.1.1.1/help).\n3. Check logs:\n   - DNSCrypt: `/var/log/dnscrypt-proxy/query.log`\n   - BIND: `/var/log/named/queries.log`\n4. Analyze traffic using tools like `tcpdump`.\n\n---\n\n## Resources\n- Full Tutorial: [PSAUXIT Tutorial](https://www.psauxit.com/secured-openvpn-clients-dnscrypt/)\n- Cloudflare DoH Service: [1.1.1.1/help](https://1.1.1.1/help)\n\n---\n\n## Contributing\nFeel free to submit issues or contribute to the repository by opening pull requests.\n\n---\n\n## Author\nCreated by [Hasan ÇALIŞIR](https://github.com/hsntgm) at [PSAUXIT](https://www.psauxit.com/)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsaux-it%2Fspy-openvpn-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsaux-it%2Fspy-openvpn-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsaux-it%2Fspy-openvpn-client/lists"}