Skip to content

Commit

Permalink
Merge pull request #239 from AdguardTeam/fix-formatting
Browse files Browse the repository at this point in the history
trying to fix numeration
  • Loading branch information
el-termikael authored Nov 26, 2024
2 parents e3851d3 + 29c76a2 commit 0e5c4bd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ The default IP address for most routers is `192.168.1.1` or `192.168.0.1`. If

1. Look for the *default* entry. The IP address next to it is your router’s IP address.

<!-- comment -->

## 2. Make sure SSH and JFFS custom scripts are enabled on the router

First, make sure that SSH access is enabled on your router. This setting is usually found in the router’s web interface. JFFS custom scripts will be used to set routing rules.
Expand All @@ -57,6 +59,8 @@ First, make sure that SSH access is enabled on your router. This setting is usua

1. Click *Apply* at the bottom of the page.

<!-- comment -->

## 3. Use an SSH client to connect to the router

You’ll need an SSH client. Most Linux and macOS systems come with an SSH client pre-installed. For Windows, you can use PowerShell, the built-in SSH client in Windows 10/11, or a third-party application like PuTTY.
Expand Down Expand Up @@ -84,6 +88,8 @@ You’ll need an SSH client. Most Linux and macOS systems come with an SSH clien
1. Enter the router’s password when prompted. The SSH login username and password are the same as the admin credentials.
<!-- comment -->
### PuTTY (Windows below 10)
1. Download and install PuTTY from [the official website](https://www.putty.org/).
Expand All @@ -93,6 +99,8 @@ You’ll need an SSH client. Most Linux and macOS systems come with an SSH clien
1. Click *Open*.
1. When the Terminal window opens, enter the router’s credentials. The SSH login username and password are the same as the admin credentials.
<!-- comment -->
## 4. Install Entware using SSH
Once logged into your SSH client, you can use various commands to interact with your router’s Linux-based operating system. To proceed, you will need to install Entware OPKG Manager. It allows you to install third-party software packages to expand router capabilities. Skip to the next step if you already have it installed.
Expand Down Expand Up @@ -231,6 +239,8 @@ modprobe tun
adguardvpn-cli --help-all
```
<!-- comment -->
## 7. Set up your firewall rules and auto-launch for AdGuard VPN
This step configures firewall rules on an Asuswrt-Merlin router to route traffic through AdGuard VPN.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ The default IP address for most routers is `192.168.1.1` or `192.168.0.1`. If

1. Look for the *default* entry. The IP address next to it is your router’s IP address.

<!-- comment -->

## 3. Use an SSH client to connect to the router

You’ll need an SSH client. Most Linux and macOS systems come with an SSH client pre-installed. For Windows, you can use PowerShell, the built-in SSH client in Windows 10/11, or a third-party application like PuTTY.
Expand Down Expand Up @@ -77,6 +79,8 @@ You’ll need an SSH client. Most Linux and macOS systems come with an SSH clien
1. Enter the router’s password when prompted. The default username is `root` and the default password is `keenetic`.
<!-- comment -->
### PuTTY (Windows 8 and earlier)
1. Download and install PuTTY from [the official website](https://www.putty.org/).
Expand Down Expand Up @@ -216,7 +220,7 @@ ln -s /opt/adguardvpn_cli/adguardvpn-cli /opt/bin
1. Enter `yes` when asked “Would you like to set default routes in TUN mode?”
AdGuard VPN CLI will create a tun0 interface for VPN tunneling
AdGuard VPN CLI will create a tun0 interface for VPN tunneling.
## 7. Set up firewall rules
Expand Down
10 changes: 10 additions & 0 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 @@ -53,6 +53,8 @@ The default IP address for most routers is `192.168.1.1` or `192.168.0.1`. If
1. Look for the *default* entry. The IP address next to it is your router’s IP address.
<!-- comment -->
## 3. Use an SSH client to connect to the router
Most Linux and macOS systems come with an SSH client pre-installed. For Windows, you can use PowerShell, the built-in SSH client in Windows 10/11, or a third-party application like PuTTY.
Expand Down Expand Up @@ -81,6 +83,8 @@ Most Linux and macOS systems come with an SSH client pre-installed. For Windows,
1. Enter the router’s password when prompted. The default password for OpenWrt is typically empty (just press Enter), but you should have set a password during the initial setup.
<!-- comment -->
### PuTTY (Windows)
1. Download and install PuTTY from [the official website](https://www.putty.org/).
Expand All @@ -95,6 +99,8 @@ Most Linux and macOS systems come with an SSH client pre-installed. For Windows,
1. When the Terminal window opens, log in. The default username is `root` and the default password is `keenetic`.
<!-- comment -->
## 4. Basic SSH commands
Once logged in, you can use various commands to interact with your router’s Linux-based operating system.
Expand Down Expand Up @@ -173,6 +179,8 @@ curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardVPNCLI/master/sc
AdGuard VPN CLI will create a tun0 interface for VPN tunneling.
<!-- comment -->
## 6. Set up firewall rules
You can do it in the web interface or in the command line. Steps below describe setup via SSH command line.
Expand Down Expand Up @@ -228,6 +236,8 @@ You can do it in the web interface or in the command line. Steps below describe
/etc/init.d/firewall reload
```

<!-- comment -->

## 7. Set up automatic launch for AdGuard VPN CLI

To automatically launch AdGuard VPN CLI after rebooting the router, create a file at `…/etc/init.d/adguardvpn`.
Expand Down

0 comments on commit 0e5c4bd

Please sign in to comment.