Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
el-termikael committed Dec 12, 2024
1 parent 21567f5 commit add0898
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Compatibility of AdGuard VPN with Chromecast
title: Compatibility of AdGuard VPN with Chromecast
sidebar_position: 5
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ You’ll need an SSH client. Most Linux and macOS systems come with an SSH clien
1. If this is your first time connecting to the router via SSH, you’ll see a message like this:

```text
The authenticity of host 192.168.1.1 (192.168.1.1) cant be established.
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
ECDSA key fingerprint is SHA256:...
Are you sure you want to continue connecting (yes/no/[fingerprint])?
```
Expand Down Expand Up @@ -169,7 +169,7 @@ Go to /opt folder by running `cd /opt` and run the AdGuardVPN CLI installation
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardVPNCLI/master/scripts/release/install.sh | sh -s -- -v
```
When asked “Would you like to link the binary to /usr/local/bin?“, reply `y`. If failed to link the binary, run this line:
When asked “Would you like to link the binary to `/usr/local/bin?`“, reply `y`. If failed to link the binary, run this line:
```bash
ln -s /opt/adguardvpn_cli/adguardvpn-cli /opt/bin
Expand Down Expand Up @@ -248,7 +248,7 @@ This step configures firewall rules on an Asuswrt-Merlin router to route traffic
1. Create a new script by running the following command:
```bash
cat << EOF > /jffs/scripts/wan-event
cat << 'EOF' > /jffs/scripts/wan-event
#!/bin/sh
if [ "$2" = "connected" ]; then
Expand Down
6 changes: 3 additions & 3 deletions docs/adguard-vpn-for-linux/setting-up-on-a-router/keenetic.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ You’ll need an SSH client. Most Linux and macOS systems come with an SSH clien
1. If this is your first time connecting to the router via SSH, you’ll see a message like this:

```text
The authenticity of host 192.168.1.1 (192.168.1.1) cant be established.
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
ECDSA key fingerprint is SHA256:...
Are you sure you want to continue connecting (yes/no/[fingerprint])?
```
Expand Down Expand Up @@ -131,7 +131,7 @@ Go to the `/opt` folder by typing `/cd opt` and run the AdGuard VPN CLI installa
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardVPNCLI/master/scripts/release/install.sh | sh -s -- -v
```
When asked “Would you like to link the binary to /usr/local/bin?“, reply `n` and run this line:
When asked “Would you like to link the binary to `/usr/local/bin?`“, reply `n` and run this line:
```bash
ln -s /opt/adguardvpn_cli/adguardvpn-cli /opt/bin
Expand Down Expand Up @@ -238,7 +238,7 @@ This step is designed to configure firewall rules on a Keenetic router to route
```bash
cat << EOF > /opt/etc/ndm/netfilter.d/001-adguardvpn.sh
cat << 'EOF' > /opt/etc/ndm/netfilter.d/001-adguardvpn.sh
#!/opt/bin/sh
for ipt in iptables ip6tables; do
$ipt -D FORWARD -j ADGUARD_FORWARD || true
Expand Down
24 changes: 12 additions & 12 deletions docs/adguard-vpn-for-linux/setting-up-on-a-router/openwrt.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Most Linux and macOS systems come with an SSH client pre-installed. For Windows,
1. If this is your first time connecting to the router via SSH, you’ll see a message like:
```text
The authenticity of host 192.168.1.1 (192.168.1.1) cant be established.
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
ECDSA key fingerprint is SHA256: ...
Are you sure you want to continue connecting? (Yes/No/[Fingerprint])
```
Expand Down Expand Up @@ -137,7 +137,7 @@ curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardVPNCLI/master/sc
adguardvpn-cli login
```

Note: If failed to link the binary to /usr/local/bin, use full file path to run all commands. For example, `/opt/adguardvpn_cli/adguardvpn-cli login`
Note: If failed to link the binary to `/usr/local/bin`, use full file path to run all commands. For example, `/opt/adguardvpn_cli/adguardvpn-cli login`

1. Connect to VPN

Expand Down Expand Up @@ -189,9 +189,9 @@ You can do it in the web interface or in the command line. Steps below describe

```shell
ssh admin@router_ip
uci set network.tun0=interface
uci set network.tun0.proto=none
uci set network.tun0.device=tun0
uci set network.tun0='interface'
uci set network.tun0.proto='none'
uci set network.tun0.device='tun0'
uci commit network
/etc/init.d/network reload
```
Expand All @@ -207,31 +207,31 @@ You can do it in the web interface or in the command line. Steps below describe
uci show firewall
```

This will show a config file with all zones listed. Look for a section like `firewall.@zone[1]` or similar where `option name wan` is defined. The number `[1]` could be different depending on your configuration.
This will show a config file with all zones listed. Look for a section like `firewall.@zone[1]` or similar where `option name 'wan'` is defined. The number `[1]` could be different depending on your configuration.

Run this SSH command, replace `zone[1]` with correct wan zone identified before:
Run this SSH command, replace `zone[1]` with correct 'wan' zone identified before:

```shell
uci show firewall | grep "=zone"
uci add_list firewall.@zone[1].network=tun0
uci add_list firewall.@zone[1].network='tun0'
uci commit firewall
/etc/init.d/firewall reload
```

If you want to disable all traffic that is not protected by VPN, run the following command. This way you won’t have an Internet connection at all if VPN disconnects. If you choose not to do this step, your real IP will be exposed if the VPN disconnects.

```shell
uci del_list firewall.@zone[1].network=wan
uci del_list firewall.@zone[1].network=wan6
uci del_list firewall.@zone[1].network='wan'
uci del_list firewall.@zone[1].network='wan6'
uci commit firewall
/etc/init.d/firewall reload
```

If you’ve changed your mind and want to allow direct traffic, run the following command:

```shell
uci add_list firewall.@zone[1].network=wan
uci add_list firewall.@zone[1].network=wan6
uci add_list firewall.@zone[1].network='wan'
uci add_list firewall.@zone[1].network='wan6'
uci commit firewall
/etc/init.d/firewall reload
```
Expand Down
2 changes: 1 addition & 1 deletion docs/adguard-vpn-for-mac/solving-problems/logs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: How to collect and send logs
title: How to collect and send logs
sidebar_position: 1
---

Expand Down

0 comments on commit add0898

Please sign in to comment.