{"id":19078774,"url":"https://github.com/qu1x/ipaddr","last_synced_at":"2026-06-13T20:02:04.380Z","repository":{"id":148852875,"uuid":"100711237","full_name":"qu1x/ipaddr","owner":"qu1x","description":"Monitor network interfaces for IP address changes","archived":false,"fork":false,"pushed_at":"2017-08-27T20:30:36.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T05:27:27.715Z","etag":null,"topics":["hooks-folder","ip-addresses","monitoring-daemon","network-interfaces","systemd-unit"],"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/qu1x.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":"2017-08-18T12:46:46.000Z","updated_at":"2023-09-06T04:52:27.000Z","dependencies_parsed_at":"2023-07-07T13:47:28.529Z","dependency_job_id":null,"html_url":"https://github.com/qu1x/ipaddr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qu1x/ipaddr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qu1x%2Fipaddr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qu1x%2Fipaddr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qu1x%2Fipaddr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qu1x%2Fipaddr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qu1x","download_url":"https://codeload.github.com/qu1x/ipaddr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qu1x%2Fipaddr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34298258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":["hooks-folder","ip-addresses","monitoring-daemon","network-interfaces","systemd-unit"],"created_at":"2024-11-09T02:11:52.515Z","updated_at":"2026-06-13T20:02:04.341Z","avatar_url":"https://github.com/qu1x.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipaddr\n\nMonitor network interfaces for IP address changes\n\nRequires `ip` only, optionally `systemd`.\n\n## Usage\n\n```text\n$ ipaddr\nenp1s0\tfe80::2/64\nenp1s0\t2001:db8::1:2/64\nenp1s0\t192.0.2.102/24\nwlp2s0\tfe80::2/64\nwlp2s0\t2001:db8::2:2/64\nwlp2s0\t192.0.2.202/24\n$ ipaddr --help\nIP Address Monitor\n\nipaddr\nipaddr show\n  If a monitor is running on the same $IPADDR_WORK directory and the\n  $IPADDR_HOOK/20-list hook is executable, all currently assigned IP addresses\n  are shown in the format of the event variable $list.\n\nipaddr monitor\n  Monitor network interfaces for IP address changes. Hooks in $IPADDR_HOOK are\n  executable or ignored. They are entered in lexical order and have access to\n  the environment and event variables listed below. Hooks are advised to wrap\n  file operations with `flock'. Long hooks delay subsequent events but no event\n  is ever missed.\n\nipaddr OPTION\n  Print and exit.\n\nOPTIONs:\n  -h, --help     Print help.\n  -v, --version  Print version.\n\nEnvironment variables:\n  $IPADDR_WORK  /run/ipaddr\n  $IPADDR_HOOK  /etc/ipaddr.d\n\nEvent variables:\n  $list           \u003clist of all currently assigned addresses\n                    as \"$interface\\t$address/$prefix\\n\"\n                    in the order they have been assigned\n                    inclusive the current $action\u003e\n  $action         assign|update (lifetime via RA)|resign\n  $index          \u003cnetwork interface index\u003e\n  $interface      \u003cnetwork interface name\u003e\n  $family         inet|inet6\n  $address        \u003cIP address\u003e\n  $prefix         \u003cnumber of prefix bits\u003e\n  $brd            \u003cbroadcast address (inet only)\u003e\n  $scope          \u003cas of `ip-address'\u003e\n  $flag_list      \u003cas of `ip-address' but separated with \"\\n\"\u003e\n  $valid_lft      \u003cas of `ip-address' but without \"sec\" postfix\u003e\n  $preferred_lft  \u003cas of `ip-address' but without \"sec\" postfix\u003e\n\nExecutable hooks:\n  /etc/ipaddr.d/10-echo\n  /etc/ipaddr.d/20-list\n```\n\n## Installation\n\n```text\n$ sudo make install\ninstall -m 644 -Dt /usr/lib/systemd/system/ ipaddr.service\ninstall -m 755 -Dt /usr/bin/ ipaddr\ninstall -m 755 -Dt /etc/ipaddr.d/ ipaddr.d/10-echo ipaddr.d/20-list\nsystemctl daemon-reload\nsystemctl enable ipaddr\nsystemctl restart ipaddr\n```\n\n## Uninstallation\n\n```text\n$ sudo make uninstall\nsystemctl disable ipaddr\nRemoved /etc/systemd/system/network.target.wants/ipaddr.service.\nsystemctl stop ipaddr\nrm -f /usr/lib/systemd/system/ipaddr.service\nrm -f /usr/bin/ipaddr\nrm -f /etc/ipaddr.d/10-echo /etc/ipaddr.d/20-list\nrmdir --ignore-fail-on-non-empty /etc/ipaddr.d/\nsystemctl daemon-reload\n```\n\n## License\n\nCopyright (c) 2017 Rouven Spreckels \u003cn3vu0r@qu1x.org\u003e\n\nUsage of the works is permitted provided that\nthis instrument is retained with the works, so that\nany entity that uses the works is notified of this instrument.\n\nDISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the works by you shall be licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqu1x%2Fipaddr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqu1x%2Fipaddr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqu1x%2Fipaddr/lists"}