{"id":13775932,"url":"https://github.com/haohaolee/shadowsocks-openwrt","last_synced_at":"2025-05-11T08:34:26.487Z","repository":{"id":6157380,"uuid":"7386879","full_name":"haohaolee/shadowsocks-openwrt","owner":"haohaolee","description":"A package of shadowsocks for OpenWrt","archived":false,"fork":false,"pushed_at":"2013-04-07T09:59:36.000Z","size":141,"stargazers_count":199,"open_issues_count":6,"forks_count":49,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-11-17T11:47:23.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"wangjwchn/JWAnimatedImage","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haohaolee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-31T12:35:23.000Z","updated_at":"2024-11-10T07:47:29.000Z","dependencies_parsed_at":"2022-08-31T21:01:26.587Z","dependency_job_id":null,"html_url":"https://github.com/haohaolee/shadowsocks-openwrt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haohaolee%2Fshadowsocks-openwrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haohaolee%2Fshadowsocks-openwrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haohaolee%2Fshadowsocks-openwrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haohaolee%2Fshadowsocks-openwrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haohaolee","download_url":"https://codeload.github.com/haohaolee/shadowsocks-openwrt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253540462,"owners_count":21924522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:55.023Z","updated_at":"2025-05-11T08:34:26.248Z","avatar_url":"https://github.com/haohaolee.png","language":null,"funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"cb16466a31a167bb61f39e2a4a85f449\"\u003e\u003c/a\u003eShadowsocks"],"readme":"shadowsocks-openwrt\n===================\n\nA package of shadowsocks for OpenWrt\n\n### latest version: shadowsocks-libev-1.0\n\n## Background\nThis is a OpenWrt's package description for [shadowsocks-libev](https://github.com/madeye/shadowsocks-libev)\n\n## Build from source\nDownload OpenWrt source from [dev][] or SDK from [downloads][]. And go to the root of the SDK or source. e.g.:\n\n    [OpenWrt-SDK]$ ls -l\n    total 76\n    -rw-r--r-- 1 haohaolee users    32 Aug 16  2011 Config.in\n    drwxr-xr-x 2 haohaolee users  4096 Dec 30 03:16 dl\n    drwxr-xr-x 2 haohaolee users  4096 Nov 26 11:41 docs\n    -rw-r--r-- 1 haohaolee users   567 Nov 26 19:03 feeds.conf.default\n    drwxr-xr-x 3 haohaolee users  4096 Nov 26 19:03 include\n    -rw-r--r-- 1 haohaolee users 17992 Aug 16  2011 LICENSE\n    -rw-r--r-- 1 haohaolee users  1161 Aug 16  2011 Makefile\n    drwxr-xr-x 4 haohaolee users  4096 Dec 28 18:12 package\n    -rw-r--r-- 1 haohaolee users   337 Aug 16  2011 README.SDK\n    -rw-r--r-- 1 haohaolee users  9563 Nov 26 11:41 rules.mk\n    drwxr-xr-x 4 haohaolee users  4096 Nov 26 11:41 scripts\n    drwxr-xr-x 5 haohaolee users  4096 Nov 26 19:03 staging_dir\n    drwxr-xr-x 3 haohaolee users  4096 Nov 26 19:03 target\n    \n    [OpenWrt-SDK]$ git clone https://github.com/madeye/shadowsocks-openwrt.git package/shadowsocks-openwrt\n    ...\n    [OpenWrt-SDK]$ make package/shadowsocks-openwrt/shadowsocks-libev/compile\n    ...\n    \nFinally find your package in dir bin\n\n## Prebuilt ipk\n\nYou can download the latest prebuilt packages from http://buildbot.sinaapp.com. Currently, we only provide prebuilt packages for ar71xx and bcm47xx platforms.\n\n## Basic usage\n\nLog into OpenWrt via SSH and edit the config file `/etc/config/shadowsocks.json`. Then start the service like this:\n\n    root@Wrt:~# /etc/init.d/shadowsocks start # start the daemon\n    root@Wrt:~# /etc/init.d/shadowsocks enable # enable startup at boot\n    \n## Advanced usage\n\nThe latest shadowsocks-libev has provided a transparent mode. You can configure your router with IPTABLES to proxy all tcp traffic transparently.\n\n    # Create new chain\n    root@Wrt:~# iptables -t nat -N SHADOWSOCKS\n    \n    # Ignore your shadowsocks server's addresses\n    # It's very IMPORTANT, just be careful.\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -d 123.123.123.123 -j RETURN\n\n    # Ignore LANs and any other addresses you'd like to bypass the proxy\n    # See Wikipedia and RFC5735 for full list of reserved networks.\n    # See ashi009/bestroutetb for a highly optimized CHN route list.\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -d 0.0.0.0/8 -j RETURN\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -d 10.0.0.0/8 -j RETURN\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -d 127.0.0.0/8 -j RETURN\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -d 169.254.0.0/16 -j RETURN\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -d 172.16.0.0/12 -j RETURN\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -d 192.168.0.0/16 -j RETURN\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -d 224.0.0.0/4 -j RETURN\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -d 240.0.0.0/4 -j RETURN\n\n    # Anything else should be redirected to shadowsocks's local port\n    root@Wrt:~# iptables -t nat -A SHADOWSOCKS -p tcp -j REDIRECT --to-ports 12345\n    \n    # Apply the rules\n    root@Wrt:~# iptables -t nat -A OUTPUT -p tcp -j SHADOWSOCKS\n    \n    # Start the shadowsocks-redir\n    root@Wrt:~# ss-redir -c /etc/config/shadowsocks.json -f /var/run/shadowsocks.pid\n\n[dev]: https://dev.openwrt.org\n[downloads]: http://downloads.openwrt.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaohaolee%2Fshadowsocks-openwrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaohaolee%2Fshadowsocks-openwrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaohaolee%2Fshadowsocks-openwrt/lists"}