NetProxyCLI 1.0.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 Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.0 219 9/17/2022
0.2.0 174 9/17/2022