andrii
By:
andrii

Forwarding ports out from VPN Network to internet network.

December 31, 2015 495 views
VPN Firewall CentOS

Hi guys!
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 45.45.45.45, and port 7003 + (RTP 10000 - 20000) from 10.0.0.101 to eth0 ip 45.45.45.45.

OS: Centos 6.7.

Please Advice.

P.S Happy Holidays.

Be the first one to answer this question.