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

[AGM-1650] Outbound proxy article update #237

Merged
merged 5 commits into from
Jul 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 53 additions & 47 deletions docs/adguard-for-android/solving-problems/outbound-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,112 +9,118 @@ This article covers AdGuard for Android, a multifunctional ad blocker that prote

:::

This article explains how to set up some of the most popular proxies to work with AdGuard.
AdGuard allows you to route your device's traffic through a proxy server. To access proxy settings, open **Settings** and then proceed to **Filtering** → **Network** → **Proxy**.

## Proxy configuration examples

In this article we give examples of how to set up some of the most popular proxies to work with AdGuard.

### How to use AdGuard with Tor

1. Open AdGuard and go to **Settings** → **Network** → **Proxy settings**. Download "Orbot: Proxy with Tor" by tapping **Integrate with Tor** or directly from [Google Play](https://play.google.com/store/apps/details?id=org.torproject.android&noprocess).
1. Open AdGuard and go to **Settings** → **Filtering** → **Network** → **Proxy**. Download "Orbot: Proxy with Tor" directly from [Google Play](https://play.google.com/store/apps/details?id=org.torproject.android&noprocess) or by tapping **Integrate with Tor** and then **Install**.

2. Open Orbot and press the **Start** button on the application's main screen.

2. Go back to the **Proxy Settings** screen of AdGuard.
3. Go back to the **Proxy** screen of AdGuard.

3. Tap the **Integrate with Tor** button.
4. Tap the **Integrate with Tor** button.

4. All the required fields will be pre-filled:
5. All the required fields will be pre-filled:

Field | Value
------- | ---------
Proxy type | *SOCKS4* or *SOCKS5*
Proxy host | *127.0.0.1*
Proxy port | *9050*
Field | Value
------- | ---------
Proxy type | *SOCKS4* or *SOCKS5*
Proxy host | *127.0.0.1*
Proxy port | *9050*

Or you can tap **Add proxy**, enter these values manually, and set Orbot as a default proxy.
Or you can tap **Proxy server** → **Add proxy server**, enter these values manually, and set Orbot as a default proxy.

5. Enable AdGuard protection.
6. Enable the main Proxy switch and AdGuard protection to route your device's traffic through the proxy.

Now AdGuard will forward all traffic through Orbot. If you disable Orbot, Internet connection will be unavailable until you disable outbound proxy settings in AdGuard.

### How to use AdGuard with PIA (Private Internet Access)

*Here we presume that you are already a PIA VPN client and have it installed on your device.*

1. Open AdGuard and go to **Settings** → **Network** → **Proxy settings**.
1. Open AdGuard and go to **Settings** → **Filtering** → **Network** → **Proxy** → **Proxy server**.

2. Tap the **Add proxy server** button and enter the following data:

Field | Value
------- | ---------
Proxy type | *SOCKS5*
Proxy host | *proxy-nl.privateinternetaccess.com*
Proxy port | *1080*
Field | Value
------- | ---------
Proxy type | *SOCKS5*
Proxy host | *proxy-nl.privateinternetaccess.com*
Proxy port | *1080*

3. You also need to fill out the **Username/Password** fields. To do so, log in to the [Client Control Panel](https://www.privateinternetaccess.com/pages/client-sign-in) on the PIA website. Click the **Generate Password** button under the **Generate PPTP/L2TP/SOCKS Password** section. A username starting with "x" and a random password will be shown. Use them to fill out the **Username** and **Password** fields in AdGuard.
3. You also need to fill out the **Username/Password** fields. To do so, log in to the [Client Control Panel](https://www.privateinternetaccess.com/pages/client-sign-in) on the PIA website. Click the **Generate Password** button under the **Generate PPTP/L2TP/SOCKS Password** section. A username starting with "x" and a random password will be shown. Use them to fill out the **Proxy username** and **Proxy password** fields in AdGuard.

4. Set this proxy as a default one by toggling the switch, then click **Save**.
4. Tap **Save and select**.

5. Enable AdGuard protection.
5. Enable the main Proxy switch and AdGuard protection to route your device's traffic through the proxy.

### How to use AdGuard with TorGuard

*Here we presume that you are already a TorGuard client and have it installed on your device.*

1. Open AdGuard and go to **Settings** → **Network** → **Proxy settings**.
1. Open AdGuard and go to **Settings** → **Filtering** → **Network** → **Proxy** → **Proxy server**.

2. Tap the **Add proxy server** button and enter the following data:

Field | Value
------- | ---------
Proxy type | *SOCKS5*
Proxy host | *proxy.torguard.org* or *proxy.torguard.io*
Proxy port | *1080* or *1085* or *1090*
Field | Value
------- | ---------
Proxy type | *SOCKS5*
Proxy host | *proxy.torguard.org* or *proxy.torguard.io*
Proxy port | *1080* or *1085* or *1090*

3. For **Username** and **Password** fields, enter your proxy username and proxy password you have chosen at TorGuard signup.

4. Set this proxy as a default one by toggling the switch, then click **Save**.
4. Tap **Save and select**.

5. Enable AdGuard protection.
5. Enable the main Proxy switch and AdGuard protection to route your device's traffic through the proxy.

### How to use AdGuard with NordVPN

1. Open AdGuard and go to **Settings** → **Network** → **Proxy settings**.
1. Open AdGuard and go to **Settings** → **Filtering** → **Network** → **Proxy** → **Proxy server**.

2. Tap the **Add proxy server** button and enter the following data:

Field | Value
------- | ---------
Proxy type | *SOCKS5*
Proxy host | *any server save for "Obfuscated" from [this list](https://nordvpn.com/servers/)*
Proxy port | *1080*
Field | Value
------- | ---------
Proxy type | *SOCKS5*
Proxy host | *any server from [this list](https://support.nordvpn.com/Connectivity/Proxy/)*
Proxy port | *1080*

3. For **Username** and **Password** fields, enter your NordVPN Username and Password.

4. Set this proxy as a default one by toggling the switch, then click **Save**.
4. Tap **Save and select**.

5. Enable AdGuard protection.
5. Enable the main Proxy switch and AdGuard protection to route your device's traffic through the proxy.
el-termikael marked this conversation as resolved.
Show resolved Hide resolved

### How to use AdGuard with Shadowsocks

*Here we presume that you have already configured a Shadowsocks server and a client on your device.*

:::note

You should remove Shadowsocks application from filtering before setting up the process (AdGuard → Apps managementShadowsocks → Disable AdGuard protection) to avoid infinite loops and drops.
You should remove Shadowsocks application from filtering before setting up the process (**Settings****Filtering** → **Apps** → **App management** → **Shadowsocks****Route traffic through AdGuard**) to avoid infinite loops and drops.
el-termikael marked this conversation as resolved.
Show resolved Hide resolved

:::

1. Open AdGuard and go to **Settings** → **Network** → **Proxy settings**.
1. Open AdGuard and go to **Settings** → **Filtering** → **Network** → **Proxy** → **Proxy server**.

2. Tap the **Add proxy server** and fill the fields:

Field | Value
------- | ---------
Proxy type | *SOCKS5*
Proxy host | *127.0.0.1*
Proxy port | *1080*
Field | Value
------- | ---------
Proxy type | *SOCKS5*
Proxy host | *127.0.0.1*
Proxy port | *1080*

3. Tap **Save and select**.

3. Tap **Save and select**
4. Enable the main Proxy switch and AdGuard protection to route your device's traffic through the proxy.

### Limitations
## Limitations

There is a factor that can prevent certain traffic from being routed through the outgoing proxy. AdGuard will only re-route traffic that goes through it. Basically, it means apps that have **Ad blocking** flag enabled in the **Apps Management** tab.
There is a factor that can prevent certain traffic from being routed through the outgoing proxy. AdGuard will only re-route traffic that goes through it. Basically, it means apps that have **Ad blocking** flag enabled in the **Apps Management** tab.
Loading