How to set up VPN to turn on and off automatically on your smartphone

news/57426-kak-nastroit-avtomaticheskoe-vklyuchenie-i-vyklyuchenie-vpn-na-smartfone/" onclick="return {"Gallery":{"data":{"images":[{"share_url":"/news/57426-kak-nastroit-avtomaticheskoe-vklyuchenie-i-vyklyuchenie-vpn-na-smartfone/imageset/2234498/","index":0,"disabled_zoom":null,"gallery_id":0,"url":[{"width":2000,"src":"https://htstatic.imgsmail.ru/pic_original/f1ee7b753147a0ac0c437608e240b0a3/2234498/","height":1126},{"width":840,"src":"https://htstatic.imgsmail.ru/pic_image/d22e28c47749c037bbf8a34b7ce37970/840/472/2234498/","height":472},{"width":159,"src":"https://htstatic.imgsmail.ru/pic_image/3fdf5a0e4b7a2314e820dd2eab205906/159/90/2234498/","height":90},{"width":620,"src":"https://htstatic.imgsmail.ru/pic_image/c12b942352fb00b73217aceb944d2b8a/620/580/2234498/","height":580}],"title":null,"id":2234498},{"share_url":"/news/57426-kak-nastroit-avtomaticheskoe-vklyuchenie-i-vyklyuchenie-vpn-na-smartfone/imageset/2228419/","index":1,"disabled_zoom":null,"gallery_id":0,"url":[{"width":1999,"src":"https://htstatic.imgsmail.ru/pic_original/8f890418a8d5cb4fa80c091095a8955f/2228419/","height":933},{"width":840,"src":"https://htstatic.imgsmail.ru/pic_image/f41872c523a25fc27027b8464b235696/840/392/2228419/","height":392},{"width":192,"src":"https://htstatic.imgsmail.ru/pic_image/10ea6acd3e5a7899a8a40399c1efb1d4/192/90/2228419/","height":90},{"width":620,"src":"https://htstatic.imgsmail.ru/pic_image/a2c1c75eec4694ad9229db70c1f4d75f/620/580/2228419/","height":580}],"title":null,"id":2228419},{"share_url":"/news/57426-kak-nastroit-avtomaticheskoe-vklyuchenie-i-vyklyuchenie-vpn-na-smartfone/imageset/2228420/","index":2,"disabled_zoom":null,"gallery_id":0,"url":[{"width":1999,"src":"https://htstatic.imgsmail.ru/pic_original/57d3e44ea66781ad38eee518b0ed78bd/2228420/","height":930},{"width":840,"src":"https://htstatic.imgsmail.ru/pic_image/20a3f5db292c8c29f0081f4c9b3181e2/840/390/2228420/","height":390},{"width":193,"src":"https://htstatic.imgsmail.ru/pic_image/25ca59cbb07f5349b13a669c8771ce77/193/90/2228420/","height":90},{"width":620,"src":"https://htstatic.imgsmail.ru/pic_image/0c90298fefd6c43945dee682bd6c525c/620/580/2228420/","height":580}],"title":null,"id":2228420},{"share_url":"/news/57426-kak-nastroit-avtomaticheskoe-vklyuchenie-i-vyklyuchenie-vpn-na-smartfone/imageset/2228421/","index":3,"disabled_zoom":null,"gallery_id":0,"url":[{"width":1999,"src":"https://htstatic.imgsmail.ru/pic_original/331893958d4eb717f2e8f088d3f3af02/2228421/","height":937},{"width":840,"src":"https://htstatic.imgsmail.ru/pic_image/dc6e43df3409a256ad5bd2df98757dd7/840/393/2228421/","height":393},{"width":192,"src":"https://htstatic.imgsmail.ru/pic_image/7660daef0a49febc3fc3a8d54af27116/192/90/2228421/","height":90},{"width":620,"src":"https://htstatic.imgsmail.ru/pic_image/cfba26db40eb8a56b410407db069e828/620/580/2228421/","height":580}],"title":null,"id":2228421},{"share_url":"/news/57426-kak-nastroit-avtomaticheskoe-vklyuchenie-i-vyklyuchenie-vpn-na-smartfone/imageset/2228422/","index":4,"disabled_zoom":null,"gallery_id":0,"url":[{"width":1999,"src":"https://htstatic.imgsmail.ru/pic_original/194639538079a9c9d4a6e43512dbdda8/2228422/","height":951},{"width":840,"src":"https://htstatic.imgsmail.ru/pic_image/16438b274d70457d64dc436941735226/840/399/2228422/","height":399},{"width":189,"src":"https://htstatic.imgsmail.ru/pic_image/ab258a304efcd85795e4e0003c509a9e/189/90/2228422/","height":90},{"width":620,"src":"https://htstatic.imgsmail.ru/pic_image/1e09900d3a3edcfe7827094bdb19c622/620/580/2228422/","height":580}],"title":null,"id":2228422},{"share_url":"/news/57426-kak-nastroit-avtomaticheskoe-vklyuchenie-i-vyklyuchenie-vpn-na-smartfone/imageset/2228423/","index":5,"disabled_zoom":null,"gallery_id":0,"url":[{"width":1999,"src":"https://htstatic.imgsmail.ru/pic_original/64fbac54c875d6529b3b37a9eed06a00/2228423/","height":1269},{"width":840,"src":"https://htstatic.imgsmail.ru/pic_image/5b909d00dec9ad6e8b714e6915b4b7d4/840/533/2228423/","height":533},{"width":141,"src":"https://htstatic.imgsmail.ru/pic_image/2d8e115f92a464df75734c76f496571e/141/90/2228423/","height":90},{"width":620,"src":"https://htstatic.imgsmail.ru/pic_image/fb78f29331964578abe64174584b9cc2/620/580/2228423/","height":580}],"title":null,"id":2228423},{"share_url":"/news/57426-kak-nastroit-avtomaticheskoe-vklyuchenie-i-vyklyuchenie-vpn-na-smartfone/imageset/2228425/","index":6,"disabled_zoom":null,"gallery_id":0,"url":[{"width":1999,"src":"https://htstatic.imgsmail.ru/pic_original/b125158f725deb02449139da9067b913/2228425/","height":1261},{"width":840,"src":"https://htstatic.imgsmail.ru/pic_image/c57cd75a43d4587295331c80a1315cbc/840/529/2228425/","height":529},{"width":142,"src":"https://htstatic.imgsmail.ru/pic_image/f49fa7a1d2f0736da296f321f3fc9fef/142/90/2228425/","height":90},{"width":620,"src":"https://htstatic.imgsmail.ru/pic_image/5e86af6e4efa36c9fdff4b0b7490db1b/620/580/2228425/","height":580}],"title":null,"id":2228425}],"splashUrl":"/ajax/get_last_news/?content_id=57426"},"options":{"urlSplash":"/ajax/get_last_news/?content_id=57426"}}}" itemprop="reviewBody">

