What I want
While being connected to VPN have access to LAN Hosts
I want some client have acces to all LAN and other clients who I don't want to get acces to all LAN.
Any OPENVPN client can acces LAN.
192.168.1.99 Nextcloud In lan service that every client need to get.
Service only one client can access.
File of a client who is supposed to have acces all the LAN. But it doesn't work though the vpn server connection works.
dev tun0 nobind client remote nvp.duckdns.org 2152 udp auth-nocache remote-cert-tls server list push 'route 192.168.1.0 255.255.255.0' list push 'dhcp-option DNS 192.168.1.2' option topology 'subnet' option route_gateway 'dhcp' type or paste code here
user nobody group nogroup dev tun0 port 2152 proto udp server 10.2.2.0 255.255.255.0 topology subnet client-to-client keepalive 10 60 persist-tun persist-key