All of lore.kernel.org
 help / color / mirror / Atom feed
* Delay
@ 2002-10-08 13:34 Jose Rocha
  2002-10-08 14:08 ` Delay Maciej Soltysiak
  0 siblings, 1 reply; 15+ messages in thread
From: Jose Rocha @ 2002-10-08 13:34 UTC (permalink / raw)
  To: netfilter

Hi, everybody!!!

Does anybody know if I can introduce delay to all packets that come from one
IP??? For example, I want to intruduce 10ms of delay in all packets that come
from one IP. May I use the netfilter to do this? Does anyone have another idea??


Thanks a lot for the attention.
Rocha 




http://www.ieg.com.br


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Delay
  2002-10-08 13:34 Delay Jose Rocha
@ 2002-10-08 14:08 ` Maciej Soltysiak
  0 siblings, 0 replies; 15+ messages in thread
From: Maciej Soltysiak @ 2002-10-08 14:08 UTC (permalink / raw)
  To: Jose Rocha; +Cc: netfilter

> Does anybody know if I can introduce delay to all packets that come from one
> IP??? For example, I want to intruduce 10ms of delay in all packets that come
> from one IP. May I use the netfilter to do this? Does anyone have another idea??
Read about IMQ in Linux Advanced Routing and Traffic Control (lartc)

Regards,
Maciej Soltysiak




^ permalink raw reply	[flat|nested] 15+ messages in thread

* delay
@ 2003-10-31 18:56 Paulo Ricardo Bruck
  2003-10-31 19:15 ` delay Ramin Dousti
  0 siblings, 1 reply; 15+ messages in thread
From: Paulo Ricardo Bruck @ 2003-10-31 18:56 UTC (permalink / raw)
  To: netfilter

Hi guys

Just a question. I have a firewall w/ 3 NIC as below:

			Internet ADSL
			|
			|eth1 200.200.200.44/26
		_________________________	
		|	Firewall	|	DMZ
		| iptables 1.2.8	|_eth2 192.168.1.1/24______EMail
		|_______________________|			192.168.1.3	
			|
			| eth0 10.0.0.1/24
			LAN


Firewall : Debian 2.4.22 + iptables 1.2.8


route:
200.200.200.0/26 dev eth1  proto kernel  scope link  src 200.200.200.44
10.0.0.0/24 dev eth0  proto kernel  scope link  src 10.0.0.1
192.168.1.0/24 dev eth2  proto kernel  scope link  src 192.168.1.1
default via 200.200.200.1 dev eth1

rules:

a) iptables -A PREROUTING -d 200.200.200.1 -p tcp -m multiport --dports
smtp,pop3,imap2,webcache -j DNAT --to-destination 192.168.1.3

b) iptables -A POSTROUTING -o eth1 -j SNAT --to-source 200.200.200.1

c) iptables -A POSTROUTING -o eth2 -j SNAT --to-source 192.168.1.1


What happens:

- all desktops ( M$windows) access webmail and email w/ no problems, but
if I insert rule c) above it causes a delay when any desktop hit
get/post e-mail in Outlook and it takes +- 40 seconds to "connenct".

I know that must be a silly misconfiguration of something but after 1
week searching the problem I can't imagine what's wrong.

Can anybody help me please

Thanks in advance







^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2003-10-31 18:56 delay Paulo Ricardo Bruck
@ 2003-10-31 19:15 ` Ramin Dousti
  2003-10-31 19:25   ` delay Maciej Soltysiak
  2003-10-31 21:13   ` delay Paulo Ricardo Bruck
  0 siblings, 2 replies; 15+ messages in thread
From: Ramin Dousti @ 2003-10-31 19:15 UTC (permalink / raw)
  To: Paulo Ricardo Bruck; +Cc: netfilter

On Fri, Oct 31, 2003 at 04:56:33PM -0200, Paulo Ricardo Bruck wrote:

> Hi guys
> 
> Just a question. I have a firewall w/ 3 NIC as below:
> 
> 			Internet ADSL
> 			|
> 			|eth1 200.200.200.44/26
> 		_________________________	
> 		|	Firewall	|	DMZ
> 		| iptables 1.2.8	|_eth2 192.168.1.1/24______EMail
> 		|_______________________|			192.168.1.3	
> 			|
> 			| eth0 10.0.0.1/24
> 			LAN
> 
> 
> Firewall : Debian 2.4.22 + iptables 1.2.8
> 
> 
> route:
> 200.200.200.0/26 dev eth1  proto kernel  scope link  src 200.200.200.44
> 10.0.0.0/24 dev eth0  proto kernel  scope link  src 10.0.0.1
> 192.168.1.0/24 dev eth2  proto kernel  scope link  src 192.168.1.1
> default via 200.200.200.1 dev eth1
> 
> rules:
> 
> a) iptables -A PREROUTING -d 200.200.200.1 -p tcp -m multiport --dports
> smtp,pop3,imap2,webcache -j DNAT --to-destination 192.168.1.3
> 
> b) iptables -A POSTROUTING -o eth1 -j SNAT --to-source 200.200.200.1
> 
> c) iptables -A POSTROUTING -o eth2 -j SNAT --to-source 192.168.1.1
> 
> 
> What happens:
> 
> - all desktops ( M$windows) access webmail and email w/ no problems, but
> if I insert rule c) above it causes a delay when any desktop hit
> get/post e-mail in Outlook and it takes +- 40 seconds to "connenct".

