{"id":22394103,"url":"https://github.com/flant/netgwm","last_synced_at":"2025-08-11T23:05:03.625Z","repository":{"id":8807266,"uuid":"10503529","full_name":"flant/netgwm","owner":"flant","description":"NetGWM (Network Gateway Manager)","archived":false,"fork":false,"pushed_at":"2017-08-08T03:41:28.000Z","size":26,"stargazers_count":41,"open_issues_count":0,"forks_count":4,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-07-31T12:30:39.165Z","etag":null,"topics":["conntrack","gateways","iproute2","iptables","linux","networking"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/flant.png","metadata":{"files":{"readme":"README","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}},"created_at":"2013-06-05T13:48:52.000Z","updated_at":"2024-10-12T12:04:48.000Z","dependencies_parsed_at":"2022-08-24T13:42:54.551Z","dependency_job_id":null,"html_url":"https://github.com/flant/netgwm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flant/netgwm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flant%2Fnetgwm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flant%2Fnetgwm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flant%2Fnetgwm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flant%2Fnetgwm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flant","download_url":"https://codeload.github.com/flant/netgwm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flant%2Fnetgwm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269970121,"owners_count":24505466,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"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":["conntrack","gateways","iproute2","iptables","linux","networking"],"created_at":"2024-12-05T05:08:58.949Z","updated_at":"2025-08-11T23:05:03.602Z","avatar_url":"https://github.com/flant.png","language":"Python","readme":"NetGWM stands for Network Gateway Manager\n(http://flant.ru/projects/netgwm)\n\nNetGWM is a tool on Python used for automatically switching\nnetwork gateway when your current ISP goes offline.\n\nHow to deploy NetGWM?\n0) Install prerequisites:\n   - iproute2\n   - conntrack (http://conntrack-tools.netfilter.org/)\n   - python-yaml (http://pyyaml.org/)\n1) Execute \"make install\". It will create /usr/lib/netgwm\n   with netgwm.py and /etc/netgwm with configs and samples.\n2) Using simple YAML configuration file (samples/netgwm.yml),\n   you should define your gateways (by IPs or devices) and\n   their priorities. In /etc/default/netgwm, you can change\n   the period of checking gateways (by default, every 60 sec).\n3) Add new routing table named \"netgwm_check\" to your iproute\n   configuration file (/etc/iproute2/rt_tables; there is\n   an example at samples/rt_tables.sample). It's done\n   automatically in the Debian package.\n4) Use /etc/init.d/netgwm to launch NetGWM.\n\nThat's all! NetGWM will ping given addresses through your\ncurrent gateway to check your Internet connection. If all\nof these addresses are down, NetGWM will switch your current\ngateway to a working one (with a highest priority).\n\nOther features:\n* A gateway is considered as working only after N seconds\n  of successfull checks. This setting (\"min_uptime\") can be\n  configured in netgwm.yml.\n* When a gateway with a higher priority goes back online\n  NetGWM will automatically switch to it from the current\n  one.\n* Every time NetGWM switches a network gateway, it will\n  execute all the scripts placed in\n  /etc/netgwm/post-replace.d (for more details, please have\n  a look at samples/post-replace.d/script.sh).\n* NetGWM can maintain the full list of gateways statuses\n  continually for your special needs (e.g. to be used in\n  other software). This data is stored in\n  /var/run/netgwm/gwstore.yml. This setting\n  (\"check_all_gateways\") can be enabled in netgwm.yml.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflant%2Fnetgwm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflant%2Fnetgwm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflant%2Fnetgwm/lists"}