{"id":19268613,"url":"https://github.com/moolen/neuwerk","last_synced_at":"2026-01-27T11:03:38.965Z","repository":{"id":183282572,"uuid":"622022322","full_name":"moolen/neuwerk","owner":"moolen","description":"🛡️ cloud-native eBPF network egress firewall","archived":false,"fork":false,"pushed_at":"2026-01-25T08:41:53.000Z","size":17661,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-25T08:43:14.159Z","etag":null,"topics":["cloud-native","ebpf","firewall","kubernetes","security"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moolen.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}},"created_at":"2023-03-31T23:04:28.000Z","updated_at":"2026-01-25T08:41:57.000Z","dependencies_parsed_at":"2023-12-10T14:47:40.065Z","dependency_job_id":null,"html_url":"https://github.com/moolen/neuwerk","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"07000f61a6343e9ff1d0ab6f175b6cd2be5fb153"},"previous_names":["moolen/neuwerk"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/moolen/neuwerk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moolen%2Fneuwerk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moolen%2Fneuwerk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moolen%2Fneuwerk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moolen%2Fneuwerk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moolen","download_url":"https://codeload.github.com/moolen/neuwerk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moolen%2Fneuwerk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28812367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"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":["cloud-native","ebpf","firewall","kubernetes","security"],"created_at":"2024-11-09T20:16:49.700Z","updated_at":"2026-01-27T11:03:38.935Z","avatar_url":"https://github.com/moolen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NEUWERK\n\n## Rationale\n\nThis is a cloud-native network egress firewall.\n\nRequirements:\n\n- no change of existing applications needed\n- runs as a central infrastructure on the network level to provide strong isolation\n- provides dynamic, DNS-based firewall to allow/deny egress traffic\n\nPlease also see [moolen/skouter](https://github.com/moolen/skouter) as a counter draft to this traditional, central approach.\n\n## Overview\n\n![Architecture](./assets/architecture.png)\n\n![Node](./assets/node.png)\n\n## TODO\n\n- [x] glob hostnames: distribute state to other nodes\n- [x] reconstruct bpf maps from distributed cache\n- [ ] config lifecycle management: create / update / remove networks\n    - [x] garbage collect old IPs\n- [ ] FQDN hostnames: pre-warm + background updates\n- [x] integration tests\n- [x] cloud integration\n- [x] metrics: map sizes, histograms for: dns queries, map reconcile duration, gc time\n    - [x] e2e test w/ prometheus\n    - [x] e2e: security hub architecture  \n- [ ] load and scale tests\n- [x] implement local dns cache\n- [ ] implement TCP DNS server\n- [ ] Configuration API (for terraform or other means)\n    - [ ] GRPC/Rest\n    - [ ] host/network discovery mechanism (k8s?)\n- [ ] consider integration with NLB for DNS load balancing\n- [ ] multi-az deployment\n- [ ] support CIDR allowlist\n- [x] audit mode\n    - [x] observability for denied requests:  metrics and logs\n    - [x] improve perf footprint of audit mode\n- [ ] AWS GWLB integration (NAT?!)\n- [ ] software upgrade \u0026 maintenance automation\n\n\n\n## Configuration Proposal\n\n```yaml\nnetworks:\n- name: \"development\"\n  cidr: 10.0.1.0/24\n  policies:\n    - hostname: github.com\n      ports: [443]\n    - hostname: httpbin.org\n      ports: [443]\n    - hostname: dev.*.acme-inc.com\n      ports: [443]\n    - cidr: 40.96.0.0/13\n      ports:\n      - 443\n      - 8080\n    - cidr: 13.107.6.152/31\n    - ip: 1.2.3.4\n      ports: [443]\n    - ip: 8.8.8.8\n      ports: [53]\n      protocol: UDP\n\n- name: \"production\"\n  cidr: 10.0.2.0/24\n  policies:\n  - hostname: example.com\n    ports: [443]\n\n# produces a list of ip addresses\n# which will be matched explicitly against source IPs\n# and the defined egress policies apply.\nserviceDiscovery:\n- provider: kubernetes\n  auth: { ... }\n  entities:\n    - namespace: \"notification-service\"\n      pods:\n        labelSelector:\n          app: notification-service\n      policies:\n      - hostname: github.com\n        ports: [443]\n      - hostname: httpbin.org\n        ports: [443]\n```\n\n### Trying it out\n\nplace your public key into a file `variables.tfvars`:\n\n```\nssh_pubkey = \"ssh-rsa .....\"\n```\n\nThen run \u0026 apply\n```\n$ cd tf/\n$ make apply\n$ make deploy SSH_KEY_PRIVATE=~/.ssh/my-private-key.pem\n$ make run SSH_KEY_PRIVATE=~/.ssh/my-private-key.pem\n```\nThat will open a `tmux` session with 5 windows: 3 `neuwerk` instances, a `testbox` and a local shell.\n\nPrepare the node with the following commands on each node:\n```\nsudo sed -i s/127.0.0.53/10.0.0.2/g /etc/resolv.conf\nsudo systemctl stop systemd-resolved\n```\n\nThen start the app:\n```\n$ sudo ./neuwerk\n```\n\nThen switch to the `testbox` node and run the e2e tests:\n\n```\n$ sudo ./e2e.test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoolen%2Fneuwerk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoolen%2Fneuwerk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoolen%2Fneuwerk/lists"}