Let me not ask you why you have rule (c). But in general a long delay
is most of the time related to a faulty or non-existent reverse DNS.
But in case of SMTP it also might have something to do with ident
being dropped...

Ramin

> 
> I know that must be a silly misconfiguration of something but after 1
> week searching the problem I can't imagine what's wrong.
> 
> Can anybody help me please
> 
> Thanks in advance
> 
> 
> 
> 
> 


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2003-10-31 19:15 ` delay Ramin Dousti
@ 2003-10-31 19:25   ` Maciej Soltysiak
  2003-10-31 20:07     ` delay Ramin Dousti
  2003-10-31 21:13   ` delay Paulo Ricardo Bruck
  1 sibling, 1 reply; 15+ messages in thread
From: Maciej Soltysiak @ 2003-10-31 19:25 UTC (permalink / raw)
  To: Ramin Dousti; +Cc: Paulo Ricardo Bruck, netfilter

> But in case of SMTP it also might have something to do with ident
> being dropped...
I do not think i have seen SMTP use ident, ever.

Regards,
Maciej



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2003-10-31 19:25   ` delay Maciej Soltysiak
@ 2003-10-31 20:07     ` Ramin Dousti
  2003-10-31 20:16       ` delay Aaron P. Martinez
  2003-10-31 20:21       ` delay Maciej Soltysiak
  0 siblings, 2 replies; 15+ messages in thread
From: Ramin Dousti @ 2003-10-31 20:07 UTC (permalink / raw)
  To: Maciej Soltysiak; +Cc: Ramin Dousti, Paulo Ricardo Bruck, netfilter

On Fri, Oct 31, 2003 at 08:25:45PM +0100, Maciej Soltysiak wrote:

> > But in case of SMTP it also might have something to do with ident
> > being dropped...
> I do not think i have seen SMTP use ident, ever.

No but sendmail (an SMTP server) uses ident back to the client to verify.
Have you ever seen this before?

Ramin

> 
> Regards,
> Maciej


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2003-10-31 20:07     ` delay Ramin Dousti
@ 2003-10-31 20:16       ` Aaron P. Martinez
  2003-10-31 20:21       ` delay Maciej Soltysiak
  1 sibling, 0 replies; 15+ messages in thread
From: Aaron P. Martinez @ 2003-10-31 20:16 UTC (permalink / raw)
  To: Ramin Dousti; +Cc: Maciej Soltysiak, Paulo Ricardo Bruck, netfilter

On Fri, 2003-10-31 at 14:07, Ramin Dousti wrote:
> On Fri, Oct 31, 2003 at 08:25:45PM +0100, Maciej Soltysiak wrote:
> 
> > > But in case of SMTP it also might have something to do with ident
> > > being dropped...
> > I do not think i have seen SMTP use ident, ever.
> 
> No but sendmail (an SMTP server) uses ident back to the client to verify.
> Have you ever seen this before?
Also, depending on what pop/imap server you're using...it will also use
ident...You can get around this using UofW imapd and popd by commenting
out the appropriate line in the xinetd.conf

Aaron
> 
> Ramin
> 
> > 
> > Regards,
> > Maciej
> 



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2003-10-31 20:07     ` delay Ramin Dousti
  2003-10-31 20:16       ` delay Aaron P. Martinez
@ 2003-10-31 20:21       ` Maciej Soltysiak
  1 sibling, 0 replies; 15+ messages in thread
From: Maciej Soltysiak @ 2003-10-31 20:21 UTC (permalink / raw)
  To: Ramin Dousti; +Cc: Paulo Ricardo Bruck, netfilter

> No but sendmail (an SMTP server) uses ident back to the client to verify.
> Have you ever seen this before?
Just checked it, it really does use ident :-)

I've been using postfix and sendmail, so I have not seen this. Good to
know that :)

Regards,
Maciej



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2003-10-31 19:15 ` delay Ramin Dousti
  2003-10-31 19:25   ` delay Maciej Soltysiak
