Code Monkey home page Code Monkey logo

socks5_c's Introduction

socks5_c

Build Status

一个轻量级的 socks5 代理, 采用单进程多路复用 IO 模式. 可用于科学上网.

目前仅支持 UNIX/Linux 平台

编译:

$ make

生成的目标文件有:

  • local: 运行在本地, 是沟通浏览器等应用程序与 server 的桥梁, 处理使用 socks5 代理的应用程序的请求, 转发给 server
  • server: 响应 local 的请求, 获取网站数据处理后返回给 local

使用方法

$ ./server -h
usage: ./server [-p server_port] [-m xor|rc4] [-e key]
$ ./local -h
usage: ./local [-l remote_ip] [-p remote_port] [-s listen_port] [-m xor|rc4] [-e key]

运行实例:

假设服务器 IP 地址为: 104.167.51.31, 在服务器上运行 server:

$ # 在 1984 端口监听等待连接, 使用 rc4 方法加密,  密钥为 "test"
$ ./server -p 1984 -m rc4 -e "test"

在本地运行 local:

$ # 连接服务器的 1984 端口, 在本地 2080 端口监听, 使用 rc4 方法加密, 密钥为"test"
$ ./local -l 104.167.51.31 -p 1984 -s 2080 -m rc4 -e "test"

Firefox 浏览器设置: socks 主机填写 127.0.0.1, 端口填写: 2080, 选择 SOCKS v5 代理.

Chromium/Chrome 可以通过启动参数加载 PAC:

$ chromium-browser -proxy-pac-url="PAC_URL"

授权协议

socks5_c 在 MIT license 协议下发布. 参见 LICENSE.md 文件.

socks5_c's People

Contributors

hmgle avatar xuchunyang avatar

Watchers

BaiLibin avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.