OpenWRT - Set up OpenVPN
Last updated
opkg update && opkg install luci-app-openvpn openvpn-easy-rsa openvpn-opensslGet the OpenVPN configuration file (usually ending in .ovpn)
Navigate to VPN --> OpenVPN
Click Browse and selelect the .ovpn file
Click Upload
Click Edit
In the bottom empty field, enter your credentials, each on new line.
Copy the auth-user-pass path in brackets (shown in red in the picture) and paste it next to the auth-user-pass option in the OVPN config.
Press Save, and click on VPN -> OpenVPN in OpenWRT menu.
Press Save & Apply.
Navigate to Networking -> Interfaces.
Click the Add new interface button.
Name: OpenVPN
Click on Interface and write tun0 in the textbox, and press enter.
Click on Create interface button.
Make sure there is a checkmark on Bring up on boot
Click Save
Click on Save & Apply in the Interfaces screen
Navigate to Network --> Firewall
Scroll to the bottom of the screen to the Zone section, and Add a new Zone.
In the General Settings tab, set name to OpenVPN_fw, change Input to reject, Output to accept, Forward to reject.
Put check mark on both Masquerading and MSS clamping
Covered networks – select OpenVPN
In the Allow forward from source section, lan.
Press Save
Press Save & Apply on Firewall - Zone settings
In the top menu, go to VPN -> OpenVPN. Set the checkbox Enabled for VPN connection you just created, and click Save & Apply.
After the settings are saved, click Start button next to the VPN connection.
Done!
Last updated