Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems [proxy_all] and [bypass_list} not working in custom ruls #2895

Closed
14 tasks
iamsad3508 opened this issue Jun 3, 2022 Discussed in #2894 · 3 comments
Closed
14 tasks

Seems [proxy_all] and [bypass_list} not working in custom ruls #2895

iamsad3508 opened this issue Jun 3, 2022 Discussed in #2894 · 3 comments

Comments

@iamsad3508
Copy link

Discussed in #2894

Originally posted by iamsad3508 May 31, 2022
I want to bypass only 192.168.. with route set as ALL, but i know zero about rules, can anyone help?

Please read contributing guidelines. Thanks.

Describe the bug
Seems [proxy_all] and [bypass_list} not working in custom ruls

To Reproduce
Steps to reproduce the behavior:
SCENES 1

  1. create an ACL file, fill it with
    [proxy_all] [bypass_list] 192.168.0.0/16
  2. creat a url like https://abc.xyz/abc.acl
  3. adding the url in custom rule-URL to onlifne config
  4. change profile route to custom rules

SCENES 2

  1. copy
    [proxy_all] [bypass_list] 192.168.0.0/16
  2. open custom rules ,import from clipboard, FAIL TO IMPORT
    Nothing show in the list and pop out a message : Fail to import
    Seems including any of these(proxy_all and bypass_all) will fail to import

Expected behavior
SCENES 1 :all traffic including 127.0.0.1 go through SS, except 192.168.1.1
SCENES 2 :Import success

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Android/Chrome OS version: Android 12 (SP2A.220505.002)
  • Device: Google Pixel 5
  • Version: 5.2.6 AND 5.2.6 nightly
  • Last version that did not exhibit the issue: [not applicable]

Configuration
Put an x inside the [ ] that applies.

  • [ X] IPv4 server address
  • IPv6 server address
  • [ X] Client IPv4 availability
  • Client IPv6 availability
  • Encrypt method:
  • Route
    • All
    • Bypass LAN
    • Bypass China
    • Bypass LAN & China
    • GFW List
    • China List
    • [ X] Custom rules
  • IPv6 route
  • Apps VPN mode
    • Bypass mode
  • Remote DNS: 8.8.8.8
  • DNS over UDP
  • Plugin configuration (if applicable):
  • Auto Connect
  • TCP Fast Open
  • If you're not using VPN mode, please supply more details here:

Additional context
Add any other context about the problem here.

@yeganemehr
Copy link

same here!
I want to bypass some subnets, and proxy all others but it's not working

@Mygod
Copy link
Contributor

Mygod commented Sep 24, 2022

Not supported.

@Mygod Mygod closed this as completed Sep 24, 2022
@yeganemehr
Copy link

yeganemehr commented Sep 25, 2022

Such a shame!
We are living in a time that our governments take any action, pursuit any clue to shoot our access to free internet, to censor data flow.
You @Mygod and other contributors done wonderful job in this repo. Thank you!
But it's no need to this manner.
This issue is not big technical deal, All of code that do the job is there and it's important to people that using it.

You may heard in the news, In my country (Iran) now internet is shutdown and only domestic network is working.
Only essential services (like banks, online taxis, government services, etc) are working.
If you somehow could get access to global internet (with ssh tunneling through multiple hosts) you cannot access to those essential services; This isn't new, before these events all of important services in Iran just work in domestic network (Intranet) so we have to just keep switching VPNs on and off several times in a day (like 10-20 times in a day).

Do not forget why this projects exist, what was their philosophy.
You can solve this issue or at least keep it open to someday someone solve it.


For those like me that can't wait: you can do this

  1. First donwload apk of shadowsocks
cd /tmp
wget -O shadowsocks.apk https://github.com/shadowsocks/shadowsocks-android/releases/download/v5.2.6/shadowsocks--universal-v5.2.6.apk
  1. Unpack apk of shadowsocks using APKTool
apktool d -s shadowsocks.apk
  1. Edit shadowsocks/assets/acl/gfwlist.acl to your desire.

  2. Change value of route_entry_gfwlist in shadowsocks/res/values/strings.xml
    Screenshot_2022-09-25_15-19-42

  3. Repack apk

apk b shadowsocks
  1. Generate a keystore:
keytool -genkey -keystore debug.keystore -validity 10000 -alias debug -keyalg rsa
  1. Sign apk with your self-sign-certificate:
jarsigner -keystore debug.keystore -verbose shadowsocks/dist/shadowsocks.apk debug
  1. Install it on your device:
adb install -r shadowsocks/dist/shadowsocks.apk
  1. In your VPN profile, choose new option.
    photo_2022-09-25_15-22-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants