OpenWRT - Set up OpenVPN
Install Packages:
opkg update && opkg install luci-app-openvpn openvpn-easy-rsa openvpn-opensslGet the
OpenVPNconfiguration file (usually ending in.ovpn)Navigate to
VPN-->OpenVPNClick
Browseand selelect the.ovpnfileClick
UploadClick
EditIn 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->OpenVPNinOpenWRTmenu.Press
Save & Apply.Navigate to
Networking->Interfaces.Click the
Add new interfacebutton.Name: OpenVPN
Click on
Interfaceand writetun0in the textbox, and press enter.Click on Create interface button.
Make sure there is a checkmark on
Bring up on bootClick
SaveClick on
Save & Applyin the Interfaces screenNavigate to
Network-->FirewallScroll to the bottom of the screen to the Zone section, and
Adda new Zone.In the General Settings tab, set name to
OpenVPN_fw, changeInputtoreject,Outputtoaccept,Forwardtoreject.Put check mark on both
MasqueradingandMSS clampingCovered networks – select
OpenVPNIn the
Allow forward from source section,lan.Press
SavePress
Save & ApplyonFirewall- Zone settingsIn the top menu, go to
VPN->OpenVPN. Set thecheckboxEnabledfor VPN connection you just created, and clickSave & Apply.After the
settings are saved, clickStartbutton next to the VPN connection.
Done!
Last updated