Case study: TP-Link N300(WR842N) v5
In fact, the manual is good for almost any router you use, except for some points related to a specific model. Of course, it’s silly to sew an ancient DIR-300 (But possible).
There are a lot of instructions on the Internet, but not all of them are correct, so I will describe all of them. Let’s begin!
1. You need to flash the router under OpenWRT. First of all I recommend you to update the native router firmware [System Tools – Firmware Upgrade] downloaded from the manufacturer’s web-site. Look for the firmware upgrade at https://openwrt.org/ specifically for your model (pay special attention to the version! [v3,v4,v5, etc.]) In our case this is https://openwrt.org/toh/hwdata/tp-lik_tl-wr842n_v5 look for link Firmware OpenWrt Install URL download and upload to the router System Tools – Firmware Upgrade also need Firmware OpenWrt Upgrade URL from the same page Next router will stop responding to your requests and become a brick. This is normal. You can access it via ssh. For Windows users, you need to have PuTTY. For MacLinux users there is the good old fashioned terminal. Telnet 192.168.1.1:23 and type in passwd root, enter your password twice and exit . You need any SFTP client. Connect to 192.168.1.1:22 via SCP with login root and password mentioned in previous step. Upload file downloaded from Firmware OpenWrt Upgrade URL to /tmp folder Connect to 192.168.1.1:22 via SSH with the same data and type sysupgrade -n /tmp/fILE_name.bin Wait until it retries (watch bulbs) after you see it has rebooted all done. Telnet 192.168.1.1:23 and type passwd root and re-enter the new password twice. Two more commands to enable the web interface: /etc/init.d/uhttpd enable /etc/init.d/uhttpd start Type 192.168.1.1 root login in the browser and enter the password you set.
2. Configuring The first thing to do is to configure the connection to the Internet. This setup depends on the provider, the only thing I would like to focus on is when the Internet is provided by a 4G modem: To configure it you need to install some packages (and from the modem model may vary necessary packages). In my case it is Yota. But since the packages are pulled from the network, the Internet is required. Thus, we take the phone and enable wifi. Go to Network-WiFi and press Search and connect to the desired network. [If you are not fluent in English you can download russian package – do it like this: Switch to System-Software click on Update List and wait for download, search for the package luci-i18n-base-en Switch to System-Software click on Update List and wait for download, search and install the following packages: usb-modeswitch kmod-usb-core kmod-usb-ehci kmod-usb-ledtrig-usbport kmod-usb-net kmod-usb-net-asix kmod-usb-net-cdc-ether kmod-usb-net-rndis kmod-usb-ohci kmod-usb-uhci kmod-usb2 kmod-usb3 libusb-1.0-0 Press save and restart, then a new interface eth1 will show up, it is the modem interface. Create an interface in Network-Interfaces with DHCP protocol and select in the interface eth1 Now you have internet.
3. Now the most important thing Install the packages luci-app-openvpn and openvpn-openssl, save and reboot. After that the VPN tab will appear in the menu. Enter the VPN-OpenVPN and download the .ovpn file. Start the connection and enable it. Save and reboot. Also send the router to reboot. Now all traffic goes through the VPN.
I also recommend that you set the DNS you want, for example Google (22.214.171.124 and 126.96.36.199) in the connection interface settings
best cvv site