Routing VPN to LAN

  • If I understand your previous posts correctly, you're utilizing OpenVPN for remote access to your local devices, and the OpenVPN server is running on your Debian9 server, of which is behind the OpenWrt router?
    • If so, you're likely going to need to utiliz Gateway Redirect since your server's IP will be an RFC1918 LAN IP.
    • If you're not using a third party VPN provider, OpenWrt's VPN interface's firewall setting should be ACCEPT for input, output, and forward

  • Are you trying to have the OpenWrt router be a client, thereby negating each client to have to be configured as an OpenVPN client?

  • Are you intending to have more than one router as a client, with each router having it's own LAN subnet?
    • If so, a TAP configuration should be utilized. Generally, TUN should be used, however, there are specific use cases for when TAP is appropriate.

I need your server config, which, if that script wasn't modified, should be at: /etc/openvpn/server.conf

Please place all code, config, and log output within code boxes (three ways to do so)
1 Like