![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
socks5server
Advanced tools
A simple SOCKS v5/v4/v4a server implementation and a demo proxy.
You can launch a demo proxy server easily :
node proxy.js [options]
This will create a proxy server default at 127.0.0.1:1080
.
options
: see node proxy.js --help
npm install socks5server
You may need socks protocol knowledge to use this one in your project, or refer to the proxy.js
demo.
const socks5server = require('socks5server');
var server = socks5server.createServer();
//or
//var server = new socks5server.socksServer();
server
.on('tcp',(socket, address, port, CMD_REPLY)=>{
//do something with the tcp proxy request
}).on('udp',(socket, expectClientAddress, expectClientPort, CMD_REPLY)=>{
//do something with the udp proxy request
}).on('error', function (e) {
console.error('SERVER ERROR: %j', e);
}).on('client_error',(socket,e)=>{
console.error(' [client error]',`${net.isIP(socket.targetAddress)?'':'('+socket.targetAddress+')'} ${socket.remoteAddress}:${socket.targetPort}`,e.message);
}).on('socks_error',(socket,e)=>{
console.error(' [socks error]',`${net.isIP(socket.targetAddress)?'':'('+(socket.targetAddress||"unknown")+')'} ${socket.remoteAddress||"unknown"}}:${socket.targetPort||"unknown"}`,e);
}).listen(1080, "127.0.0.1");
/*
What is 'CMD_REPLY'?
CMD_REPLY(replyCode,addr,port)
see https://www.ietf.org/rfc/rfc1928.txt @page5:"6 Replies" for details
*/
The proxy.js
is a simple demo of the server.
✅ : OK ❌ : not implemented ❓ : I'm not sure is it completely finished
address
auth methods
CMD
connect ✅
udp ✅ (maybe usable)
bind ❌
RFC:
(The MIT License)
FAQs
A simple SOCKS 5/4/4a implementation and demo proxy
The npm package socks5server receives a total of 20 weekly downloads. As such, socks5server popularity was classified as not popular.
We found that socks5server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.