Skip to content

Add VPNs to WAN zone by default

Michal Hrusecky requested to merge vpn-wan into master

In general, when user adds a client configuration file, he expects the router to connect to the network and make that network accessible. In theory it might be nice to have a choice whether to do masquarading aka hide devices behind the router or to make them all visible. But that is the next step. First thing is to make the VPN client usable at all.

This script depends on hotplug support for OpenVPN as it is in OpenWrt master and it basically adds interface created by OpenVPN to WAN zone if set in config. Interface name is obtained directly from OpenVPN.

This is the bare minimum to get stuff working. There are few aspects missing:

  • integration of DNS servers send via OpenVPN
  • integration into different zone

But it greatly improves the current usability of OpenVPN client feature.

Merge request reports