Today, many of us are forced to turn VPNs on and off several times a day. Some foreign services do not work without a magic button, while domestic ones, on the contrary, block traffic from foreign ip addresses. As a result, interaction with the smartphone turns into an endless series of switches, which cannot but annoy.

This problem is also relevant for users who use shareware services to bypass blocking with a limit on the amount of traffic. Keeping the VPN enabled in non-stop mode is simply unprofitable for them. We know how to make your service work automatically, and we will save you the pain.

The essence of the method is to create scripts that will be responsible for turning the VPN on and off when certain conditions occur, in our case, this is the launch and closing of applications. It’s simple: open the application – the VPN becomes active, close it – the client automatically turns off.

On the iPhone, such scenarios can be configured by the application “Teams» (Shortcuts). With it, you can automate most of the routine actions in your smartphone.

It should be noted right away: not every service is suitable for automation in its purest form. For example, some of them, following setting up the script, simply do not want to close. Others require setting up complex scripts with many conditions or installing an additional application «Action».

We have tested several VPN clients and can recommend with confidence AdGuard VPN. The service is paid, but includes a free package of 13 GB, which is enough for everyday tasks.

How to set up VPN auto-enable

  • Open the “Teams” application and go to the “Automation” section;
  • Click on the “Create automation for yourself” button;
  • In the list of conditions that opens, select “Application”;

  • At the next stage, we check that the checkbox “Open” is activated, and click on the inscription “Select”;
  • We select applications for which VPN must be enabled at startup, and click “Finish”;
  • In the new window, click “Add action” and select AdGuard client → “Set up VPN connection” action;

  • We check that the parameter “Enable VPN connection” is selected as a variable and click “Next”;
  • Disable the “Ask before launch” checkbox and confirm your choice in the pop-up window;
  • At the last stage, we check the conditions for executing our script and run the application for verification.

How to Set Up VPN Auto Shutdown

In a similar way, the script is configured to automatically turn off the VPN following closing applications. You can go the other way and set the action to disable the client on opening only for those applications that do not want to work with the VPN turned on.

For this:

  • Again, go to the “Teams” application and click “+” in the upper right corner of the screen;
  • “Create automation for yourself”;
  • As a trigger for the onset of the scenario, we once more select the opening of the necessary applications;

  • At the stage of configuring the VPN action, change “Enable connection” to “Disable connection” by clicking on it once. Click “Next”;

  • Turn off the “Ask before launch” item and click “Finish”.

As a result, we got two scenarios. We check them in work and enjoy the result.

In conclusion, we note that no one prevents you from having several VPN clients on your device at once. For example, if you have already purchased a subscription to one of the paid services, but you were unable to set up a script using it, you can only download AdGuard as an additional client and use it only to work with one or two applications.

This is also interesting:

Share:

Facebook
Twitter
Pinterest
LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.