minimalistic SOCKS5
Closed this issue · 6 comments
Is there an easy way, to get the auth (username+ password) plugin to run in the minimalistic SOCKS5 version? I would just need to have an auth feature using the minimalistic version.
Another interesting point would be to set the ipadress just to local, so windows Firewall wouldn't ask me all the time, any idea how to do so?
Considering that the plugin framework is only available on the full version, you may just want to use that. The only reason you would need the minimalistic version is if you were going to use it with Mono, because their GC isn't very stable with this.
I can push an update in 20-30 minutes with changes to the minimal version to add authentication. It won't be plugin based but I can make it event based if that is okay with you? Such as the following:
socks5.OnUserAuthenticate(...)
Also, to bind it to the local IP only, use IPAddress.Loopback when creating a new instance.
Socks5Server s = new Socks5Server(IPAddress.Loopback, 1080);
Would be great if you could do so. I just need minimalistic version with username + password function and an edit so firewall dont react (I just need to run under localhost). Using IPAdress.Loopback will solve firewall asking for allowing the run of app?
I've just pushed the update. Take a look at Socks5_Minimal_Test to see how to use it. Also, yes, if you use IPAddress.Loopback, it will only bind to your local IP address (127.0.0.1) therefore not needing to make any inbound/outbound traffic rules through the firewall. I hope this helps!
First of all thanks a lot. I will gave it a try tomorrow morning and tell you if everything runs fine. Thanks.
Any time! I will leave this open until you let me know tomorrow if it works for you or not. With the testing I did, it seemed to work just fine. It's the same type of authentication as in the full version, just not plugin based - it's event based instead which makes it more viable for compatibility and speed.
Runs fine, thanks a lot, now my SOCKS5 server isn't so much overloaded it would be by using the extended version. All the best!