Forwarding ports out from VPN Network to internet network.
I have far far away a small network with few asterisk servers.
I want to use digitalocean VPS server for routing out my servers to the internet.
I created a VPN connection to my network, so now I have two connections, eth0 and ppp0. Every asterisk server has custom port.
So the question is: How can I forward Sip port from a machine in the VPN network and the RTP ports that are using NAT to eth0?
for Example I have two machines in ppp0 network as 10.0.0.100 and 10.0.0.101.
I want to forward port 7001 + (RTP 10000 - 20000) from 10.0.0.100 to eth0 ip 126.96.36.199, and port 7003 + (RTP 10000 - 20000) from 10.0.0.101 to eth0 ip 188.8.131.52.
OS: Centos 6.7.
P.S Happy Holidays.