dummynet and ipfw

2003-01-05 Thread master
Hi all i have a little problem with ipfw
i have try the following command :
ipfw add 100 pipe 1 ip from 192.168.1.5 to any
and i have no more network then i try a ping and get
ping : sendto : No buffer space invalide

any idea how can i fix this?
thx

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: dummynet and ipfw

2003-01-05 Thread Avleen Vig
On Sun, 5 Jan 2003, master wrote:

 Hi all i have a little problem with ipfw
 i have try the following command :
 ipfw add 100 pipe 1 ip from 192.168.1.5 to any
 and i have no more network then i try a ping and get
 ping : sendto : No buffer space invalide
 any idea how can i fix this?

Yes, you need to configure the pipe to *do* something.. otherwise it's a
pipe that just collects packets :-)
you can do it in two commands like this:

  ipfw add 100 pipe 1 ip from 192.168.1.5 to any
  ipfw config pipe 1 bw 0

'bw 0' means tuse unlimited bandwidth (ie, all your availible bandwidth).
You can change this to a different amount, eg to limit to 5Kbytes/s:

  ipfw add 100 pipe 1 ip from 192.168.1.5 to any
  ipfw config pipe 1 bw 5KBytes/s

Packets should then flow through naturally.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message