{"id":16101533,"url":"https://github.com/mendhak/docker-openvpn-adblock","last_synced_at":"2025-03-18T07:31:29.879Z","repository":{"id":141194580,"uuid":"118526285","full_name":"mendhak/docker-openvpn-adblock","owner":"mendhak","description":"Docker containers setup with OpenVPN on TCP and UDP, with adblocking dnsmasq","archived":false,"fork":false,"pushed_at":"2018-07-12T20:00:08.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T18:11:55.734Z","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/mendhak.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":"2018-01-22T22:54:02.000Z","updated_at":"2023-09-08T17:35:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"7716ac0c-ab88-43c0-904a-a641b965ff9a","html_url":"https://github.com/mendhak/docker-openvpn-adblock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdocker-openvpn-adblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdocker-openvpn-adblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdocker-openvpn-adblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdocker-openvpn-adblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mendhak","download_url":"https://codeload.github.com/mendhak/docker-openvpn-adblock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244177648,"owners_count":20410993,"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":[],"created_at":"2024-10-09T18:50:12.444Z","updated_at":"2025-03-18T07:31:29.864Z","avatar_url":"https://github.com/mendhak.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n### Docker Compose setup with OpenVPN and adblocking\n\n\nMakes use of [docker-openvpn](https://github.com/kylemanna/docker-openvpn/) and [docker-dns-ad-blocker](https://github.com/oznu/docker-dns-ad-blocker).  \n\n\nSets up the adblocking container, and also includes the local [rules .conf file](dnsmasq-rules/myblacklist.conf). The container automatically updates its blacklist daily, and uses Google's DNS servers.  This can be changed in the docker-compose.yml file. \n\nSets up OpenVPN to listen on both TCP (port 563) and UDP (port 1194).  Sets the DNS server to be the above adblocking container. This can be changed int he docker-compose.yml file. \n\nTogether, this setup allows for you to connect to this OpenVPN server, with built-in adblocking. \n\n### To run it\n\n    sudo ./1.init.sh clientname server.example.com\n\n\n* clientname - the profile, such as `workpc` - this results in a `workpc.ovpn` for example.\n* server.example.com - the server where these containers will be hosted\n\nWhen the script is run, follow the prompts and enter passwords where necessary. When asked for a Common Name, enter your server's DNS or IP address.\n\n\n### To generate another .ovpn\n\n    sudo ./2.gen.sh myfriend\n\nThis will result in a `myfriend.ovpn`    \n\n### To start over\n\nRemove the containers\n\n    sudo docker-compose stop\n    sudo docker-compose rm -f\n\nRemove generated files\n\n    rm -f openvpn-data/\n    rm *.ovpn\n\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendhak%2Fdocker-openvpn-adblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmendhak%2Fdocker-openvpn-adblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendhak%2Fdocker-openvpn-adblock/lists"}