Install the required packages.
# Install packages
openvpn-openssl
Consider VPN network as public. Assign VPN interface to WAN zone to minimize firewall setup.
# Configure firewall
uci rename firewall.@zone[0]="lan"
uci rename firewall.@zone[1]="wan"
uci del_list firewall.wan.device="tun+"
uci add_list firewall.wan.device="tun+"
uci commit firewall
service firewall restart
Save your client profile to configure VPN service.
# Save VPN client profile
umask go=
cat << EOF > /etc/openvpn/client.conf
COPY_PASTE_CLIENT_PROFILE_HERE
EOF
service openvpn restart
Specify credentials for commercial provider and configure dynamic connection if necessary.
Establish the VPN connection. Verify your routing with traceroute and traceroute6.
traceroute openwrt.org
traceroute6 openwrt.org
Check your IP and DNS provider.
On router:
On client device depending on VPN software: