How to fix network issues in MongoDB replica node behind TCP Proxy

Hi All,

i am having an issue hosting one of my mongodb replica node behind TCP Proxy server.

i have one node on-prem and others are on cloud self managed community server. (All are working good without any issues). these nodes dont have internet access for security and ports are also secured behind firewall.

but when i am adding local node hosted on-prem clearly on diffrent subnet and network.
i exposed them using vpn node so cloud nodes behind firewall can connect to tcp proxy using vpn node. but on-prem nodes are advertising their nocal ips and because they cant be directly connected it is causing health check issues and replication is not working for on-prem nodes.

local nodes can ping cloud nodes local ips but cloud nodes cannot ping local nodes they can only ping and connect to vpn server on the same network.

i am using taislcale as vpn provider.