Routing Traffic between two ISPs - 2 NICs

husaints

Joined
Jul 2, 2009
Messages
45
Likes
0
Points
0
#1
Hi,

I have a new elastix setup which acts as a complete communications server. Since the elastix server is on 24/7 I have also installed torrentflux for downloading torrents etc. The current problem is since elastix runs emails, torrents and also phone sip trunks, the internet connection is utilized to the maximum and when a voip / sip call is taking place, it breaks up due to the lack of bandwidth for the call. The primary purpose of the elastix server is lost when call quality is suffering due to to other apps utilizing the badnwidth with very little for phone / voip service.

What I have done is I have taken 2 Internet connections from 2 ISPs and want to dedicate one ISP for the voip/phon service where as use the 2nd ISP connection for torrentflux and other apps. I have installed 2 NICs on the elastix server which are conencted to 2 different routers form 2 different ISPs.

I want to be able to route voice traffic from the 1st NIC (ISP 1) and the the torrent and other traffic via 2nd NIC (ISP 2). Please let me know how I can go about doing this. I have webmin installed. If there is an easy to use GUI to do the same I can also install it. Though would have to install X windows too with minimal installtion.

The setup is as follows:

---------- --------- ------------ ------------------
|Internet|---| ISP 1 |-<--| Router 1 |-<--| Network Card 1 |--<---
---------- --------- ------------ ------------------ |
192.168.2.1 192.168.2.100 |
-----------
| ELASTIX |
| SERVER |
-----------
|
---------- --------- ------------ ------------------ |
|Internet|---| ISP 2 |-<--| Router 2 |-<--| Network Card 2 |--<---
---------- --------- ------------ ------------------
192.168.3.1 192.168.3.100

Summary:
Want to route Voip traffic via Network Card 1 and Torrent traffic via Network Card 2.


Thanks,
 

rafael

Joined
May 14, 2007
Messages
1,454
Likes
1
Points
0
#2
You can do that with iptables, but is not very simple. Maybe you can install a machine that act as a router and install something like ebox or endean (those are similar to Elastix but for firewalls. )

regards,

Rafael
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,564
Latest member
Mai Tuyen
Top