{"id":17043016,"url":"https://github.com/mizzy/docker-firewalld-sample","last_synced_at":"2026-05-19T04:36:21.153Z","repository":{"id":152754863,"uuid":"625850998","full_name":"mizzy/docker-firewalld-sample","owner":"mizzy","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-10T08:40:27.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-11T12:47:03.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/mizzy.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-04-10T08:39:20.000Z","updated_at":"2023-04-10T08:40:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"098aaf16-22fc-409f-99de-795c9754ddc1","html_url":"https://github.com/mizzy/docker-firewalld-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mizzy/docker-firewalld-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Fdocker-firewalld-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Fdocker-firewalld-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Fdocker-firewalld-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Fdocker-firewalld-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizzy","download_url":"https://codeload.github.com/mizzy/docker-firewalld-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Fdocker-firewalld-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33201971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"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":"2024-10-14T09:27:21.072Z","updated_at":"2026-05-19T04:36:21.134Z","avatar_url":"https://github.com/mizzy.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerでの特定ネットワークへの接続制限サンプル\n\nVagrantでVMを起動してログイン。\n\n```sh\n$ vagrant up\n$ vagrant ssh\n```\n\nDockerから8.8.8.8へpingが通ることを確認。\n\n```shell\n[vagrant@localhost ~]$ sudo docker run -it --rm centos:8 /bin/ping -c 3 8.8.8.8\nPING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.\n64 bytes from 8.8.8.8: icmp_seq=1 ttl=61 time=8.44 ms\n64 bytes from 8.8.8.8: icmp_seq=2 ttl=61 time=8.20 ms\n64 bytes from 8.8.8.8: icmp_seq=3 ttl=61 time=8.93 ms\n\n--- 8.8.8.8 ping statistics ---\n3 packets transmitted, 3 received, 0% packet loss, time 2004ms\nrtt min/avg/max/mdev = 8.199/8.523/8.932/0.305 ms\n```\n\nDockerからmizzy.orgへpingが通らないことを確認。\n\n```shell\n[vagrant@localhost ~]$ sudo docker run -it --rm centos:8 /bin/ping -c 3 mizzy.org\nPING mizzy.org (185.199.110.153) 56(84) bytes of data.\n\n--- mizzy.org ping statistics ---\n3 packets transmitted, 0 received, 100% packet loss, time 2077ms\n```\n\nDocker外からmizzy.orgへpingが通ることを確認。\n\n```shell\n[vagrant@localhost ~]$ ping -c 3 mizzy.org\nPING mizzy.org (185.199.109.153) 56(84) bytes of data.\n64 bytes from cdn-185-199-109-153.github.com (185.199.109.153): icmp_seq=1 ttl=63 time=7.47 ms\n64 bytes from cdn-185-199-109-153.github.com (185.199.109.153): icmp_seq=2 ttl=63 time=6.51 ms\n64 bytes from cdn-185-199-109-153.github.com (185.199.109.153): icmp_seq=3 ttl=63 time=13.1 ms\n\n--- mizzy.org ping statistics ---\n3 packets transmitted, 3 received, 0% packet loss, time 2004ms\nrtt min/avg/max/mdev = 6.509/9.015/13.062/2.888 ms\n```\n\n念のためHeadless Chromiumからも確認。\n\nまずはChromiumのイメージビルド。\n\n```sh\n[vagrant@localhost ~]$ cd /vagrant\n[vagrant@localhost ~]$ sudo docker build -t mizzy/chromium .\n```\n\ngoogle.comのPDF化ができることを確認。\n\n```sh\n[vagrant@localhost ~]$ sudo docker run \\\n  --rm \\\n  -v /vagrant:/tmp \\\n  mizzy/chromium \\\n  chromium \\\n    --headless \\\n    --no-sandbox \\\n    --disable-gpu \\\n    --print-to-pdf=/tmp/output.pdf \\\n    https://google.com/\n```\n\nmizzy.orgのPDF化ができないことを確認。\n\n```sh\n[vagrant@localhost ~]$ sudo docker run \\\n  --rm \\\n  -v /vagrant:/tmp \\\n  mizzy/chromium \\\n  chromium \\\n    --headless \\\n    --no-sandbox \\\n    --disable-gpu \\\n    --print-to-pdf=/tmp/output.pdf \\\n    https://mizzy.org/\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizzy%2Fdocker-firewalld-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizzy%2Fdocker-firewalld-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizzy%2Fdocker-firewalld-sample/lists"}