aboutsummaryrefslogtreecommitdiff
path: root/net/shadowsocks-libev/Makefile
Commit message (Collapse)AuthorAge
* shadowsocks-libev: ss-rules: Add 'auto-merge' flag to avoid conflictsLi Xin2023-01-28
| | | | | | | Link: https://github.com/openwrt/packages/pull/19872 Signed-off-by: Li Xin <i@crzidea.com> (squash commits) Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: nft rule cleanup on reloadYousong Zhou2022-08-11
| | | | | | | | | Remove nft rules file generated by ss-rules if ss-rules was or should be turned off for by configuration. Use "fw4 restart" instead of "fw4 reload" to force the runtime rule reloading Ref: https://github.com/openwrt/packages/pull/17937#issuecomment-1207357037 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: setup policy rules for udp/ip6Yousong Zhou2022-08-11
| | | | | | Supersedes: https://github.com/openwrt/packages/pull/18852 Fixes: https://github.com/openwrt/packages/issues/18850 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: fix compat issue with newer version of ucodeYousong Zhou2022-04-28
| | | | | | Link: https://github.com/openwrt/packages/issues/18393 Reported-by: Huangbin Zhan <zhanhb88@gmail.com> Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: add nft_tcp_extra/nft_udp_extra optionsZhong Jianxin2022-03-07
| | | | | | | | | | | | | | | | | 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)
* shadowsocks-libev: convert to using nftYousong Zhou2022-03-01
| | | | | | | | | | | | | | | 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>
* shadowsocks-libev: ss-rules: request presence of nat tableYousong Zhou2022-03-01
| | | | | | | | | | | ss-rules with iptables needs presence of netfilter nat table to work. ss-rules works before without explicitly requesting it as a dependency because it's present by default on a pre-firewall4/nftables OpenWrt install. We request it explicitly now to make life easier in case people would like to try ss-rules/iptables on firewall4/nftables enabled OpenWrt system Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.3.5Yousong Zhou2020-09-21
| | | | | | Patch removed because the relevant code was removed upstream Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: support ss-server option local_{ipv4,ipv6}_addressYousong Zhou2020-08-03
| | | | | | | | | | | | | | | | At the moment ss-server seems to be the only component using these two options. It also accepts "local_address" of either ip4 or ip6 address, but the meaning is different from that of ss-local, ss-tunnel etc. where it is for listen bind With this commit, we start deprecation process of uci option "bind_address". The name was replaced with "local_addr" in upstream project commit 5fa98a66 ("Fix #1911") and available as json config option "local_address". This upstream change was released in 3.2.0 Link: https://github.com/shadowsocks/shadowsocks-libev/commit/4a42da641b6e0039497998614e84c94205939c24 Link: https://github.com/openwrt/packages/issues/12931 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: fix compilation with GCC10Rosen Penev2020-07-03
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* treewide: add conffilesHuangbin Zhan2020-05-09
| | | | Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
* shadowsocks-libev: ignore error from flushing route tableYousong Zhou2020-05-06
| | | | | | | | | | | | | | | | | | | | | | | | Linux kernel and iproute2 together now implement strict checking of the existence of route tables. Previously kernel does not support filtering by table id, now it does and will error with nlmsgerr "ipv4: FIB table does not exist". Previously iproute2 dump all routes and filter by table id in userspace, now this has changed with iproute2 commit c7e6371bc4af ("ip route: Add protocol, table id and device to dump request") Error scene root@OpenWrt:/# ip route flush table 100 Error: ipv4: FIB table does not exist. Flush terminated root@OpenWrt:/# echo $? 2 Fixes: https://github.com/openwrt/packages/issues/12095 Ref: https://lists.openwall.net/netdev/2019/05/02/105 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.3.4Yousong Zhou2020-01-13
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.3.3Yousong Zhou2019-11-04
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.3.2Yousong Zhou2019-10-14
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* treewide: Change .*GPL.*+ licenses to SPDX compatible identifierSven Eckelmann2019-09-10
| | | | | | | | The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL licenses. But a lot of packages did use a different, non-SPDX style with a "+" at the end instead of "-or-later". Signed-off-by: Sven Eckelmann <sven@narfation.org>
* shadowsocks-libev: bump to version 3.3.1Yousong Zhou2019-08-12
| | | | | | | This should fix openwrt/packages#9346 ("shadowsocks-libev: undefined behavior from unaligned access") Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.3.0Yousong Zhou2019-06-11
| | | | | | | The most notable change was that socket data buffer has been increased from 2KB to 16KB Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: size optimizationsDeng Qingfang2019-06-10
| | | | | | | | | Use link-time optimization and --gc-sections --as-needed ldflags Reduces ipk size by 20% Remove unnecessary dependencies Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
* shadowsocks-libev: move plugin options to server sectionYousong Zhou2019-05-09
| | | | | | | | | | | | | | 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>
* shadowsocks-libev: add plugin options supportYousong Zhou2019-05-06
| | | | | Reference: https://github.com/openwrt/packages/issues/8903 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.2.5Yousong Zhou2019-03-15
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.2.4Yousong Zhou2019-03-04
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: move --no-delay into json config fileYousong Zhou2019-02-19
| | | | | | | It was introduced in 3.1.0 as a command line argument and was part of the json config since 3.1.1 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: use jshn.sh for making json configYousong Zhou2019-02-19
| | | | | | As suggested by Jeffery To in openwrt/packages#8233 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: flush ipv6 ss-rules on service stopYousong Zhou2019-02-16
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: fix flushing ipv6 rulesYousong Zhou2019-02-12
| | | | | | "-6" has to be the first argument Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: tweak for readabilityYousong Zhou2019-02-12
| | | | | | | - quash errors on detection of ipv6 nat - remove unnecessary rule args "--comment ..." and "-p ..." Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: flush ss rules on entryYousong Zhou2019-02-11
| | | | | | Fixes issue reported in openwrt/luci#2527 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: simplify grep_afYousong Zhou2019-01-22
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: add ipv6 supportYousong Zhou2019-01-21
| | | | | | | | | | | | | | | It will require support from ip6tables-mod-nat. The added functionality will be skipped otherwise. For $o_dst_bypass6_, include only address blocks in link [1] whose "Globally Reachable" field are explicitly "False" Closes openwrt/packages#7508 [1] IANA IPv6 Special-Purpose Address Registry, https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.2.3Yousong Zhou2018-12-03
| | | | | | | A short while after 3.2.2 was tagged, it was superseded by 3.2.3 with a minor fix for aligned memory allocation for 32-bit arch Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.2.1Yousong Zhou2018-11-12
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.2.0Yousong Zhou2018-06-04
| | | | | | | | | | | Changes summarized by upstream maintainer * Add MinGW support by @linusyang. * Refine c-ares integration by @xnoreq. * Fix building issues with GCC8 by @FlyingheartCN. * Minor bug fixes. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: remove unnecessary curly bracesYousong Zhou2018-02-02
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.1.3Yousong Zhou2018-02-02
| | | | | | | | | | | | | Notable changes since 3.1.2 afce1b3 eliminate timered delay between handshake and data stream #1572 539bf6e sni in redir removed and no disable_sni option #1876 1d94442..29ff5d3 udprelay fix (no idea what's the problem...) #1883 Now disable_sni=true is the default. Existing uci configs setting it will be a nop Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: remove option manager_addressYousong Zhou2018-01-04
| | | | | | | | It's an option that is supposed to be fed by ss-manager. It can be in the form of host:port or path to unix dgram socket. Drop it now with the assumption that it has no real user at the moment Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.1.2Yousong Zhou2018-01-02
| | | | | | | | | | | Notable changes since 3.1.1 - 57ab828 fix possible use-after-free in ss-server - 65e9d23 filter through acl first before doing sni detection - b26cbc2 another attack on null ref - d237a05 udprelay: fix off-by-one bug - 0c3cf8b fix runtime TFO detection - d445ea9 Linux 4.11 TFO socket option support
* shadowsocks-libev: new option no_delayYousong Zhou2018-01-02
| | | | | | | | | --no-delay is a new cmdline argument introduced in 3.1.0 to NOT turn off TCP_NODELAY socket option, i.e. keeping it's default value without setting it explicitly. This can be potentially useful for interactive traffics Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.1.1Yousong Zhou2017-11-21
| | | | | | | | | | Notable changes since 3.1.0 26ae365: fix possible socks5 exchange corruption caused by bad state transition when parsing responses f19a96e: fix segfault when presented with config {"mode": null} Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: bump to version 3.1.0Yousong Zhou2017-09-18
| | | | | | | | | | | | Notable changes since 3.0.8 ede744a: depends on libcares now instead of libudns 1c64829: new cmdline option --no-delay for not turning off TCP_NODELAY 9201619: ss-local: check if client supports socks5 protocol and no-auth-required method f8283fc: Fix potential buffer overflow when parsing json config 380fddb: redir: fix conversion from DSCP to ToS The two patches are now in the offical repo
* shadowsocks-libev: ss-rules: eliminiate not needed local varYousong Zhou2017-09-18
|
* shadowsocks-libev: minor tweak without functional changeYousong Zhou2017-09-14
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: more common default configYousong Zhou2017-08-30
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: query resolveip only for ipv4 addressesYousong Zhou2017-08-30
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: fix multiple continous \x20 in $o_ifnamesYousong Zhou2017-08-30
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: shorten init script by 2 linesYousong Zhou2017-08-30
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: resolve server names before adding to ipsetYousong Zhou2017-08-30
| | | | | | | | | | ipset command line utility supports ranges of address: IP-IP, but the dash character is also valid character in host names. If we have a remote server ss-00.example.com, ipset may complain that ipset v6.32: Syntax error: cannot parse ss: resolving to IPv4 address failed Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: fix validation of list optionYousong Zhou2017-08-30
| | | | | | | | | | ubox 'list' type is for validating multiple elements separated by tabs/whitespaces in a single value. E.g. The following should not be accepted list src_ip_bypass '1.2.3.4 4.3.2.1' Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* shadowsocks-libev: ss-rules: new bool option --dst-forward-recentrstYousong Zhou2017-08-22
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>