OpenWrt
LuCI OpenVPN or the command line.
OpenWrt can run RealVPN via the LuCI OpenVPN app. You’ll add the config, create an interface and a firewall zone.
What you need
- OpenWrt 21.02 or newer with LuCI
- SSH access for the package install
-
Get your OpenVPN file
On realvpn.io/settings choose OpenVPN UDP, a location and New manual device, then press Generate config. RealVPN.ovpn is saved to your Downloads.
-
Install OpenVPN
# opkg update # opkg install openvpn-openssl luci-app-openvpn # OpenWrt 24+ with apk: apk add openvpn-openssl luci-app-openvpn -
Upload the config in LuCI
Open VPN → OpenVPN. Under OVPN configuration file upload enter the name
realvpn, chooseRealVPN.ovpnand click Upload. Tick Enabled for the new instance, Save & Apply, then Start. -
Create the interface and firewall zone
# uci set network.realvpn=interface # uci set network.realvpn.proto='none' # uci set network.realvpn.device='tun0' # uci add firewall zone # uci set firewall.@zone[-1].name='vpn' # uci set firewall.@zone[-1].network='realvpn' # uci set firewall.@zone[-1].input='REJECT' ; uci set firewall.@zone[-1].output='ACCEPT' ; uci set firewall.@zone[-1].forward='REJECT' # uci set firewall.@zone[-1].masq='1' ; uci set firewall.@zone[-1].mtu_fix='1' # uci add firewall forwarding ; uci set firewall.@forwarding[-1].src='lan' ; uci set firewall.@forwarding[-1].dest='vpn' # uci commit ; /etc/init.d/network reload ; /etc/init.d/firewall reload -
Verify
From a device on your LAN open realvpn.io. The live check should show the RealVPN server’s IP.