Hi,
to be most precise I hope this configuration will work:
- Check the checkbox of the next free (probably the first one) ROUTE LIST entry and configure this entry as follows:
- Name: VPN-NET (or whatever you like)
- Destination IP: 10.8.0.0
- Netmask: 255.255.255.0
- gateway: 192.168.0.10 (or whatever RPi's address is inside your LAN)
- Metric: 2 (but value doesn't really matter with static routing)
- Interface: LAN
It will route all traffic for your VPN subnet 10.8.0.0/24 to the LAN interface (192.168.0.10) of your RPi/OpenVPN server. In addition the router should send
ICMP redirects for any single OpenVPN client address out of this range back to your LAN clients (or should I say "LAN servers" from the point of view of your Open VPN clients?), so they learn host routes to the OpenVPN clients going directly to your RPi (but these host routes are only stored temporarily in a routing cache).
EDIT: There are D-Link router models, that, depending on firmware version, refuse to select
Interface: LAN, this way rendering the feature to define static routes useless, at least insofar the need to define routes for the
WAN interface should arise extremely seldom. If this is the case either with DIR-615, as a workaround you have to configure the route for 10.8.0.0/24 with gateway 192.168.0.10 on each LAN client, that shall talk to OpenVPN clients.
PT