[go: nahoru, domu]

Skip to content

boxhg/openwrt-ss-kcp

Repository files navigation

Openwrt-SS-Kcptun

setup shadowsocks&kcptun on openwrt, global transparent proxy for all client device.

Install OpenWRT(SS+Kcp) in router

Newifi Y1S < CPU: MT7620, RAM: 256M, target: ramips, architecture: mipsel_24kc > Newifi Y1S - install Openwrt with KCPTun& ShadowSocks

Netgear-WNDR4300 V1 < CPU: Atheros AR9344, RAM: 128M, architecture: mips_24kc > WNDR4300 install OpenWrt 18.06.1 with SS, KCP WNDR4300

Install OpenWRT(SS+Kcp) in VMWare/VirtualBox

Run OpenWrt 18.06.2 with SS+Kcp On VMware

Shadowsocks & Kcptun Config

1.Services-Kcptun Client

Server Manage - Add Kcptun Server

server ip: kcp server ip    
server port: kcp port

local ip: 127.0.0.1
local port: xxxxx (any port you like)

Kcptun - Settings

Server: kcp server
Client File: /var/kcptun_client   

2.Service-Shadowsocks config

ShadowSocks - Servers Manage

Add SS Server --> Kcp Client

server: 127.0.0.1   
port: xxxxx

ShadowSocks - Access Control

Zone WAN
Bypassed IP List : NULL As global proxy
Forwarded IP:  8.8.8.8    

ShadowSocks - General Settings -

Transparent Proxy
    choose the ss server config

3.Save&Apply, check running status. If SS&KCP not running, check the logs

Openwrt Dns Config

1.Service-DNS-Forwarder

Listen Port:5353
Listen Address:127.0.0.1
DNS Server:8.8.8.8

2.Network-DHCP/DNS

General Settings

DNS Forwarder: 127.0.0.1#5353

Resolv and Hosts Files:(Must checked)

Ignore resolve file: checked

3.the DNS Query packet trace:

client's dns query -> Router:53 -> Router:5353 ->8.8.8.8:53

open any website in browser , and router is working..

Reference URL:

http://openwrt-dist.sourceforge.net/
http://openwrt-dist.sourceforge.net/packages/
http://openwrt-dist.sourceforge.net/archives/  

https://my.oschina.net/CasparLi/blog/487458   
https://blog.phpgao.com/xiaomi_router_shadowsocks_libev_spec.html

OpenWRT Transparent Proxy (Shadowsocks-libev Access Control, Pure-DNS)

http://www.gonewto.com/?post/v4kfyi
https://cokebar.info/archives/1704

About

run ss&kcp on openwrt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published