PortProxyGUI icon indicating copy to clipboard operation
PortProxyGUI copied to clipboard

[Feature request] Description column

Open michellabbe opened this issue 3 years ago • 5 comments

Just a suggestion: it would be useful to add a column to add a name/description to each line.

You can't save/parse it directly with netsh command, but you could keep these in a separate file in %localappdata%\PortProxyGUI or something.

"If column values match this, then description = this." When creating/editing a rule (or comment), update the file too.

The same file/code could even be used to add other features like disable/enable rule, export/import feature, etc.

It would probably not be perfect, but could definitely be useful when you end up with alot of rules.

michellabbe avatar Sep 30 '21 20:09 michellabbe

Good suggestion that we will consider adding in the next version.

zmjack avatar Oct 04 '21 18:10 zmjack

The new version (v1.3.0) has been released, see if the new features get along well.

zmjack avatar Feb 22 '22 17:02 zmjack

Tried quickly (net 6 version). Seems to work fine.

I see that you create the config.db file in %userprofile%\Documents\PortProxyGUI folder.

Since netsh rules are system wide (and not per-user), you need to move the db file out of %userprofile% folder or it won't work on servers managed by multiple admins using their own user accounts.

My mistake for suggesting %localappdata%\PortProxyGUI (defaults to %userprofile%\AppData\Local\PortProxyGUI), I meant %allusersprofile%\PortProxyGUI (defaults to C:\ProgramData\PortProxyGUI) which is a common appdata path for all users.

I also suggest making the comment column 2x or 3x wider by default on the next release. You rarely want to put only 1 word in there ;-)

Even better would be to remember window/columns size/positions between launches (make sure to check that it's not outside of visible screen), but I'll leave it up to you to create another feature request (or not) for this.

michellabbe avatar Feb 23 '22 21:02 michellabbe

The description and comment features are really nice; any way to automatically add 1 or both when doing a netsh interface portproxy command?

For example, I have a powershell script that auto deletes and creates new ports on bootup, with only the IP changing, and it would be really cool to persist those descriptions/comments.

YouveGotMeowxy avatar Mar 19 '23 01:03 YouveGotMeowxy

I see that you create the config.db file in %userprofile%\Documents\PortProxyGUI folder.

Since netsh rules are system wide (and not per-user), you need to move the db file out of %userprofile% folder or it won't work on servers managed by multiple admins using their own user accounts.

My mistake for suggesting %localappdata%\PortProxyGUI (defaults to %userprofile%\AppData\Local\PortProxyGUI), I meant %allusersprofile%\PortProxyGUI (defaults to C:\ProgramData\PortProxyGUI) which is a common appdata path for all users.

I created a fork and moved the .db to the %localappdata% folder. Give it a try if interested:

https://github.com/STaRDoGG/PortProxyGUI

STaRDoGG avatar Jun 15 '23 08:06 STaRDoGG