OpenWRT - Set up OpenVPN
Install Packages:
Get the
OpenVPN
configuration file (usually ending in.ovpn
)Navigate to
VPN
-->OpenVPN
Click
Browse
and selelect the.ovpn
fileClick
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
inOpenWRT
menu.Press
Save & Apply
.Navigate to
Networking
->Interfaces
.Click the
Add new interface
button.Name: OpenVPN
Click on
Interface
and writetun0
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 screenNavigate 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
, changeInput
toreject
,Output
toaccept
,Forward
toreject
.Put check mark on both
Masquerading
andMSS clamping
Covered networks – select
OpenVPN
In the
Allow forward from source section
,lan
.Press
Save
Press
Save & Apply
onFirewall
- Zone settingsIn the top menu, go to
VPN
->OpenVPN
. Set thecheckbox
Enabled
for VPN connection you just created, and clickSave & Apply.
After the
settings are saved
, clickStart
button next to the VPN connection.
Done!
Last updated