Plex, OpenVPN, QNAP, iPhone - not working together

I don’t know if this is good forum - if not please guide me.

So I have a home network - IP addressing 10.x.y.z/255.255.254.0
On this network I have RaspberryPi (10.x.y.10) which acts as OpenVPN server - IP addressing 10.x.y+10.z/255.255.255.0

I am able to VPN in to that RPi and access home network.
BTW - this is the only service I have opened port in my firewall and that is state I want to keep.

I have QNAP NAS (10.x.y.30) in my home network, on it I’ve installed Plex server.

When I open VPN connection my iPhone tries to connect to Plex on QNAP but it is not able to do so.

I don’t want to open any other port, integrity and safety of my network is most important to me.

Plex -> Settings -> Server -> Remote Access shows IP of Plex as 10.a.b.1 (one of the virtual switch connected to container station). I’ve added push route to VPN configuration but it did not solve issue.

Just to try if I will agree for Remote Access, open firewall and point to QNAP NAS IP (10.x.y.30) it will work.

I tried also to VPN from my internal network to my internal network (Hairpin NAT) and client does not see Plex server.

It seems like Plex is treating networks outside home addressing as Remote and does not allow to connect directly and forcing to route outside firewall and back via established port.

I have a hunch that VLANining internal network would create same problem

So question - how to make this VPN solution to work? I have proper routing from my VPN scope to access home network but Plex is not seen and available by client.

Issue with iptables - problem fixed.

I have similary problem to your, maybe you can help me. My network settings are:

Local lan network: 192.168.0.0/24
VPN server is setting up on my router on address: 192.168.0.1
VPN network: 10.8.0.0/24
Docket host: 193.168.0.5
Docker network: 10.0.3.0/24
Plex container ip: 10.0.3.3

I added 10.0.3.0/24 network to allowed network in Plex (because I don’t want to claim server on Plex.tv account)

Everything works fine on iPhone Plex app or PC when I am connected to my local network. Problem starts when I connect my iPhone to my vpn.

iPhone gets vpn network address: 10.8.0.2
Plex app on iPhone can’t see my server but I can open safari and navigate to my docker container Plex is: 192.168.0.5:32400 and everything works fine.

Is this a problem with iPhone Plex app that it can’t see Plex server when connected by vpn?