{"id":15780007,"url":"https://github.com/rgl/debian-router-vagrant","last_synced_at":"2026-05-09T19:31:19.167Z","repository":{"id":139751093,"uuid":"354631856","full_name":"rgl/debian-router-vagrant","owner":"rgl","description":"example debian linux router working in vagrant","archived":false,"fork":false,"pushed_at":"2022-03-12T12:00:13.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-26T20:08:39.263Z","etag":null,"topics":["debian","debian-linux-router","router","vagrant"],"latest_commit_sha":null,"homepage":"","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/rgl.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":"2021-04-04T19:41:41.000Z","updated_at":"2022-06-27T18:44:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"67387345-d234-494c-9165-3f2936704a90","html_url":"https://github.com/rgl/debian-router-vagrant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rgl/debian-router-vagrant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdebian-router-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdebian-router-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdebian-router-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdebian-router-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/debian-router-vagrant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdebian-router-vagrant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32832823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["debian","debian-linux-router","router","vagrant"],"created_at":"2024-10-04T18:40:19.411Z","updated_at":"2026-05-09T19:31:19.147Z","avatar_url":"https://github.com/rgl.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nThis is an example debian linux router working in vagrant.\n\nVagrant VMs need to have a management network wich is NATted by the host,\nbut that makes it difficult to play with the linux router, so this essentially\nadds a secondary network interface that is used for routing, and replaces the\ndefault route that is set by DHCP in `eth0` to use our router in `eth1`\ninstead. So everything that would be normally done at `eth0` must be done\nin `eth1`.\n\nThe network is setup as:\n\n![](diagram.png)\n\n**NB** The dotted lines represent a network connection that is not directly used, instead, the traffic in those nodes goes through `eth1` and is routed by the `router` machine.\n\n**NB** For a ansible managed environment see [rgl/debian-router-ansible-vagrant](https://github.com/rgl/debian-router-ansible-vagrant).\n\n**NB** For a windows equivalent of this environment see\n[rgl/windows-router-vagrant](https://github.com/rgl/windows-router-vagrant).\n\n## Usage\n\nInstall the [base debian 11 box](https://github.com/rgl/debian-vagrant).\n\nStart this environment:\n\n```bash\ntime vagrant up --provider=libvirt --no-destroy-on-error --no-tty\n```\n\n## Network Packet Capture\n\nYou can easily capture and see traffic from the host with the `wireshark.sh`\nscript, e.g., to capture the traffic from the `eth1` interface on each VM:\n\n```bash\n./wireshark.sh router eth1 # or any\n./wireshark.sh node1 eth1 # or any\n./wireshark.sh node2 eth1 # or any\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fdebian-router-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fdebian-router-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fdebian-router-vagrant/lists"}