{"id":35454637,"url":"https://github.com/unix755/wgwd","last_synced_at":"2026-02-27T21:01:31.999Z","repository":{"id":184995395,"uuid":"672744016","full_name":"unix755/wgwd","owner":"unix755","description":"WireGuard watchdog","archived":false,"fork":false,"pushed_at":"2026-02-24T13:33:52.000Z","size":142,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-24T18:40:19.376Z","etag":null,"topics":["endpoint","network","watchdog","wireguard"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unix755.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-31T04:18:42.000Z","updated_at":"2026-02-24T13:28:31.000Z","dependencies_parsed_at":"2023-11-24T04:24:02.961Z","dependency_job_id":"3d45e629-fc36-454a-a7f0-1bbef6327b80","html_url":"https://github.com/unix755/wgwd","commit_stats":null,"previous_names":["gek64/nwg","gek64/netinfo-wireguard","gek64/wgwd","unix755/wgwd"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/unix755/wgwd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unix755%2Fwgwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unix755%2Fwgwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unix755%2Fwgwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unix755%2Fwgwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unix755","download_url":"https://codeload.github.com/unix755/wgwd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unix755%2Fwgwd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29913653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: 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":["endpoint","network","watchdog","wireguard"],"created_at":"2026-01-03T05:57:30.161Z","updated_at":"2026-02-27T21:01:31.995Z","avatar_url":"https://github.com/unix755.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WireGuard watchdog(wgwd)\n\n# ***Deprecated: superceded by [ipsync](https://github.com/unix755/ipsync)***\n\n## Features\n\n- Get IP from remote or a file\n- Periodically update WireGuard endpoint IP\n\n## Usage\n\n```sh\n# Get local network information from a file\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" file -filepath=\"./home.json\"\n## Get local network information from a file and decrypt the file\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" file -filepath=\"./home.json\" -encryption_key=\"admin123\"\n## Loop get local network information from a file and decrypt the file\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" -interval=\"5m\" file -filepath=\"./home.json\" -encryption_key=\"admin123\"\n\n# Get local network information from s3 server\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" s3 -endpoint=\"https://s3.amazonaws.com\" -access_key_id=\"admin\" -secret_access_key=\"adminadmin\" -bucket=\"storage\" -object_path=\"home.json\"\n## Get local network information from minio s3 server\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" s3 -endpoint=\"http://192.168.1.185:9000\" -path_style -access_key_id=\"admin\" -secret_access_key=\"adminadmin\" -bucket=\"storage\" -object_path=\"home.json\"\n## Get local network information from minio s3 server and decrypt the file\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" s3 -endpoint=\"http://192.168.1.185:9000\" -path_style -access_key_id=\"admin\" -secret_access_key=\"adminadmin\" -bucket=\"storage\" -object_path=\"home.json\" -encryption_key=\"admin123\"\n## Get Get local network information from minio s3 server and decrypt the file\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" -interval=\"5m\" s3 -endpoint=\"http://192.168.1.185:9000\" -path_style -access_key_id=\"admin\" -secret_access_key=\"adminadmin\" -bucket=\"storage\" -object_path=\"home.json\" -encryption_key=\"admin123\"\n\n# Get local network information from webdav server\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" webdav -endpoint=\"http://192.168.1.2/\" -filepath=\"/dav/home.json\"\n## Get local network information from webdav server and decrypt the file\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" webdav -endpoint=\"http://192.168.1.2/\" -filepath=\"/dav/home.json\" -encryption_key=\"admin123\"\n## Loop Get local network information from webdav server and decrypt the file\nwgwd get -remote_interface=\"pppoe-wan\" -wg_interface=\"wg0\" -interval=\"5m\" webdav -endpoint=\"http://192.168.1.2/\" -filepath=\"/dav/home.json\" -encryption_key=\"admin123\"\n\n# Decrypt a encrypted file\nwgwd decrypt -filepath \"./home.json\" -encryption_key=\"admin123\"\n```\n\n## Install\n\n```sh\n# system is linux(debian,redhat linux,ubuntu,fedora...) and arch is amd64\ncurl -Lo /usr/local/bin/wgwd https://github.com/unix755/wgwd/releases/latest/download/wgwd-linux-amd64\nchmod +x /usr/local/bin/wgwd\n\n# system is freebsd and arch is amd64\ncurl -Lo /usr/local/bin/wgwd https://github.com/unix755/wgwd/releases/latest/download/wgwd-freebsd-amd64\nchmod +x /usr/local/bin/wgwd\n```\n\n## Install Service(WebDAV usage examples)\n\n### Linux(systemd)\n\n```sh\ncurl -Lo \"/etc/systemd/system/wgwd.service\" \"https://github.com/unix755/wgwd/raw/main/configs/systemd/wgwd_webdav.service\"\nsystemctl enable wgwd.service \u0026\u0026 systemctl restart wgwd.service \u0026\u0026 systemctl status wgwd.service\ncurl -Lo \"/etc/systemd/system/wgwd.timer\" \"https://github.com/unix755/wgwd/raw/main/configs/systemd/wgwd.timer\"\nsystemctl enable wgwd.timer \u0026\u0026 systemctl restart wgwd.timer \u0026\u0026 systemctl status wgwd.timer\n```\n\n### Alpine Linux(openrc)\n\n```sh\ncurl -Lo \"/etc/init.d/wgwd\" \"https://github.com/unix755/wgwd/raw/main/configs/openrc/wgwd_webdav\"\nchmod +x /etc/init.d/wgwd\nrc-update add wgwd \u0026\u0026 rc-service wgwd restart \u0026\u0026 rc-service wgwd status\n```\n\n### FreeBSD(rc.d)\n\n```sh\nmkdir /usr/local/etc/rc.d/\ncurl -Lo \"/usr/local/etc/rc.d/wgwd\" \"https://github.com/unix755/wgwd/raw/main/configs/rc.d/wgwd_webdav\"\nchmod +x /usr/local/etc/rc.d/wgwd\nservice wgwd enable \u0026\u0026 service wgwd restart \u0026\u0026 service wgwd status\n```\n\n### OpenWRT(init.d)\n\n```sh\ncurl -Lo \"/etc/init.d/wgwd\" \"https://github.com/unix755/wgwd/raw/main/configs/init.d/wgwd_webdav\"\nchmod +x /etc/init.d/wgwd\nservice wgwd enable \u0026\u0026 service wgwd restart \u0026\u0026 service wgwd status\n```\n\n## Compile\n\n### How to compile if prebuilt binaries are not found\n\n```sh\ngit clone https://github.com/unix755/wgwd.git\ncd wgwd\nexport CGO_ENABLED=0\ngo build -v -trimpath -ldflags \"-s -w\"\n```\n\n### For mipsle router\n\n```sh\ngit clone https://github.com/unix755/wgwd.git\ncd wgwd\nexport GOOS=linux\nexport GOARCH=mipsle\nexport GOMIPS=softfloat\nexport CGO_ENABLED=0\ngo build -v -trimpath -ldflags \"-s -w\"\n```\n\n## License\n\n- **GPL-3.0 License**\n- See `LICENSE` for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funix755%2Fwgwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funix755%2Fwgwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funix755%2Fwgwd/lists"}