postblue / node-socks5-server

socks5 server in node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-socks5-server

Provides the socks5 package that implements a SOCKS5 server. SOCKS (Secure Sockets) is used to route traffic between a client and server through an intermediate proxy layer. This can be used to bypass firewalls or NATs.

feature

  • "No Auth" mode
  • User/Password authentication
  • Support for the CONNECT command

example

Below is a simple example of usage. Go examples folder see more.

const socks5 = require('node-socks5-server');

const server = socks5.createServer();
server.listen(1080, 'localhost');

test

curl http://www.baidu.com/ --socks5 localhost:1080
curl http://www.baidu.com/ --socks5-hostname localhost:1080
curl http://www.baidu.com/ --socks5 user:password@localhost:1080

todo

  • bind
  • udp

thanks

About

socks5 server in node.js


Languages

Language:JavaScript 100.0%