{"id":16774718,"url":"https://github.com/leonjza/find-gw","last_synced_at":"2025-04-10T20:07:28.091Z","repository":{"id":145680222,"uuid":"223211906","full_name":"leonjza/find-gw","owner":"leonjza","description":"🛰A bash script to check if you have a gateway that could get you somewhere nice.","archived":false,"fork":false,"pushed_at":"2019-12-08T17:22:17.000Z","size":5,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T17:52:40.677Z","etag":null,"topics":["discovery","gateway","network"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leonjza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-11-21T16:02:38.000Z","updated_at":"2022-09-09T13:47:25.000Z","dependencies_parsed_at":"2023-08-24T01:49:38.727Z","dependency_job_id":null,"html_url":"https://github.com/leonjza/find-gw","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/leonjza%2Ffind-gw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonjza%2Ffind-gw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonjza%2Ffind-gw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonjza%2Ffind-gw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonjza","download_url":"https://codeload.github.com/leonjza/find-gw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288346,"owners_count":21078903,"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":["discovery","gateway","network"],"created_at":"2024-10-13T06:49:55.601Z","updated_at":"2025-04-10T20:07:28.084Z","avatar_url":"https://github.com/leonjza.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# find-gw.sh\n\nA bash script to check if you have a gateway that could get you somewhere nice.\n\n## usage\n\nFirst, make sure you have [`nping`](https://nmap.org/nping/).  \nNext, download the script and run it. `nping` is going to want root for icmp, so use `sudo` or something similar.\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/leonjza/find-gw/master/find-gw.sh -o find-gw.sh\n# read the source code, right?\nchmod +x find-gw.sh\nsudo ./find-gw.sh 8.8.8.8\n```\n\n## example\n\n```bash\n$ sudo ./find-gw.sh 8.8.8.8\n[info] Trying ARP entries to reach 8.8.8.8...\n[success] Could reach 8.8.8.8 via xx:xx:xx:xx:xx:xx =\u003e gw.local (10.0.0.11) at xx:xx:xx:xx:xx:xx on eth0\n[success] Could reach 8.8.8.8 via xx:xx:xx:xx:xx:xx =\u003e ap.local (10.0.0.20) at xx:xx:xx:xx:xx:xx on eth0\n[info] Done!\n```\n\n## other\n\nSometimes, your ARP table won't have all of the entries availble on the LAN. Solve that by pinging a broadcast address. Assuming you are in a network like 192.168.5.0/24, try:\n\n```bash\n# Linux\nping -b 192.168.5.255\n\n# macOS\nping 192.168.5.255\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonjza%2Ffind-gw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonjza%2Ffind-gw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonjza%2Ffind-gw/lists"}