{"id":37104880,"url":"https://github.com/jojonas/gatewayfinder","last_synced_at":"2026-01-14T12:39:55.955Z","repository":{"id":266779626,"uuid":"675424087","full_name":"jojonas/gatewayfinder","owner":"jojonas","description":"Small tool to find a gateway in the current IP subnet, written in Go.","archived":false,"fork":false,"pushed_at":"2024-10-18T10:34:48.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-06T04:55:49.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/jojonas.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-08-06T21:36:22.000Z","updated_at":"2024-10-18T10:34:52.000Z","dependencies_parsed_at":"2024-12-06T04:55:51.426Z","dependency_job_id":"0958d3e0-1cb0-4f9d-8645-0cf2a5f7576f","html_url":"https://github.com/jojonas/gatewayfinder","commit_stats":null,"previous_names":["jojonas/gatewayfinder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jojonas/gatewayfinder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojonas%2Fgatewayfinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojonas%2Fgatewayfinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojonas%2Fgatewayfinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojonas%2Fgatewayfinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jojonas","download_url":"https://codeload.github.com/jojonas/gatewayfinder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojonas%2Fgatewayfinder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-14T12:39:55.409Z","updated_at":"2026-01-14T12:39:55.944Z","avatar_url":"https://github.com/jojonas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gateway Finder\n\nThis is a small Go application that can be used to discover gateways to other\nnetworks. The following example shows an invocation:\n\n```shell-session\n$ sudo ./gatewayfinder -i wlp3s0 -t 1.1.1.1\nINFO[0000] ARP scanning network 192.168.179.0/24 from interface wlp3s0 (192.168.179.8)... \nINFO[0003] Discovered 1 peers.                          \nINFO[0003] Sending ICMP pings to 1.1.1.1...             \nINFO[0003] Sending ICMP ping #33313/1 via 3c:a6:2f:c6:fc:a2 (192.168.179.1)... \nINFO[0003] Got ICMP echo reply #33313/1 from 3c:a6:2f:c6:fc:a2 (192.168.179.1)!\n``` \n\nThe discovery is basically a two-step process:\n1. *Peer discovery*: The applicaton uses ARP to discovery systems directly\n   reachable via Ethernet in the current network.\n2. *Ping*: The application sends out a series of \"pings\" (either ICMP or TCP\n   SYN). The IP header for each ping is identical and specifies a given target\n   IP address. The underlying Ethernet-frame is however sent to each of the\n   peers discovered in step 1.\n\nNote:\n * The network used when ARP scanning can be configured with `-n`/`--network`.\n * The ping method (ICMP or TCP port) can be configured with `-p`/`--port`. Use `0` for ICMP.\n * The target IP address to ping can be configured with `-t`/`--target`, the\n   default is 1.1.1.1, which can be used to discover Internet access.\n\nThe documentation for the command-line options can be printed out by setting the\n`--help` command-line option.\n\n## Building\n\nThe application is written in Go and therefore requires a Go compiler.\nAdditionally, as the application sends and receives packets using `gopacket`, it\ndepends on libpcap. Both dependencies can usually be installed through the\npackage manager:\n\n```\nsudo apt install golang libpcap-dev\n``` \n\nBuilding is simple:\n```\ngo build .\n```\n\n## Required Privileges\n\nThe discovery process uses raw sockets. Therefore it must be either started as\nthe `root` user (for example using `sudo`) or you can set the corresponding\ncapabilities on the binary (note that this has to be repeated after\nrecompiling), which allows you to run it as any user:\n\n```\nsudo setcap cap_net_raw+ep ./gatewayfinder\n./gatewayfinder [...]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojonas%2Fgatewayfinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjojonas%2Fgatewayfinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojonas%2Fgatewayfinder/lists"}