All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] IPVS: secure_tcp does provide alternate state timeouts
@ 2011-09-29  7:25 Simon Horman
  2011-09-29  8:47 ` Julian Anastasov
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Horman @ 2011-09-29  7:25 UTC (permalink / raw)
  To: Julian Anastasov; +Cc: lvs-devel, netdev, netfilter-devel, Simon Horman

* Also reword the test to make it read more easily (to me)

Signed-off-by: Simon Horman <horms@verge.net.au>

---

Julian, I don't see that IPVS currently implements alternate
timeouts for secure_tcp. Am I missing something?
---
 Documentation/networking/ipvs-sysctl.txt |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/Documentation/networking/ipvs-sysctl.txt b/Documentation/networking/ipvs-sysctl.txt
index 1dcdd49..13610e3 100644
--- a/Documentation/networking/ipvs-sysctl.txt
+++ b/Documentation/networking/ipvs-sysctl.txt
@@ -140,13 +140,11 @@ nat_icmp_send - BOOLEAN
 secure_tcp - INTEGER
         0  - disabled (default)
 
-        The secure_tcp defense is to use a more complicated state
-        transition table and some possible short timeouts of each
-        state. In the VS/NAT, it delays the entering the ESTABLISHED
-        until the real server starts to send data and ACK packet
-        (after 3-way handshake).
+	The secure_tcp defense is to use a more complicated TCP state
+	transition table. For VS/NAT, it also delays entering the
+	TCP ESTABLISHED state until the three way handshake is completed.
 
-        The value definition is the same as that of drop_entry or
+        The value definition is the same as that of drop_entry and
         drop_packet.
 
 sync_threshold - INTEGER
-- 
1.7.5.4


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

* Re: [RFC] IPVS: secure_tcp does provide alternate state timeouts
  2011-09-29  7:25 [RFC] IPVS: secure_tcp does provide alternate state timeouts Simon Horman
@ 2011-09-29  8:47 ` Julian Anastasov
  2011-09-29  9:01   ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Julian Anastasov @ 2011-09-29  8:47 UTC (permalink / raw)
  To: Simon Horman; +Cc: lvs-devel, netdev, netfilter-devel


	Hello,

On Thu, 29 Sep 2011, Simon Horman wrote:

> * Also reword the test to make it read more easily (to me)
> 
> Signed-off-by: Simon Horman <horms@verge.net.au>
> 
> ---
> 
> Julian, I don't see that IPVS currently implements alternate
> timeouts for secure_tcp. Am I missing something?

	Yes, only states are changed. What is missing is a
libipvs support to modify per-protocol timeouts because they
are not exported to /proc anymore. As the states have name,
may be we can implement timeout to be set as follows:

	ipvsadm --set-state-timeout -p TCP SYN 10

	Using 2 timeout tables just for secure_tcp is
complicated and with the above control it is not needed.

> ---
>  Documentation/networking/ipvs-sysctl.txt |   10 ++++------
>  1 files changed, 4 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/networking/ipvs-sysctl.txt b/Documentation/networking/ipvs-sysctl.txt
> index 1dcdd49..13610e3 100644
> --- a/Documentation/networking/ipvs-sysctl.txt
> +++ b/Documentation/networking/ipvs-sysctl.txt
> @@ -140,13 +140,11 @@ nat_icmp_send - BOOLEAN
>  secure_tcp - INTEGER
>          0  - disabled (default)
>  
> -        The secure_tcp defense is to use a more complicated state
> -        transition table and some possible short timeouts of each
> -        state. In the VS/NAT, it delays the entering the ESTABLISHED
> -        until the real server starts to send data and ACK packet
> -        (after 3-way handshake).
> +	The secure_tcp defense is to use a more complicated TCP state
> +	transition table. For VS/NAT, it also delays entering the
> +	TCP ESTABLISHED state until the three way handshake is completed.
>  
> -        The value definition is the same as that of drop_entry or
> +        The value definition is the same as that of drop_entry and
>          drop_packet.
>  
>  sync_threshold - INTEGER
> -- 
> 1.7.5.4

Regards

--
Julian Anastasov <ja@ssi.bg>

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

* Re: [RFC] IPVS: secure_tcp does provide alternate state timeouts
  2011-09-29  8:47 ` Julian Anastasov
@ 2011-09-29  9:01   ` Simon Horman
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Horman @ 2011-09-29  9:01 UTC (permalink / raw)
  To: Julian Anastasov; +Cc: lvs-devel, netdev, netfilter-devel

On Thu, Sep 29, 2011 at 11:47:10AM +0300, Julian Anastasov wrote:
> 
> 	Hello,
> 
> On Thu, 29 Sep 2011, Simon Horman wrote:
> 
> > * Also reword the test to make it read more easily (to me)
> > 
> > Signed-off-by: Simon Horman <horms@verge.net.au>
> > 
> > ---
> > 
> > Julian, I don't see that IPVS currently implements alternate
> > timeouts for secure_tcp. Am I missing something?
> 
> 	Yes, only states are changed. What is missing is a
> libipvs support to modify per-protocol timeouts because they
> are not exported to /proc anymore. As the states have name,
> may be we can implement timeout to be set as follows:
> 
> 	ipvsadm --set-state-timeout -p TCP SYN 10
> 
> 	Using 2 timeout tables just for secure_tcp is
> complicated and with the above control it is not needed.

Yes, I agree there is room for improvement.
I guess the best way forward is to use netlink
to allow per-state per-protocol timeout adjustment.

In the mean time, I'll queue this patch up as I think
its good that the documentation reflects the implementation.

> 
> > ---
> >  Documentation/networking/ipvs-sysctl.txt |   10 ++++------
> >  1 files changed, 4 insertions(+), 6 deletions(-)
> > 
> > diff --git a/Documentation/networking/ipvs-sysctl.txt b/Documentation/networking/ipvs-sysctl.txt
> > index 1dcdd49..13610e3 100644
> > --- a/Documentation/networking/ipvs-sysctl.txt
> > +++ b/Documentation/networking/ipvs-sysctl.txt
> > @@ -140,13 +140,11 @@ nat_icmp_send - BOOLEAN
> >  secure_tcp - INTEGER
> >          0  - disabled (default)
> >  
> > -        The secure_tcp defense is to use a more complicated state
> > -        transition table and some possible short timeouts of each
> > -        state. In the VS/NAT, it delays the entering the ESTABLISHED
> > -        until the real server starts to send data and ACK packet
> > -        (after 3-way handshake).
> > +	The secure_tcp defense is to use a more complicated TCP state
> > +	transition table. For VS/NAT, it also delays entering the
> > +	TCP ESTABLISHED state until the three way handshake is completed.
> >  
> > -        The value definition is the same as that of drop_entry or
> > +        The value definition is the same as that of drop_entry and
> >          drop_packet.
> >  
> >  sync_threshold - INTEGER
> > -- 
> > 1.7.5.4
> 
> Regards
> 
> --
> Julian Anastasov <ja@ssi.bg>
> 

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

end of thread, other threads:[~2011-09-29  9:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-29  7:25 [RFC] IPVS: secure_tcp does provide alternate state timeouts Simon Horman
2011-09-29  8:47 ` Julian Anastasov
2011-09-29  9:01   ` Simon Horman

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.