Skip to content

Transparent Proxying Patches, Take 4

KOVACS Krisztian netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Loosen source address check on IPv4 outputinclude/net/flow.h net/ipv4/route.c+14 -70 replies
2/13Implement IP_TRANSPARENT socket optioninclude/linux/in.h include/net/inet_sock.h include/net/inet_timewait_sock.h +3 more+18 -30 replies
3/13Allow binding to non-local addresses if IP_TRANSPARENT is setnet/ipv4/af_inet.c+1 -10 replies
4/13Conditionally enable transparent flow flag when connectinginclude/net/route.h+4 -00 replies
5/13Handle TCP SYN+ACK/ACK/RST transparencyinclude/net/inet_sock.h include/net/ip.h net/ipv4/inet_connection_sock.c +3 more+29 -50 replies
6/13Port redirection support for TCPinclude/net/inet_sock.h include/net/tcp.h net/ipv4/inet_connection_sock.c +2 more+6 -20 replies
7/13Export UDP socket lookup functioninclude/net/udp.h net/ipv4/udp.c+12 -00 replies
8/13Split Netfilter IPv4 defragmentation into a separate moduleinclude/net/netfilter/ipv4/nf_defrag_ipv4.h net/ipv4/netfilter/Kconfig net/ipv4/netfilter/Makefile +2 more+110 -533 replies
9/13iptables tproxy coreinclude/net/netfilter/nf_tproxy_core.h net/netfilter/Kconfig net/netfilter/Makefile +1 more+141 -00 replies
10/13iptables socket matchnet/netfilter/Kconfig net/netfilter/Makefile net/netfilter/xt_socket.c+96 -01 reply
11/13iptables TPROXY targetinclude/linux/netfilter/xt_TPROXY.h net/netfilter/Kconfig net/netfilter/Makefile +1 more+125 -01 reply
12/13Don't lookup the socket if there's a socket attached to the skbnet/ipv4/tcp_ipv4.c+8 -00 replies
13/13Don't lookup the socket if there's a socket attached to the skbnet/ipv4/udp.c+8 -00 replies

Reviews trailers per patch

3 of 13 patches have a Reviewed-by or Acked-by.

PatchPatrick McHardy
1/13A-b
2/13A-b
3/13A-b
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/13] Transparent Proxying Patches, Take 4

Hi Patrick,

Here's the next round of tproxy patches, hopefully fixing problems which came up last time I've posted these patches[1].

I'd like to thank you and Jan Engelhardt the huge help you've provided. (Jan himself did a lot of fixes/cleanups!)

The most important changes relative to the previous versions[1] are:

* the patch implementing the propagation of IP_TRANSPARENT to routing output now does not change the signature of request_sock_opt.send_ack but uses a flag in inet_request_sock itself
* TCP port redirection support patch
adds loc_port to struct inet_request_sock unconditionally
* TPROXY target is an xt_* target now and has proper 32 bit mark values in the target info structure

Additionally there are code cleanups all over the place (thanks Jan).

References:
[1] http://marc.info/?l=netfilter-devel&m=119118672703285&w=2

Signature · 1 line
KOVACS Krisztian