* Simulating a "bad" connection.
@ 2007-05-04 20:01 Tommy W
2007-05-04 21:11 ` Jan Engelhardt
2007-05-05 19:07 ` Andy Furniss
0 siblings, 2 replies; 7+ messages in thread
From: Tommy W @ 2007-05-04 20:01 UTC (permalink / raw)
To: netfilter
Hi,
I was just wondering if someone knows of a good way to simulate a "bad"
network?.
I want high latency AND/OR high packet loss.
I was thinking along the lines
iptables -I INPUT -m random --average 90 -j DROP
but then I get libipt_random.so doesn't exist.
I see that it is not included, how do you get it ?
kernel: 2.6.16-rc5
iptables: 1.3.4
or is there some other more simple solution?
Thanks in advance
/Tommy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Simulating a "bad" connection.
2007-05-04 20:01 Simulating a "bad" connection Tommy W
@ 2007-05-04 21:11 ` Jan Engelhardt
2007-05-04 21:42 ` Tommy W
2007-05-04 21:55 ` Pascal Hambourg
2007-05-05 19:07 ` Andy Furniss
1 sibling, 2 replies; 7+ messages in thread
From: Jan Engelhardt @ 2007-05-04 21:11 UTC (permalink / raw)
To: Tommy W; +Cc: netfilter
On May 4 2007 22:01, Tommy W wrote:
>Hi,
>I was just wondering if someone knows of a good way to simulate a "bad"
>network?.
>I want high latency AND/OR high packet loss.
>
>I was thinking along the lines
>iptables -I INPUT -m random --average 90 -j DROP
>
>but then I get libipt_random.so doesn't exist.
-m statistic --mode random
It might not exist yet either.
>I see that it is not included, how do you get it ?
>
>kernel: 2.6.16-rc5
>iptables: 1.3.4
>
>or is there some other more simple solution?
>
>Thanks in advance
>/Tommy
>
Jan
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Simulating a "bad" connection.
2007-05-04 21:11 ` Jan Engelhardt
@ 2007-05-04 21:42 ` Tommy W
2007-05-04 21:55 ` Pascal Hambourg
1 sibling, 0 replies; 7+ messages in thread
From: Tommy W @ 2007-05-04 21:42 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter
On Friday 04 May 2007 23:11, you wrote:
> On May 4 2007 22:01, Tommy W wrote:
> >Hi,
> >I was just wondering if someone knows of a good way to simulate a "bad"
> >network?.
> >I want high latency AND/OR high packet loss.
> >
> >I was thinking along the lines
> >iptables -I INPUT -m random --average 90 -j DROP
> >
> >but then I get libipt_random.so doesn't exist.
>
> -m statistic --mode random
>
> It might not exist yet either.
Thanks for the tip, although I did not have that either :\
Is it included in a newer version of netfilter/iptables ?
/Tommy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Simulating a "bad" connection.
2007-05-04 21:11 ` Jan Engelhardt
2007-05-04 21:42 ` Tommy W
@ 2007-05-04 21:55 ` Pascal Hambourg
2007-05-04 21:58 ` Pascal Hambourg
1 sibling, 1 reply; 7+ messages in thread
From: Pascal Hambourg @ 2007-05-04 21:55 UTC (permalink / raw)
To: netfilter
Hello,
Jan Engelhardt a écrit :
>
> -m statistic --mode random
>
> It might not exist yet either.
Indeed. The 'statistic' match was included in kernel 2.6.18 and requires
iptables >= 1.3.6.
>>kernel: 2.6.16-rc5
>>iptables: 1.3.4
The 'random' match is supported by iptables 1.3.4, but not by the
standard kernel. It needs to be patched with the 'connlimit' patch which
used to be included in the patch-o-matic-ng snapshots until
patch-o-matic-ng-20060511. Unfortunately such old snapshots are not
available on the Netfilter main server any more. They may still be
available in some archives or mirrors out there. I think I kept a copy.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Simulating a "bad" connection.
2007-05-04 21:55 ` Pascal Hambourg
@ 2007-05-04 21:58 ` Pascal Hambourg
0 siblings, 0 replies; 7+ messages in thread
From: Pascal Hambourg @ 2007-05-04 21:58 UTC (permalink / raw)
To: netfilter
Pascal Hambourg a écrit :
>
> The 'random' match is supported by iptables 1.3.4, but not by the
> standard kernel. It needs to be patched with the 'connlimit' patch
Dunno why I wrote 'connlimit'. I meant the 'random' patch of course.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Simulating a "bad" connection.
2007-05-04 20:01 Simulating a "bad" connection Tommy W
2007-05-04 21:11 ` Jan Engelhardt
@ 2007-05-05 19:07 ` Andy Furniss
2007-05-06 11:00 ` Tommy W
1 sibling, 1 reply; 7+ messages in thread
From: Andy Furniss @ 2007-05-05 19:07 UTC (permalink / raw)
To: Tommy W; +Cc: netfilter
Tommy W wrote:
> Hi,
> I was just wondering if someone knows of a good way to simulate a "bad"
> network?.
> I want high latency AND/OR high packet loss.
>
> I was thinking along the lines
> iptables -I INPUT -m random --average 90 -j DROP
>
> but then I get libipt_random.so doesn't exist.
> I see that it is not included, how do you get it ?
>
> kernel: 2.6.16-rc5
> iptables: 1.3.4
>
> or is there some other more simple solution?
>
> Thanks in advance
> /Tommy
>
>
http://linux-net.osdl.org/index.php/Netem
Is in kernel.
Andy.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Simulating a "bad" connection.
2007-05-05 19:07 ` Andy Furniss
@ 2007-05-06 11:00 ` Tommy W
0 siblings, 0 replies; 7+ messages in thread
From: Tommy W @ 2007-05-06 11:00 UTC (permalink / raw)
To: lists; +Cc: netfilter
On Saturday 05 May 2007 21:07, Andy Furniss wrote:
> Tommy W wrote:
> > Hi,
> > I was just wondering if someone knows of a good way to simulate a "bad"
> > network?.
> > I want high latency AND/OR high packet loss.
> >
> > I was thinking along the lines
> > iptables -I INPUT -m random --average 90 -j DROP
> >
> > but then I get libipt_random.so doesn't exist.
> > I see that it is not included, how do you get it ?
> >
> > kernel: 2.6.16-rc5
> > iptables: 1.3.4
> >
> > or is there some other more simple solution?
> >
> > Thanks in advance
> > /Tommy
>
> http://linux-net.osdl.org/index.php/Netem
>
> Is in kernel.
Thanks, this looks alot like what I'm looking for
and that it's already included in my kernel is a real plus.
/Tommy
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-05-06 11:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-04 20:01 Simulating a "bad" connection Tommy W
2007-05-04 21:11 ` Jan Engelhardt
2007-05-04 21:42 ` Tommy W
2007-05-04 21:55 ` Pascal Hambourg
2007-05-04 21:58 ` Pascal Hambourg
2007-05-05 19:07 ` Andy Furniss
2007-05-06 11:00 ` Tommy W
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.