@ 2003-10-31 21:13   ` Paulo Ricardo Bruck
  2003-10-31 21:44     ` delay Ramin Dousti
  1 sibling, 1 reply; 15+ messages in thread
From: Paulo Ricardo Bruck @ 2003-10-31 21:13 UTC (permalink / raw)
  To: netfilter

Em Sex, 2003-10-31 às 17:15, Ramin Dousti escreveu:
> On Fri, Oct 31, 2003 at 04:56:33PM -0200, Paulo Ricardo Bruck wrote:
> 
> > Hi guys
> > 
> > Just a question. I have a firewall w/ 3 NIC as below:
> > 
> > 			Internet ADSL
> > 			|
> > 			|eth1 200.200.200.44/26
> > 		_________________________	
> > 		|	Firewall	|	DMZ
> > 		| iptables 1.2.8	|_eth2 192.168.1.1/24______EMail
> > 		|_______________________|			192.168.1.3	
> > 			|
> > 			| eth0 10.0.0.1/24
> > 			LAN
> > 
> > 
> > Firewall : Debian 2.4.22 + iptables 1.2.8
> > 
> > 
> > route:
> > 200.200.200.0/26 dev eth1  proto kernel  scope link  src 200.200.200.44
> > 10.0.0.0/24 dev eth0  proto kernel  scope link  src 10.0.0.1
> > 192.168.1.0/24 dev eth2  proto kernel  scope link  src 192.168.1.1
> > default via 200.200.200.1 dev eth1
> > 
> > rules:
> > 
> > a) iptables -A PREROUTING -d 200.200.200.1 -p tcp -m multiport --dports
> > smtp,pop3,imap2,webcache -j DNAT --to-destination 192.168.1.3
> > 
> > b) iptables -A POSTROUTING -o eth1 -j SNAT --to-source 200.200.200.1
> > 
> > c) iptables -A POSTROUTING -o eth2 -j SNAT --to-source 192.168.1.1
> > 
> > 
> > What happens:
> > 
> > - all desktops ( M$windows) access webmail and email w/ no problems, but
> > if I insert rule c) above it causes a delay when any desktop hit
> > get/post e-mail in Outlook and it takes +- 40 seconds to "connenct".
> 
> Let me not ask you why you have rule (c). 
c) I insert because we have in DMZ a IIS and as far as I known I could
protect it putting PREROUTING rules.... who knows??? If someone invade
IIS at least I'll be protecting LAN changing their IP ....80)


> But in general a long delay
> is most of the time related to a faulty or non-existent reverse DNS.
> But in case of SMTP it also might have something to do with ident
> being dropped...
maybe it can help: 
 iptables -N AUTH
iptables -A FORWARD -d $LAN -p tcp --dport 113 -j AUTH
iptables -A FORWARD -d $REDEDMZ -p tcp  --dport 113 -j AUTH
iptables -A AUTH  -j REJECT -p tcp --reject-with tcp-reset

As you can see I'm rejecting ident.... Is that the problem ??



> 
> Ramin
> 
> > 
> > I know that must be a silly misconfiguration of something but after 1
> > week searching the problem I can't imagine what's wrong.
> > 
> > Can anybody help me please
> > 
> > Thanks in advance
> > 
> > 
> > 
> > 
> > 




^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2003-10-31 21:13   ` delay Paulo Ricardo Bruck
@ 2003-10-31 21:44     ` Ramin Dousti
  0 siblings, 0 replies; 15+ messages in thread
From: Ramin Dousti @ 2003-10-31 21:44 UTC (permalink / raw)
  To: Paulo Ricardo Bruck; +Cc: netfilter

On Fri, Oct 31, 2003 at 07:13:44PM -0200, Paulo Ricardo Bruck wrote:
> > > 
> > > c) iptables -A POSTROUTING -o eth2 -j SNAT --to-source 192.168.1.1
> > > 
> > > 
> > > What happens:
> > > 
> > > - all desktops ( M$windows) access webmail and email w/ no problems, but
> > > if I insert rule c) above it causes a delay when any desktop hit
> > > get/post e-mail in Outlook and it takes +- 40 seconds to "connenct".
> > 
> > Let me not ask you why you have rule (c). 
> c) I insert because we have in DMZ a IIS and as far as I known I could
> protect it putting PREROUTING rules.... who knows??? If someone invade
> IIS at least I'll be protecting LAN changing their IP ....80)

And changing their IP to 192.168.1.1 protects you, how?

