So a friend of mine and I setup a static key based point to point OpenVPN connection from my box to his for the express intent of carrying IAX traffic encrypted.
His network on his lan is 172.30.1.0/24 and mine is 10.0.30.0/24. His PBX is located at 172.30.1.48 and mine is at 10.0.30.2. We had an existing working IAX trunk in place prior to the VPN, and after we brought the VPN up we set the host= parameter within Asterisk accordingly on each end to match the local IP’s and discovered it did not work. The trunk remained in an UNKNOWN status on each end, even though we could ping each box locally, SSH, and even SIP worked.
Here’s where I am baffled and I am hoping someone with intricate knowledge of this implementation may be able to explain it to me. What we had to do to get this working was to set the host= parameter to the respective endpoint IP’s of the VPN tunnel, 22.214.171.124 in my case, and
126.96.36.199 in his case. Calls flow normally now and we cannot understand how or why. I would have assumed with a destination of either LAN as defined by the routing table it would have left out on the OpenVPN
connection by default, and what’s even more strange is that IAX is the only protocol that does not appear to function as intended.
Any takers? 🙂
—–BEGIN PGP SIGNATURE—