View Single Post

  #1 (permalink)  
Old 05-09-2008
Diaphragm
 
Posts: n/a
Default OpenVPN and Traffic Shaping per client

Hi,

I've just successfully installed and configured a peer-to-peer static
openvpn tunnel between two servers.

Here is the setup:

[subnet 192.168.1.0/24]--routed to VPN Server--- [single public/valid
address]---->tunnel[10.1.0.1]---<>{INTERNET}<>---remote tunnel--
>[10.1.0.2]---remote server network--->[single public/valid address]--
>[VoIP gateways using subnet 192.168.1.0/24].


So basically the remote VoIP Gateways are using the subnet from office
192.168.1.0/24 via the Internet tunnel. I use the 192.168.1.1 on the
remote server as its secondary eth0:1 address and use it on VoIP
Gateways as the gateway address and give them an IP manually from the
192168.1.0/24 subnet (not using DHCP).

Okay i hope you've got the setup and now to the main question:

- I like to setup bandwidth limit for each VoIP gateway connected on
the 192.168.1.0/24 subnet (or for each tunnel interface).
- The limit is different per gateway. One could be 128k, the other
256k or even 1 Mb.
- I cannot compromise on the VoIP traffic and affect its quality due
to the traffic shaping under this tunnel. Just want to simply cap the
bandwidth so that a gateway cannot pull more than allocated bandwidth.

I've already looked at the shaper option of OpenVPN but testing it
with a simple ping caused delays and packet loss so i presume it'll be
even worst running real traffic on it. I've been told by a friend that
perhaps i could set it up with the help of linux's TC but i've never
worked with TC and i doubt i can learn it quick enough to apply such
QoS methods on office server with fine tune quality for voip.

Can anyone assist? Point me to a right direction or help me with tc
perhaps?

Your help is greatly appreciated and thank you in advance for your
time :)

Hamed
Reply With Quote