> > But in general a long delay
> > is most of the time related to a faulty or non-existent reverse DNS.
> > But in case of SMTP it also might have something to do with ident
> > being dropped...
> maybe it can help: 
>  iptables -N AUTH
> iptables -A FORWARD -d $LAN -p tcp --dport 113 -j AUTH
> iptables -A FORWARD -d $REDEDMZ -p tcp  --dport 113 -j AUTH
> iptables -A AUTH  -j REJECT -p tcp --reject-with tcp-reset
> 
> As you can see I'm rejecting ident.... Is that the problem ??

Try tcpdump and see what is happening. I'm not sure but some of the
--reject-with options didn't do their job correctly (AFAICR).

Ramin


^ permalink raw reply	[flat|nested] 15+ messages in thread

* delay
@ 2005-08-24  6:45 raja
  2005-08-24 10:12 ` delay Vladimir V. Saveliev
  2005-08-24 17:00 ` delay Tim Bird
  0 siblings, 2 replies; 15+ messages in thread
From: raja @ 2005-08-24  6:45 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,
    Would you please tell me how to write a function that generates a 
delay of Less than a sec.(ie for 1 milli se or one microsec etc).

Thankingyou,
Raja

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2005-08-24  6:45 delay raja
@ 2005-08-24 10:12 ` Vladimir V. Saveliev
  2005-08-24 10:45   ` delay Jesper Juhl
  2005-08-24 17:00 ` delay Tim Bird
  1 sibling, 1 reply; 15+ messages in thread
From: Vladimir V. Saveliev @ 2005-08-24 10:12 UTC (permalink / raw)
  To: raja; +Cc: Linux Kernel Mailing List

Hello

raja wrote:
> Hi,
>    Would you please tell me how to write a function that generates a
> delay of Less than a sec.(ie for 1 milli se or one microsec etc).
> 

Maybe you could use: linux/kernel/timer.c:schedule_timeout()

> Thankingyou,
> Raja
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> 


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2005-08-24 10:12 ` delay Vladimir V. Saveliev
@ 2005-08-24 10:45   ` Jesper Juhl
  0 siblings, 0 replies; 15+ messages in thread
From: Jesper Juhl @ 2005-08-24 10:45 UTC (permalink / raw)
  To: Vladimir V. Saveliev; +Cc: raja, Linux Kernel Mailing List

On 8/24/05, Vladimir V. Saveliev <vs@namesys.com> wrote:
> Hello
> 
> raja wrote:
> > Hi,
> >    Would you please tell me how to write a function that generates a
> > delay of Less than a sec.(ie for 1 milli se or one microsec etc).
> >
> 
> Maybe you could use: linux/kernel/timer.c:schedule_timeout()
> 

udelay() / ndelay() ?

-- 
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: delay
  2005-08-24  6:45 delay raja
  2005-08-24 10:12 ` delay Vladimir V. Saveliev
@ 2005-08-24 17:00 ` Tim Bird
  1 sibling, 0 replies; 15+ messages in thread
From: Tim Bird @ 2005-08-24 17:00 UTC (permalink / raw)
  To: raja; +Cc: Linux Kernel Mailing List

raja wrote:
> Hi,
>     Would you please tell me how to write a function that generates a 
> delay of Less than a sec.(ie for 1 milli se or one microsec etc).

See udelay() (follow the trail from: include/linux/delay.h)

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Electronics
=============================


^ permalink raw reply	[flat|nested] 15+ messages in thread

* delay
@ 2018-01-30  9:31 Karel Zak
  0 siblings, 0 replies; 15+ messages in thread
From: Karel Zak @ 2018-01-30  9:31 UTC (permalink / raw)
  To: util-linux


Hi,

sorry for delay with patches & replies in last days. I had flu last
week. I'll try to cleanup my INBOX in next days. Thanks.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-01-30  9:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-24  6:45 delay raja
2005-08-24 10:12 ` delay Vladimir V. Saveliev
2005-08-24 10:45   ` delay Jesper Juhl
2005-08-24 17:00 ` delay Tim Bird
  -- strict thread matches above, loose matches on Subject: below --
2018-01-30  9:31 delay Karel Zak
2003-10-31 18:56 delay Paulo Ricardo Bruck
2003-10-31 19:15 ` delay Ramin Dousti
2003-10-31 19:25   ` delay Maciej Soltysiak
2003-10-31 20:07     ` delay Ramin Dousti
2003-10-31 20:16       ` delay Aaron P. Martinez
2003-10-31 20:21       ` delay Maciej Soltysiak
2003-10-31 21:13   ` delay Paulo Ricardo Bruck
2003-10-31 21:44     ` delay Ramin Dousti
2002-10-08 13:34 Delay Jose Rocha
2002-10-08 14:08 ` Delay Maciej Soltysiak

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.