• This repository has been archived on 08/Nov/2018
  • Stars
    star
    214
  • Rank 184,678 (Top 4 %)
  • Language
    C
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

一个轻量级的 socks5 代理, 带简单加密传输功能, 可穿透 GFW

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:

$ cd socks5_c
$ PAC_URL=$(pwd)
$ chromium-browser -proxy-pac-url="file://"${PAC_URL}"/test.pac"
  • 使用 curl 测试:
$ curl -v --socks5-hostname 127.0.0.1:2080 http://www.fanfou.com

授权协议

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

More Repositories

1

graftcp

A flexible tool for redirecting a given program's TCP traffic to SOCKS5 or HTTP proxy.
C
2,090
star
2

h264_to_rtp

Send H264 file by RTP over UDP
C
161
star
3

yascm

Yet Another Scheme Interpreter using flex and bison
C
48
star
4

dot_matrix_font_to_bmp

点阵字库到bmp位图的转换工具
C
47
star
5

cripple

stun server, just need single public IP address
C
29
star
6

gendotmatrix

生成点阵字库
Python
28
star
7

led_fan

不花钱的摇摇棒(伪)
C
28
star
8

socks5_go

A SOCKS5 Proxy
Go
24
star
9

ipcam_search_protocol

search ip cam on network
C
18
star
10

passt

passt with proxy.
C
8
star
11

quietbox

Python
8
star
12

txt2bmp

txt2bmp can convert text file into bitmap
C
7
star
13

sudoku_solver

solve sudoku via DLX
C
7
star
14

tcfs-android

A Lightweight Network File System server for Android
Java
5
star
15

godogpaw

A UCCI(Universal Chinese Chess Protocol) engine
Go
5
star
16

tcfs-go

A Lightweight Network File System server writen in Golang
Go
5
star
17

fsm

有限状态机
C
5
star
18

socket_test

Network packet loss test
C
4
star
19

send_wave

send msg via weibo, fanfou, .etc.
Python
3
star
20

dogpawasm

WASM for godogpaw.
JavaScript
3
star
21

send_mail

send mail via telnet
Shell
2
star
22

tcfs-erl

Toy cloud file system server
Erlang
2
star
23

trie-x

Erlang
2
star
24

bmp24to16

Convert 24 bit bmp to 16 bit
C
2
star
25

debug_log

a simple debug_log macro
C
2
star
26

swagger-demo

Golang swagger demo
JavaScript
2
star
27

delaytask

A library which provides a way to run the delay task.
Go
2
star
28

lambda-calculus-x

`λ-calculus` implementations
Haskell
1
star
29

wechat-scheme-server

scheme-server runing on wechat platform
Scheme
1
star
30

gle_vimrc

my vim config
Vim Script
1
star
31

proxy_switch

A Firefox add-on for me to switch proxy.
JavaScript
1
star
32

dotconfig

Configuration Files for Linux and OSX
Shell
1
star
33

parrot

Parrot is a programming language implementation project that aims to explore the concepts and techniques involved in creating a language from scratch
Go
1
star
34

goyascm

Yet Another Scheme Interpreter writen in Go using yacc.
Go
1
star
35

cprpc

Go
1
star