amnezia-vpn / amnezia-client

Amnezia VPN Client (Desktop+Mobile)
https://amnezia.org
GNU General Public License v3.0
4.47k stars 291 forks source link

Split tunneling import crashes the app (Windows client) #417

Closed nlobanov closed 7 months ago

nlobanov commented 11 months ago

Describe the bug I imported a huge json of 25 megabytes. After importing, amnezia vpn froze. After killing it and restarting, I can no longer open the split tunneling page, the client just freezes when opening it. RAM consumption is rapidly increasing, starting at 1-2 gigabytes and filling 100% of my RAM (16gb) within 10-20 seconds.

To Reproduce Steps to reproduce the behavior:

  1. Go to Split tunneling options
  2. Import large json with urls
  3. Amnezia client is not responding

Log files In the archive there is a json file containing all url's blocked by roskomnadzor. Json in the format that amnezia vpn generates when saving the list. P.S. yes, I know it's probably not the smartest idea to import such a large json. transformed_websites.zip

Screenshots image image

Expected behavior I expect the json file to either be processed or I get an error.

Desktop (please complete the following information):

outspace commented 11 months ago

1) We made a rework of Split tunnel. In version 4.1.0.0 we added WG/AWG support for the desktop and some other fixes. It can be downloaded from https://github.com/amnezia-vpn/amnezia-client/actions/runs/6750374498

2) Your JSON list is wrong. It operates with IP, and you must set up "ip" field.

3) List can be optimized by subnets. It supports values like 192.168.31.0/24. Proper way to make this list is to find all blocked ip ranges than build json list of those ranges.

pokamest commented 7 months ago

Fixed in 4.1.0