I have this problem and I don’t see a simple solution to it.
We have an office Lan with a 255.255.0.0 range
We have an asterisk server on a 192.168.1.21 IP that is accessible from the Lan.
We have a VPN allowing to access the 192.168.2.0 subnet of our office lan (we use the 192.168.2.0 subnet instead of 192.168.1.0 subnet to avoid address collision with the remote lan )
I would like to register a sip phone on the remote lan with the asterisk server on the office lan.
Of course, the easy way would be to change the asterisk server ip to an address in the 192.168.2.0 range, but I would prefer not to do it.
How can I “redirect” the sip traffic coming from the VPN on the 192.168.2.0 subnet to the asterisk server which is on the 192.168.1.0 subnet, to allow registering of my remote phone ?
thanks very much for any help