NetProxyCLI 1.0.0

.NET 5.0
dotnet tool install --global NetProxyCLI --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local NetProxyCLI --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=NetProxyCLI&version=1.0.0
nuke :add-package NetProxyCLI --version 1.0.0

NetProxy

Netproxy is a simple ipv4 UDP & TCP proxy based on .NET 5.0. The upstream repository uses a configuration file, and my use case was more temporary, therefore a CLI seemed more appropriate.

Installing

dotnet tool install --global NetProxyCLI

Why?

When dealing with corporate firewalls and segregated networks, sometimes you need a quick and dirty reverse proxy in order to test software, or facilitate development. Setting up a full instance of nginx isn't necessarily difficult, but way overkill for this situation.

I found the upstream repository, refactored it to my liking, removed IPv6 support (I'm open to bringing it back, its just not in my use case), and published it under a new name

Usage

This version of NetProxy uses a CLI that supports the following formats. That parser is quite naive, so please report any issues

Proxy Definition Formats:
  [IP]:[Port]~[IP]:[Port]/[Protocol]
  [IP]:[Port]~[IP]/[Protocol]
  [IP]~[IP]:[Port]/[Protocol]
  [Port]~[IP]:[Port]/[Protocol]
  [Port]~[IP]/[Protocol]
  [IP]:[Port]~[IP]:[Port]
  [IP]:[Port]~[IP]
  [IP]~[IP]:[Port]
  [Port]~[IP]:[Port]
  [Port]~[IP]
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.0 103 9/17/2022
0.2.0 90 9/17/2022