New: ipsec icmp and udp works, tcp doesn't work
Subsystems (3)
Begin forwarded message:
Date: Sat, 03 Jun 2017 06:25:05 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 195969] New: ipsec icmp and udp works, tcp doesn't work
https://bugzilla.kernel.org/show_bug.cgi?id=195969
Bug ID: 195969
Summary: ipsec icmp and udp works, tcp doesn't work
Product: Networking
Version: 2.5
Kernel Version: 4.11.3-1-ARCH
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Other
Assignee: [email protected]
Reporter: [email protected]
Regression: NoA few days ago I updated to 4.11.3-1-ARCH. After that my VPN access to our corporate network was broken.
The connection is established and I can use UDP (i.e. DNS) and ICMP. All TCP connections I tried (ssh, smb, http...) failed.
On the AUR page "MartinDiehl commented on 2017-05-25 19:57" the same error.
https://aur.archlinux.org/packages/strongswan/
And I found a bug report on redhat bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1458222
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
Steffen Klassert
maintainerCc the reporter.
Quoted 28 lines · Stephen Hemminger
Begin forwarded message:
Date: Sat, 03 Jun 2017 06:25:05 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 195969] New: ipsec icmp and udp works, tcp doesn't workhttps://bugzilla.kernel.org/show_bug.cgi?id=195969
Bug ID: 195969 Summary: ipsec icmp and udp works, tcp doesn't work Product: Networking Version: 2.5 Kernel Version: 4.11.3-1-ARCH Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Other Assignee: [email protected] Reporter: [email protected] Regression: No
Quoted 5 lines
A few days ago I updated to 4.11.3-1-ARCH. After that my VPN access to our corporate network was broken.
The connection is established and I can use UDP (i.e. DNS) and ICMP. All TCP connections I tried (ssh, smb, http...) failed.
Is this with UDP encapsulation?
If so, you could try this patch:
Subject: [PATCH v4.11] esp4: Fix udpencap for local TCP packets.
Locally generated TCP packets are usually cloned, so we do skb_cow_data() on this packets. After that we need to reload the pointer to the esp header. On udpencap this header has an offset to skb_transport_header, so take this offset into account.
This is a backport of:
commit 0e78a87306a ("esp4: Fix udpencap for local TCP packets.")
--- net/ipv4/esp4.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
net/ipv4/esp4.c +4 -1
@@ -212,6 +212,7 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb)u8 *iv;u8 *tail;u8 *vaddr; +int esph_offset;int blksize;int clen;int alen;
@@ -392,12 +393,14 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb) } cow: + esph_offset = (unsigned char *)esph -skb_transport_header (skb); + err =skb_cow_data (skb, tailen, &trailer);if (err <0 ) goto error; nfrags = err; tail =skb_tail_pointer (trailer); - esph =ip_esp_hdr (skb); + esph = (struct ip_esp_hdr *)(skb_transport_header (skb) + esph_offset); skip_cow:esp_output_fill_trailer (tail, tfclen, plen, proto);
Signature · 1 line
2.7.4