My setup: I have a tomato router A with ip address 192.168.5.1. I also have a Synology nas in my lan running Asterisk with ip 192.168.5.5
The tomato router A is also set up as openvpn server. I have another tomato router B at my parents house with 192.168.2.1 as its address.
Router B is set up to connect to my tomato router A via openvpn and the tunnel works fine.
There is also a linksys pap2 at my parents house. It gets 192.168.2.130 as its address from the tomato router B. The pap2 is able to register an extension on my asterisk using 192.168.5.5:5070 as the server address. All seems normal however this is the part where I get stuck.
The phone connected to the pap2 is unable to dial any extensions.
When I call the extension on the pap2 the best I’ve had is where I have gotten it to actually ring but I am unable to hear my parents. They can hear me apparently. This was when I put the pap2 into the dmz (on router B).
I am thinking this must be a firewall issue on the tomato router B, the one at my parents house. I have noticed that the openvpn connection has created 3 routes for tun in the routing table in both router A and B and I presume that is the reason why I can reach the pap2 and other remote resources by just typing 192.168.2.x even though I am in the 192.168.5.x network myself.
iptables commands maybe?
firewall script for router B?
I feel like I am so close to getting it working. Anyone out there that can help me along? It would be greatly appreciated.