mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00
Drop parts when it was downloading files from this GitHub repository, when you need to upload init script and so on, because the provided package in OpenWrt 19.07+ does that. Btw, 19.07 is the currently supported release and 18.06 is already EoL. So, it is enough to use opkg.
parent
a3892ac121
commit
f09f0dfde8
1 changed files with 4 additions and 52 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
## Which method to use?
|
||||
|
||||
The basic `opkg` package installation is for those looking for a simple no-frills installation, where updates are at the discretion of the [package maintainer](https://github.com/openwrt/packages/tree/openwrt-19.07/net/dnscrypt-proxy2). Success is dependent upon the updated state of the package, it may not work if it goes stale. **This is only available for OpenWrt 19.07+**
|
||||
The basic `opkg` package installation is for those looking for a simple no-frills installation, where updates are at the discretion of the [package maintainer](https://github.com/openwrt/packages/tree/openwrt-19.07/net/dnscrypt-proxy2). Success is dependent upon the updated state of the package, it may not work if it goes stale.
|
||||
|
||||
The advanced manual installation offers more flexibility, and is the preferred method for the more competent users.
|
||||
|
||||
|
@ -57,61 +57,13 @@ Then click `Save`. Alternatively, you can add the line to `/etc/sysupgrade.conf`
|
|||
|
||||
## Manual installation (Advanced)
|
||||
|
||||
### Download
|
||||
### Download and install
|
||||
|
||||
Download the [latest binary here](https://github.com/DNSCrypt/dnscrypt-proxy/releases/latest). Get the right binary for your architecture. If you get a strange `parse error` later when trying to run the executable file, chances are that you didn't pick the right file for the CPU of your router. Here are some common examples:
|
||||
|
||||
```
|
||||
Netgear R7800 - linux_arm
|
||||
Ubiquiti EdgeRouter X - linux_mipsle
|
||||
```
|
||||
|
||||
### Optional: compress the executable
|
||||
|
||||
The `dnscrypt-proxy` file is quite large, but can be compressed for a massive reduction of its size, from ~12 MB down to ~2 MB.
|
||||
|
||||
In order to do so, use [UPX](https://upx.github.io/) on any platform (Windows, Linux, macOS...) with the following command:
|
||||
|
||||
```sh
|
||||
upx --lzma dnscrypt-proxy
|
||||
```
|
||||
|
||||
### Tweak the example file
|
||||
|
||||
Rename `example-dnscrypt-proxy.toml` to `dnscrypt-proxy.toml`, and change at least the following line:
|
||||
|
||||
```toml
|
||||
listen_addresses = ['127.0.0.1:53', '[::1]:53']
|
||||
```
|
||||
|
||||
to (notice the IP address change):
|
||||
|
||||
```toml
|
||||
listen_addresses = ['127.0.0.53:53']
|
||||
```
|
||||
|
||||
### Install the files on the router
|
||||
|
||||
Use `scp` to copy:
|
||||
|
||||
* `dnscrypt-proxy` to `/usr/sbin/`
|
||||
* The modified `dnscrypt-proxy.toml` file to `/etc/config/`
|
||||
* [This `init.d` file](https://raw.githubusercontent.com/etam/DNS-over-HTTPS-for-OpenWRT/master/dnscrypt-proxy) by @etam saved as `/etc/init.d/dnscrypt-proxy`
|
||||
|
||||
Then use `ssh` to log on the router and type:
|
||||
|
||||
```sh
|
||||
chmod +x /usr/sbin/dnscrypt-proxy
|
||||
chmod +x /etc/init.d/dnscrypt-proxy
|
||||
```
|
||||
|
||||
### Install the ca-bundle package on the router
|
||||
|
||||
The ca-bundle package is not installed by default in OpenWrt, which will cause issues if not installed.
|
||||
Use SSH to connect to your router and proceed with these two commands:
|
||||
|
||||
```sh
|
||||
opkg update
|
||||
opkg install ca-bundle
|
||||
opkg install dnscrypt-proxy2
|
||||
```
|
||||
|
||||
### Check that the proxy is properly installed
|
||||
|
|
Loading…
Add table
Reference in a new issue