creating new (first) rule [question is not critical]

  1. How can I quickly switch to allowing connection to internet only for an app and block for all others.

  2. How can I quickly switch to block connection to internet just for an app.

One easy way is to set up the configurations under “miscellaneous/manage my configurations”, “export” them, then “import as” with useful names and toggle between them using “select”.

For the rules, you can set up an “allow” for the individual program followed by a “block all” for one configuration, after the system related rules, and then a “block” for the individual program and then the normal rules for the other configuration. You do this in firewall/advanced/network security policy/application rules.