1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00

Fix ShadowSocks IPv6 rules

This commit is contained in:
Ycarus 2018-07-07 21:15:36 +02:00
parent ba23bc1b06
commit a9d3616d21
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,7 @@
#!/bin/sh -e #!/bin/sh -e
# #
# Copyright (C) 2017 Yousong Zhou <yszhou4tech@gmail.com> # Copyright (C) 2017 Yousong Zhou <yszhou4tech@gmail.com>
# Copyright (C) 2018 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
# #
# The design idea was derived from ss-rules by Jian Chang <aa65535@live.com> # The design idea was derived from ss-rules by Jian Chang <aa65535@live.com>
# #

View file

@ -52,7 +52,8 @@ EOF
} }
o_dst_bypass_=" o_dst_bypass_="
FE80::/10 fe80::/10
fd00::/8
" "
o_src_default=bypass o_src_default=bypass
o_dst_default=bypass o_dst_default=bypass
@ -168,8 +169,8 @@ ss_rules6_iptchains_init_tcp() {
*nat *nat
:ss_rules6_local_out - :ss_rules6_local_out -
-I OUTPUT 1 -p tcp -j ss_rules6_local_out -I OUTPUT 1 -p tcp -j ss_rules6_local_out
-A ss_rules6_local_out -m set --match-set ss_rules6_dst_bypass_ dst -j RETURN
-A ss_rules6_local_out -m set --match-set ss_rules6_dst_bypass dst -j RETURN -A ss_rules6_local_out -m set --match-set ss_rules6_dst_bypass dst -j RETURN
-A ss_rules6_local_out -m set --match-set ss_rules6_dst_bypass_ dst -j RETURN
-A ss_rules6_local_out -m mark --mark 0x539 -j RETURN -A ss_rules6_local_out -m mark --mark 0x539 -j RETURN
-A ss_rules6_local_out -p tcp $o_ipt_extra -j $local_target -m comment --comment "local_default: $o_local_default" -A ss_rules6_local_out -p tcp $o_ipt_extra -j $local_target -m comment --comment "local_default: $o_local_default"
COMMIT COMMIT