After a good week of struggle I finally manage to make a VPN to have access to my private network.
But an incomprehensible concern appears!
Using my VPN I have the possibility to ping my NAS (192.168.0.15) but when I try to ping my nextcloud (192.168.0.14) it does not work …
Is the fact due to my port forwarding? Indeed I redirected my port to my NAS, is that the cause?
How can I access my NextCloud?
so for me it seems more like a problem of your vpn-connection (apart from the fact that it’s not recommended to run NC via local ip-address but by a qualified domainname.)
ummm that’s what we call “security through obscurity”…
anyways… it’s not recommended doing that. but well… it’s your choice, though it’s not neccessary.
you see yourself now why it’s not recommended. it’s just a source for more error, mistakes and setup-fails.
ummm NC doesn’t need that port afaik.
If you can reach it from within your local network it means: nc is working correctly. Maybe it blocks your requests that come via VPN… I dunno
But let me get that one straight… you want more security and hence block ports 443 and 80… only to open port 1194 for being able to reach your nas? for me that sounds a bit like a contradiction in itself.
Port 1194 is for OpenVPN.
The difference with the current solution is that I don’t have that NC and I want to reach all.
For security, it is better to have an “App” that reaches others that many and always check for a new update that fixes a flaw.
This gets confusing ! UDP 1194 is the standard open VPN port whereas NC runs on TCP 80/443 (with redirection). As OpenVPN usually assigns an address from another IP-range (172.16.X.X. etc.) when dialing in, it rather seems you cannot route to your Nextcloud but to the NAS which (possibly?) also contains the OpenVPN-service.
Anyway, you can either forward 80/443 instead or work with a DMZ to put your Nextcloud in, seperating it from your internal and VPN network - but this is yet another different story to be told…
Ok i understand, so i going reexplaine my problem with a diagram for to be sure of your answer.
My problem :
I can have acces at my Truenas with my VPN when i use in nomade.
But i can’t reach my Nextcloud … (again via my VPN)
I can use Nexcloud in local via the IP 192.168.0.14 and in public with my domain.
My objective is to have access at Nextcloud via my VPN for close the port 80 and 443.
Then seems your nomade tries to reach 192.168.0.14 but it search inside of VPN network, not in LAN, because you have the same IP Range and Subnet.
Usually you have to configure your VPN server with different IP Range and Subnet, e.g. 192.168.100.0/24 or 10.0.0.0/24. In this case your nomade VPN Client will have e.g. 192.168.100.2 and should be able to reach your LAN device in 192.168.0.0/24 network.
Depends on your solution probably you have to configure route or bridge between VPN and LAN Networks.
Try different VPN Server/Client configurations and you always can check if you can ping other devices in LAN via VPN or not.