Commit graph

14 commits

Author SHA1 Message Date
Yousong Zhou
d86ca89e49 shadowsocks-libev: add note on nftables set restriction
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2022-03-07 10:18:19 +08:00
Zhong Jianxin
2de9035bda shadowsocks-libev: add nft_tcp_extra/nft_udp_extra options
To add extra statement to tcp/udp forward rule, example:

```
config ss_rules 'ss_rules'
    ...
    option nft_tcp_extra 'tcp dport { 80, 443 }' # tcp only forward connections with dport 80 or 443
    option nft_udp_extra 'udp dport { 53 }' # udp only forward connections with dport 53
```

This somewhat restores the old ipt_args functionality.

Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(Amend README.md a bit)
2022-03-07 10:09:56 +08:00
Yousong Zhou
c99cfc3ea3 shadowsocks-libev: update README.md
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2022-03-01 02:19:35 +00:00
Yousong Zhou
fdaf2de2ae shadowsocks-libev: convert to using nft
It will be mostly implemented with ucode templates installed at
/usr/share/ss-rules and called from init script.  The generated nftables
rules will be stored at /etc/nftables.d/

Incompatible changes were introduced as described in the README.md file

 - Netfilter ipset was replaced with nftables sets
 - UCI options ipt_args and dst_forward_recentrst of section ss_rules
   are now deprecated.  The former does not apply to nftables.  The
   later not yet implemented with nftables.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2022-03-01 10:06:48 +08:00
Yousong Zhou
4418d240a1 shadowsocks-libev: note the deprecation of ss_server.bind_address
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-08-04 11:40:45 +08:00
Yousong Zhou
0a2b3b3b82 shadowsocks-libev: README.md: more notes on the dns configuration
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-11-06 15:40:24 +00:00
Yousong Zhou
742ab4a928 shadowsocks-libev: README.md: add "incompatible changes" section
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-05-09 06:15:20 +00:00
Yousong Zhou
afe7d34240 shadowsocks-libev: move plugin options to server section
Plugin options are properties of shadowsocks deployment as a whole,
including both server and each client components.  Multiple client
instances accessing the same server will need to share the same plugin
settings

With this change, plugin options will need to specified to "server" and
"ss-server" section, not to each component section.

Fixes: c19e949 ("shadowsocks-libev: add plugin options support")
Reference: https://github.com/openwrt/packages/issues/8903#issuecomment-489674137
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-05-09 06:13:44 +00:00
Yousong Zhou
77b71e3980 shadowsocks-libev: add a "forward all" recipe 2019-04-01 15:51:49 +00:00
Yousong Zhou
585e8e8572 shadowsocks-libev: README.md: reword text about REDIRECT
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-08-27 08:38:12 +00:00
Yousong Zhou
fd0f3aa930 shadowsocks-libev: minor tweak without functional change
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-09-14 11:25:34 +08:00
Yousong Zhou
d6d0a7612a shadowsocks-libev: ss-rules: new bool option --dst-forward-recentrst
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-22 19:52:14 +08:00
Yousong Zhou
df395767d3 shadowsocks-libev: rewrite ss-rules
- New UCI options ifnames, dst_default
 - UCI options src_ips_xxx now accept cidr as their values
 - Export ipset names as part of the interface so that it can be
   depended on and used by other programs
 - Bypass only remote servers used ss-redir instances, so that it's
   possible to let other servers to go through existing re-redir
   instances

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-20 02:21:54 +08:00
Yousong Zhou
b61af9703e shadowsocks-libev: rewrite
- Selecting only a single or subset of all components of shadowsocks-libev is
  now possible (this is the main motivation behind the rewrite)
- Configuring multiple instances of the same component is now also possible
- Same option names as with the json config
- Unified configuration generation method for each component
- Add support for ss-local, ss-tunnel, ss-server
- Most data validation is now done with validate_data
- USE_PROCD=1
- Update ss-rules with the one from shadowsocks/luci-app-shadowsocks
- Add README.md
- Set myself as the maintainer

Addresses #4435

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-02 10:01:53 +08:00