Skip to contentSkip to conversation

ipvs: changes for local server and local client

PATCH In review Julian Anastasov 3 participants 8 messages Oct 17, 2010 – Oct 21, 2010

Subsystems (2)
lore
Share & tools
lore

Julian Anastasov

author maintainer
#0 lore raw

cover ipvs: changes for local server and local client

Hello,

The following patches fix some bugs (patch 1 and 2),
add support for NAT to local real server, add handlers in LOCAL_OUT to properly schedule connections from local clients. Currently, patch 9 and 10 add these handlers in LOCAL_OUT without any configuration, i.e. we add code in OUTPUT hook which is not good for the performance of non-IPVS traffic. May be some config option that enables support for DNAT to local servers and for local clients can help for this.

The patches are against recent nf-next and require
the "ipvs: IPv6 tunnel mode" patch. They are tested and can be applied to nf-next after review/comments.

What works:

- NAT to local real server, even with different port, from local or remote client

- local client:
- NAT, DR, TUN

- from LOCAL_OUT, needs client to bind socket
to non-VIP address before connecting if DR/TUN servers are used because the output routing before OUTPUT hook selects VIP as source address ignoring any preferred source addresses, even if the local route is replaced.

Not tested: IPv6. I'll need help here from people with IPv6 setups.

Remaining problems:

- IPv6 defragmentation: still not implemented, we rely on netfilter defrag

Regards

--
Julian Anastasov <[email protected]>

#1 lore raw

Hi Julian

Quoted 30 lines · On Sunday 17 October 2010 15:12:21 Julian Anastasov wrote:
(quoted diff) +0 -0
 	Hello,
 
 	The following patches fix some bugs (patch 1 and 2),

add support for NAT to local real server, add handlers in LOCAL_OUT to properly schedule connections from local clients. Currently, patch 9 and 10 add these handlers in LOCAL_OUT without any configuration, i.e. we add code in OUTPUT hook which is not good for the performance of non-IPVS traffic. May be some config option that enables support for DNAT to local servers and for local clients can help for this.

The patches are against recent nf-next and require
the "ipvs: IPv6 tunnel mode" patch. They are tested and can be applied to nf-next after review/comments.

What works:

- NAT to local real server, even with different port, from local or remote client

- local client:

(quoted diff) +0 -0
 	- NAT, DR, TUN
 
 	- from LOCAL_OUT, needs client to bind socket
 	to non-VIP address before connecting if DR/TUN servers are
 	used because the output routing before OUTPUT hook
 	selects VIP as source address ignoring any preferred source
 	addresses, even if the local route is replaced.
Quoted 2 lines

Not tested: IPv6. I'll need help here from people with IPv6 setups.

I can help you with some IPv6 testing this week.

I would be nice to change the IPv6 address print format from %pI6 to %pI6c to get a more compact debug output.

Quoted 4 lines

Remaining problems:

- IPv6 defragmentation: still not implemented, we rely on netfilter defrag

Quoted 9 lines

Regards

--
Julian Anastasov <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Regards
Hans Schillstrom <[email protected]>

author maintainer
#2 lore raw

Hello,

Quoted 4 lines · Hans Schillstrom
Quoted 2 lines

Not tested: IPv6. I'll need help here from people with IPv6 setups.

I can help you with some IPv6 testing this week.

Thanks in advance

Quoted 1 line

I would be nice to change the IPv6 address print format from %pI6 to %pI6c to get a more compact debug output.

Yes, may be in following cleanup patches because the
IPVS debugging needs improvement.

Regards

--
Julian Anastasov <[email protected]>

maintainer
#3 lore raw
Quoted 8 lines · Julian Anastasov

Hello,

Quoted 3 lines · Hans Schillstrom
Quoted 2 lines

Not tested: IPv6. I'll need help here from people with IPv6 setups.

Quoted 8 lines
Quoted 1 line

I can help you with some IPv6 testing this week.

Thanks in advance

Quoted 1 line

I would be nice to change the IPv6 address print format from %pI6 to %pI6c to get a more compact debug output.

Yes, may be in following cleanup patches because the
IPVS debugging needs improvement.

Hi,

I am happy with this series.
Do either of you have any objections in me sending
it to Patrick for merging. The merge window is now open,
but hopefully we can still get this into 2.6.37-rc1 if we move quickly.

