Skip to content

Commit

Permalink
Create exclusions.md in VPN for Linux section
Browse files Browse the repository at this point in the history
  • Loading branch information
vyanovsky authored Nov 29, 2024
1 parent d77b4cb commit 5c4a42c
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions docs/adguard-vpn-for-linux/exclusions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: Exclusions
sidebar_position: 7
---

*Exclusions* feature lets you decide which domains’ traffic should be excluded from VPN routing. This is handy when you don’t need VPN to work for some websites, because it saves you the hassle of constantly turning VPN on and off.

Just like in AdGuard VPN for other platforms, in AdGuard VPN for Linux you can use Exclusions in two modes: General (VPN is enabled for all domains except for those in the exclusion list) and Selective (VPN is enabled only for the domains in the exclusion list).

:::note

Each mode has its own exclusion list.

:::

![Exclusions](https://cdn.adtidy.org/blog/new/m6pkdVPN-CLI-exclusions.png)

### How to use

To view all exclusion-related commands, type:

`adguardvpn-cli site-exclusions -h`

To add a domain to the exclusion list of the current mode, type:

`adguardvpn-cli site-exclusions add %domain_name%`

> Supported input formats: `domain.com`, `sub.domain.com`, `www.domain.com`. Use double quotes for wildcards: `"*.domain.com"`
>
> Command example: `adguardvpn-cli site-exclusions add https://www.google.com/`
To remove a domain from the list of exclusions, type:

`adguardvpn-cli site-exclusions remove %domain_name%`

To view the current exclusion list, type:

`adguardvpn-cli site-exclusions show`

To remove all exclusions, type:

`adguardvpn-cli site-exclusions clear`

To change the exclusion mode, type:

`adguardvpn-cli site-exclusions mode %mode_name%` (or you can just check the current mode using `adguardvpn-cli site-exclusions mode`)

where %mode_name% is `general` or `selective`.

:::note

The commands listed above (`add`, `remove`, `show`, `clear`) are applied to the exclusion list of the current mode. To perform a command for a specific mode, add `--for-mode %mode_name% type`, for example:

`adguardvpn-cli site-exclusions add %domain_name% --for-mode %mode_name%`

:::

0 comments on commit 5c4a42c

Please sign in to comment.