Shadowsock for Asuswrt-Merlin New Gen
shadowsocks-asuswrt-merlin will install
v2ray-pluginon your Asuswrt-Merlin New Gen(version 382.xx and higher) based router, tested on NETGEAR R7000 and ASUS RT-AC86U.
For server side set up, you can easily install shadowsocks server and v2ray-plugin with docker by https://github.com/Acris/docker-shadowsocks-libev.
Make sure you have installed all prerequisites software and utils, you can install it by:
sh opkg update opkg upgrade opkg install ca-certificates git-http wget
shadowsocks-asuswrt-merlin is installed by running the following commands in your terminal:
sh sh -c "$(wget https://cdn.jsdelivr.net/gh/Acris/[email protected]/tools/install.sh -O -)"
The sample shadowsocks configuration file location is:
local_addressis set to
We highly recommend to enable
v2ray-pluginon your server side. You can set up your server in several command with: https://github.com/Acris/docker-shadowsocks-libev.
If you want to enable UDP support, you should set
For configuration file documents, you can go to: https://github.com/shadowsocks/shadowsocks-libev/blob/master/doc/shadowsocks-libev.asciidoc#config-file ```sh
cd /opt/share/ss-merlin/etc/shadowsocks cp config.sample.json config.json vi config.json ```
The sample shadowsocks-asuswrt-merlin configuration file location is:
/opt/share/ss-merlin/etc/ss-merlin.sample.conf. Currently, shadowsocks-asuswrt-merlin support three mode: - 0: GFW list. - 1: Bypass mainland China. - 2: Global mode.
You can also enable or disable UDP support to change
udp=1, ensure your server side support UDP and set
"mode": "tcp_and_udp"in shadowsocks configuration file. ```sh
cd /opt/share/ss-merlin/etc cp ss-merlin.sample.conf ss-merlin.conf vi ss-merlin.conf ```
Configure which LAN IP will pass transparent proxy by edit
lan_ips, you can assign a LAN IP like 220.127.116.11 means only this device can pass transparent proxy.
And you can change the default DNS server for Chinese IPs by modifying
Then, start the service: ```sh
ss-merlin start ```
[email protected]:/tmp/home/root# ss-merlin Usage: ss-merlin start|stop|restart|upgrade|uninstall
# Block domain ## Add domain to this file if you want to block it. vi /opt/share/ss-merlin/rules/user_domain_name_blocklist.txt
Force pass proxy
You can add domain to this file if you want to force the domain pass proxy.
You can add domain to this file if you need the domain bypass proxy.
You can add IP address to this file if you need the IP bypass proxy.
You can add IP address to this file if you want to force the IP pass proxy.
Then, restart the service
Thanks for the following awesome projects ❤️ - shadowsocks-libev - v2ray-plugin - asuswrt-merlin.ng - Entware - asuswrt-merlin-transparent-proxy - unbound - dnsmasq-china-list - gfwlist - gfwlist2dnsmasq - ss-tproxy - oh-my-zsh - And much more.
The MIT License (MIT)
Copyright (c) 2016 Billy Zheng
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.