#4 lore raw
Quoted 18 lines · HOn Thursday 21 October 2010 11:21:14 Simon Horman wrote:
Quoted 8 lines · Julian Anastasov

Hello,

Quoted 3 lines · Hans Schillstrom
Quoted 2 lines

Not tested: IPv6. I'll need help here from people with IPv6 setups.

Quoted 8 lines
Quoted 1 line

I can help you with some IPv6 testing this week.

Thanks in advance

Quoted 1 line

I would be nice to change the IPv6 address print format from %pI6 to %pI6c to get a more compact debug output.

Yes, may be in following cleanup patches because the
IPVS debugging needs improvement.

Quoted 7 lines

Hi,

I am happy with this series.
Do either of you have any objections in me sending
it to Patrick for merging. The merge window is now open,
but hopefully we can still get this into 2.6.37-rc1 if we move quickly.

Hi,
I'm also happy with it, a basic sanity check for IPv6 performed

--
Regards
Hans Schillstrom <[email protected]>

maintainer
#5 lore raw
Quoted 21 lines · Hans Schillstrom
Quoted 20 lines · HOn Thursday 21 October 2010 11:21:14 Simon Horman wrote:
Quoted 8 lines · Julian Anastasov

Hello,

Quoted 3 lines · Hans Schillstrom
Quoted 2 lines

Not tested: IPv6. I'll need help here from people with IPv6 setups.

Quoted 8 lines
Quoted 1 line

I can help you with some IPv6 testing this week.

Thanks in advance

Quoted 1 line

I would be nice to change the IPv6 address print format from %pI6 to %pI6c to get a more compact debug output.

Yes, may be in following cleanup patches because the
IPVS debugging needs improvement.

Hi,

Quoted 7 lines
Quoted 5 lines

I am happy with this series.
Do either of you have any objections in me sending
it to Patrick for merging. The merge window is now open,
but hopefully we can still get this into 2.6.37-rc1 if we move quickly.

Hi,
I'm also happy with it, a basic sanity check for IPv6 performed

Thanks, I have sent a pull request to Patrick which includes these changes.

author maintainer
#6 lore raw

Hello,

Quoted 16 lines · Simon Horman
Quoted 16 lines
Quoted 16 lines
Quoted 8 lines
Quoted 1 line

I can help you with some IPv6 testing this week.

Thanks in advance

Quoted 1 line

I would be nice to change the IPv6 address print format from %pI6 to %pI6c to get a more compact debug output.

Yes, may be in following cleanup patches because the
IPVS debugging needs improvement.

Hi,

I am happy with this series.
Do either of you have any objections in me sending
it to Patrick for merging. The merge window is now open,
but hopefully we can still get this into 2.6.37-rc1 if we move quickly.

Quoted 4 lines
Quoted 2 lines

Hi,
I'm also happy with it, a basic sanity check for IPv6 performed

Thanks, I have sent a pull request to Patrick which includes these changes.

Thanks to Hans for testing the IPv6 part and to you
for sending all 12+1 patches! I'm too slow today :)

Regards

--
Julian Anastasov <[email protected]>

maintainer
#7 lore raw
Quoted 21 lines · Julian Anastasov

Hello,

Quoted 16 lines · Simon Horman
Quoted 16 lines
Quoted 16 lines
Quoted 8 lines
Quoted 1 line

I can help you with some IPv6 testing this week.

Thanks in advance

Quoted 1 line

I would be nice to change the IPv6 address print format from %pI6 to %pI6c to get a more compact debug output.

Yes, may be in following cleanup patches because the
IPVS debugging needs improvement.

Hi,

I am happy with this series.
Do either of you have any objections in me sending
it to Patrick for merging. The merge window is now open,
but hopefully we can still get this into 2.6.37-rc1 if we move quickly.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Hi,
I'm also happy with it, a basic sanity check for IPv6 performed

Thanks, I have sent a pull request to Patrick which includes these changes.

Thanks to Hans for testing the IPv6 part and to you
for sending all 12+1 patches! I'm too slow today :)

No problem, I have slow days too :-)

It helped that I was sitting in the same room as both Patrick McHardy and Dave Miller at the Netfilter Workshop at the time.