https://imgur.com/81Y6qoG
I got a QNAP NAS with Openvpn, and a RaspberryPi with a 3G dongle and by now 1 IP Camera for surveillance, for this one I installed isc-dhcp-server and made the 192.168.2.0 network.
QNAP Openvpn is working with local and external devices.
What I did:
From QNAP I can ping 10.8.0.6 Raspberry IP, but i can't ping 192.168.2.1 also Raspberry but internal network.
From Raspberry i can ping 192.168.2.12 (Camera 1), 10.8.0.1 (QNAP), 8.8.8.8 and www.google.es.
From Camera 1 (actually used my laptop), I can ping 192.168.2.1, 10.8.0.6 (raspberry vpn) but I can't 10.8.0.1 (QNAP vpn) and i can't 8.8.8.8.
Note: I have made Raspberry iptable totally permisive to avoid rules problems by now.
What happens:
I did a tcpdump on both QNAP(tun0) and Raspberry(ppp0) doing a ping from Raspberry to 10.8.0.1 there where packets from both sides, but doing a ping from internal host (192.168.2.X) there where packets only going outside on the Raspberry but there were no incoming package on the QNAP.
How can I ping 192.168.2.0 network from vpn network?
Configuration files:
Raspberry: https://pastebin.com/uqW5nrbN
Client: https://pastebin.com/qvH84aEU
QNAP: https://pastebin.com/vVbdauDu
Edit: Doing a tcpdump on QNAP eth0 while a host from 192.168.2.0 does a ping to 10.8.0.1(QNAP vpn), I can see the udp packets incoming. Is it possible that on QNAP it's missing a route on route table or his iptable drops these packets? Tried "ip route add 192.168.2.0/24 dev tun0" but it's not working.