By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Fix --port flag not working
Fix icmp not working if UDP and TCP turned off
Improve performance of NAT and proxy lookups
Update packages
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/fosrl/newt/pull/250
**Author:** [@oschwartz10612](https://github.com/oschwartz10612)
**Created:** 3/4/2026
**Status:** ✅ Merged
**Merged:** 3/4/2026
**Merged by:** [@oschwartz10612](https://github.com/oschwartz10612)
**Base:** `main` ← **Head:** `dev`
---
### 📝 Commits (9)
- [`1cf75b0`](https://github.com/fosrl/newt/commit/1cf75b00ff8022832dc4d4c9f2915fa87a5d5e6c) perf: optimize reverse NAT lookup with O(1) map instead of O(n) iteration
- [`5977667`](https://github.com/fosrl/newt/commit/5977667291917aaf623a301da11601345b2d32dd) Merge branch 'fosrl:main' into optimize-reverse-nat-lookup
- [`c42a606`](https://github.com/fosrl/newt/commit/c42a606bbd22facb8235bf05919edbfa2e784a3f) perf: optimize subnet rule matching with BART
- [`9738565`](https://github.com/fosrl/newt/commit/9738565a3a218ff2a70b90cf068955caed949ea4) fix: address code review issues for BART subnet lookup
- [`ec399e9`](https://github.com/fosrl/newt/commit/ec399e9d4daed2bde293139b5bd4974649ed7d8a) Merge pull request #204 from LaurenceJJones/optimize-subnet-lookup-bart
- [`3f84354`](https://github.com/fosrl/newt/commit/3f84354e7f889e34b5cfca3d8680e1ec7c302cdb) Merge branch 'optimize-reverse-nat-lookup' of github.com:LaurenceJJones/newt into LaurenceJJones-optimize-reverse-nat-lookup
- [`6c6ba45`](https://github.com/fosrl/newt/commit/6c6ba45024550c70eda1c1f0f5500dc54b43217d) Merge branch 'LaurenceJJones-optimize-reverse-nat-lookup' into dev
- [`7920295`](https://github.com/fosrl/newt/commit/7920295b8c9a955faaecc5dddd7c6f2f485398c1) Fix --port
- [`e474866`](https://github.com/fosrl/newt/commit/e474866f841dbcd5f7fe56487dcecc8230a5c61f) Fix icmp when ports disabled
### 📊 Changes
**6 files changed** (+267 additions, -135 deletions)
<details>
<summary>View changed files</summary>
📝 `clients/clients.go` (+5 -3)
📝 `go.mod` (+1 -0)
📝 `go.sum` (+2 -0)
📝 `main.go` (+11 -9)
📝 `netstack2/proxy.go` (+42 -123)
➕ `netstack2/subnet_lookup.go` (+206 -0)
</details>
### 📄 Description
## Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
## Description
- Fix --port flag not working
- Fix icmp not working if UDP and TCP turned off
- Improve performance of NAT and proxy lookups
- Update packages
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/fosrl/newt/pull/250
Author: @oschwartz10612
Created: 3/4/2026
Status: ✅ Merged
Merged: 3/4/2026
Merged by: @oschwartz10612
Base:
main← Head:dev📝 Commits (9)
1cf75b0perf: optimize reverse NAT lookup with O(1) map instead of O(n) iteration5977667Merge branch 'fosrl:main' into optimize-reverse-nat-lookupc42a606perf: optimize subnet rule matching with BART9738565fix: address code review issues for BART subnet lookupec399e9Merge pull request #204 from LaurenceJJones/optimize-subnet-lookup-bart3f84354Merge branch 'optimize-reverse-nat-lookup' of github.com:LaurenceJJones/newt into LaurenceJJones-optimize-reverse-nat-lookup6c6ba45Merge branch 'LaurenceJJones-optimize-reverse-nat-lookup' into dev7920295Fix --porte474866Fix icmp when ports disabled📊 Changes
6 files changed (+267 additions, -135 deletions)
View changed files
📝
clients/clients.go(+5 -3)📝
go.mod(+1 -0)📝
go.sum(+2 -0)📝
main.go(+11 -9)📝
netstack2/proxy.go(+42 -123)➕
netstack2/subnet_lookup.go(+206 -0)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.