All Projects → esrrhs → yellowsocks

esrrhs / yellowsocks

Licence: MIT license
transparent TCP to SOCKS5 redirector

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to yellowsocks

Php Socks5
socks5 proxy written in PHP based on workerman.
Stars: ✭ 151 (+403.33%)
Mutual labels:  socks5
Ipt2socks
utility for converting iptables(redirect/tproxy) to socks5
Stars: ✭ 183 (+510%)
Mutual labels:  socks5
Tor Socks Proxy
🐳 Tiny Docker(🤏 10MB) image as 🧅 Tor SOCKS5 proxy 🛡
Stars: ✭ 218 (+626.67%)
Mutual labels:  socks5
Skywire Testnet
Skywire Meshnet and VPN
Stars: ✭ 166 (+453.33%)
Mutual labels:  socks5
Shadowsocks Rust
Oh my implementation of Shadowsocks in Rust
Stars: ✭ 171 (+470%)
Mutual labels:  socks5
Kafka Proxy
Proxy connections to Kafka cluster. Connect through SOCKS Proxy, HTTP Proxy or to cluster running in Kubernetes.
Stars: ✭ 186 (+520%)
Mutual labels:  socks5
Socksify Ruby
Redirect any TCP connection initiated by a Ruby script through a SOCKS5 proxy
Stars: ✭ 146 (+386.67%)
Mutual labels:  socks5
spp
A simple and powerful proxy
Stars: ✭ 575 (+1816.67%)
Mutual labels:  socks5
Php Whois
PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 5.4+ and 7+ compatible
Stars: ✭ 179 (+496.67%)
Mutual labels:  socks5
Frpc Android
Android,安卓版frpc,一个快速反向代理,可帮助您将NAT或防火墙后面的本地服务器暴露给Internet。
Stars: ✭ 205 (+583.33%)
Mutual labels:  socks5
Psiphon
A multi-functional version of a popular network circumvention tool
Stars: ✭ 169 (+463.33%)
Mutual labels:  socks5
Brook
Brook is a cross-platform strong encryption and not detectable proxy. Zero-Configuration. Brook 是一个跨平台的强加密无特征的代理软件. 零配置.
Stars: ✭ 12,694 (+42213.33%)
Mutual labels:  socks5
Brook Web
💻brook程序服务端Web后台管理。✈️通过网页直接管理Brook、ShadowSocks、Socks5服务(Telegram可用)!
Stars: ✭ 196 (+553.33%)
Mutual labels:  socks5
3proxy
3proxy - tiny free proxy server
Stars: ✭ 2,263 (+7443.33%)
Mutual labels:  socks5
Chameleon
Customizable honeypots for monitoring network traffic, bots activities and username\password credentials (DNS, HTTP Proxy, HTTP, HTTPS, SSH, POP3, IMAP, STMP, RDP, VNC, SMB, SOCKS5, Redis, TELNET, Postgres and MySQL)
Stars: ✭ 230 (+666.67%)
Mutual labels:  socks5
Cc Attack
Using Socks4/5 proxy to make a multithreading Http-flood/Https-flood (cc) attack.
Stars: ✭ 145 (+383.33%)
Mutual labels:  socks5
Marmot
💐Marmot | Web Crawler/HTTP protocol Download Package 🐭
Stars: ✭ 186 (+520%)
Mutual labels:  socks5
socks5
(支持UDP和TCP的纯Go/Golang socks5服务器) socks5 proxy server builds with go/golang, which UDP and TCP are supported.
Stars: ✭ 107 (+256.67%)
Mutual labels:  socks5
Mubeng
An incredibly fast proxy checker & IP rotator with ease.
Stars: ✭ 234 (+680%)
Mutual labels:  socks5
Socks
Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.
Stars: ✭ 200 (+566.67%)
Mutual labels:  socks5

yellowsocks

Go Report Card

yellowsocks类似于redsocks,是依赖iptables把tcp转换为socks5的全局代理工具。

配置代理

在linux或者路由器上启动,指定监听端口、socks5的地址端口。

./yellowsocks -l :4455 -t 127.0.0.1:1080

配置iptables


*nat

:PREROUTING ACCEPT [0:0]

:INPUT ACCEPT [0:0]

:OUTPUT ACCEPT [0:0]

:POSTROUTING ACCEPT [0:0]

:REDSOCKS - [0:0]

# Redirect all output through redsocks

-A OUTPUT -p tcp -j REDSOCKS

# Whitelist LANs and some other reserved addresses.

# https://en.wikipedia.org/wiki/Reserved_IP_addresses#Reserved_IPv4_addresses

-A REDSOCKS -d 0.0.0.0/8 -j RETURN

-A REDSOCKS -d 10.0.0.0/8 -j RETURN

-A REDSOCKS -d 127.0.0.0/8 -j RETURN

-A REDSOCKS -d 169.254.0.0/16 -j RETURN

-A REDSOCKS -d 172.16.0.0/12 -j RETURN

-A REDSOCKS -d 192.168.0.0/16 -j RETURN

-A REDSOCKS -d 224.0.0.0/4 -j RETURN

-A REDSOCKS -d 240.0.0.0/4 -j RETURN

-A REDSOCKS -d {socks5的ip地址} -j RETURN

-A REDSOCKS -p tcp --dport {socks5的端口} -j RETURN

# Redirect everything else to redsocks port

-A REDSOCKS -p tcp -j REDIRECT --to-ports 4455

COMMIT

openwrt配置

  • 编译yellowsocks成路由器对应版本,如GOOS=linux GOARCH=mipsle go build
  • 部分CPU需要在kernel里打开FPU,重新编译openwrt固件,编译方法参考官网
  • 路由器启动后,在/etc/firewall.user添加转发规则
iptables -t nat -N YELLOWSOCKS
iptables -t nat -A PREROUTING -i br-lan -p tcp -j YELLOWSOCKS

# Do not redirect traffic to the followign address ranges
iptables -t nat -A YELLOWSOCKS -d 0.0.0.0/8 -j RETURN
iptables -t nat -A YELLOWSOCKS -d 10.0.0.0/8 -j RETURN
iptables -t nat -A YELLOWSOCKS -d 127.0.0.0/8 -j RETURN
iptables -t nat -A YELLOWSOCKS -d 169.254.0.0/16 -j RETURN
iptables -t nat -A YELLOWSOCKS -d 172.16.0.0/16 -j RETURN
iptables -t nat -A YELLOWSOCKS -d 192.168.0.0/16 -j RETURN
iptables -t nat -A YELLOWSOCKS -d 224.0.0.0/4 -j RETURN
iptables -t nat -A YELLOWSOCKS -d 240.0.0.0/4 -j RETURN

# Redirect all kinds of traffic
iptables -t nat -A YELLOWSOCKS -p tcp -j REDIRECT --to-ports 4455
  • 启动yellowsocks
./yellowsocks -l :4455 -t sock5的ip:sock5的端口 -nolog 1 -noprint 1
  • 如果上不去网,说明有dns污染,可以通过pingtunnel解决
  • 设置openwrt自带的dnsmasq转发
uci add_list dhcp.@dnsmasq[0].server="127.0.0.1#5353"
uci set dhcp.@dnsmasq[0].noresolv="1"
uci set dhcp.@dnsmasq[0].localuse="1"
uci commit dhcp
/etc/init.d/dnsmasq restart
  • 启动pingtunnel,转发dns到远端
./pingtunnel -type client -l :5353 -s yourserver -t 8.8.8.8:53 -key yourkey -nolog 1 -noprint 1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].