The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > BSD
.
google unix.com



BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using several pipes in ipfw (dummynet) xenator BSD 0 01-22-2009 04:15 PM
problem in finding a hardware problem girish.batra SUN Solaris 8 09-09-2008 10:10 AM
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 10:10 AM
using dummynet to limit bandwidth Alex_sh IP Networking 1 07-06-2006 02:05 PM
SSH Problem auth problem budrito UNIX for Advanced & Expert Users 1 03-17-2004 10:12 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-24-2009
azfar azfar is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 1
dummynet problem.

I am using dummynet in bridge mode. and its working fine.

Now I have built another box (freebsd 7.1) in router mode. On this box I have two NICs, one for lan and one for wan. both networks are segmented physically and logically i-e both interfaces have different ip pools and connected to different physical networks e.g

lan has 1.2.3.4 (only IP)
wan has 2.3.4.5 including its gateway and dns servers.
Both networks are /24.

Ony my router i add a static route to forward all traffic for 1.2.3.4/24 to 2.3.4.5 (freebsd).

So far the networking is working fine. I can reach any network from 1.2.3.0/24 network and similerly any network can reach 1.2.3.0/24 network.

Now I enabled the dummynet on this box and add a teast rule like below.

$cmd pipe 78 $bwd 512kbits/s
$cmd pipe 79 $bwd 512kbits/s
$cmd add pipe 78 ip $src 1.2.3.39 $dest any
$cmd add pipe 79 ip $src any $dest 1.2.3.39

Now the problem is I am only getting the quarter of bandwidth i-e 128kbits (no other process is accessing internet).

But if i changed the rules to
$cmd pipe 78 $bwd 512kbits/s
$cmd pipe 79 $bwd 512kbits/s
$cmd add pipe 78 ip $src 1.2.3.39 $dest any out via le0
$cmd add pipe 79 ip $src any $dest 1.2.3.39 in via le0

Then I got half bandwidth. But the problem is if the client is connected over pppoe then the above rule doesnt apply on it because now the client traffic is comming from tun0. So I cant mention the interface in my rules because everytime client pppoe tunnel changes i-e tun0, tun1, tun3 etc.

As I cant mention the interface name thatswhy I am still getting quarter bandwidth on download.

Any ideas where i am wrong!
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0