Community discussions

MikroTik App
 
mobilexpi
Member Candidate
Member Candidate
Topic Author
Posts: 115
Joined: Thu May 26, 2005 5:24 am
Location: Santiago

Is possible these configuration?

Thu Oct 16, 2008 9:39 pm

Hello:
I'm installing Mikrotik in our small office, and I want to know if is possible to do this..(I attach the picture, that explain it better than words :))
ImageImage


The idea is, use the IP and the connection of the ISP2 for the Asterisk (with public IP address). And use the connection of the ISP1 only to the PCs in the network (via NAT), but that they can access from the LAN to the Asterisk Server (with the public IP and connected to the ISP2).

Is it possible? Is it very difficult?
Thanks
Best regards,
 
jamchan_hn
just joined
Posts: 18
Joined: Tue Nov 13, 2007 12:54 am

Re: Is possible these configuration?

Thu Oct 16, 2008 9:59 pm

Hello:
I'm installing Mikrotik in our small office, and I want to know if is possible to do this..(I attach the picture, that explain it better than words :))
ImageImage


The idea is, use the IP and the connection of the ISP2 for the Asterisk (with public IP address). And use the connection of the ISP1 only to the PCs in the network (via NAT), but that they can access from the LAN to the Asterisk Server (with the public IP and connected to the ISP2).

Is it possible? Is it very difficult?
Thanks
Best regards,


easy, just make a masquerade rule for wan ISP1 for the LAN , and another rule in firewall to drop destination address=asterisk server interface in=LAN and destination port= can be all or just 80 for GUI
 
alex_rhys-hurn
Member
Member
Posts: 353
Joined: Mon Jun 05, 2006 8:26 pm
Location: Kenya
Contact:

Re: Is possible these configuration?

Thu Oct 16, 2008 10:04 pm

This should be totally straight forward to achieve with routeros.

I guess I should ask you how many ports you have on your router?

You will probably want to use policy based routing to make this work nicely. Check in the wiki for an example.

I should add though that my own asterisk server worked much better when I added two network cards. This made sure that the only traffic on the interface with the public IP address was SIP TRUNK traffic.

All the load for the IP phones in the LAN was handled by another network card with a LAN ip address. My QOS and trunk performance was much better.

So, you can just take the ISP 2 link and plug it directly to the Asterisk box bypassing the mikrotik.....

Then you can plug the lan interface to the mikrotik and use this for QOS work in the LAN side.

Rgds

Alex
 
mobilexpi
Member Candidate
Member Candidate
Topic Author
Posts: 115
Joined: Thu May 26, 2005 5:24 am
Location: Santiago

Re: Is possible these configuration?

Fri Oct 17, 2008 3:01 am

Can you redirect in Asterisk only the trunk via the public IP, and the local calls via the ethernet card 2, with private IP?

Best regards,
 
alex_rhys-hurn
Member
Member
Posts: 353
Joined: Mon Jun 05, 2006 8:26 pm
Location: Kenya
Contact:

Re: Is possible these configuration?

Fri Oct 17, 2008 9:01 am

Yes of course.

In fact all you do is set the deault gateway for the asterisk to be the link to the dedicated ISP and the default gateway for the LAN ip phones to the mikrotik router that handles all other traffic.

Who is online

Users browsing this forum: janisb and 101 guests