Skip to contentSkip to conversation

IPSEC problems with GRE.

DISCUSSION Julian Blake Kongslie 3 participants 5 messages Jun 16, 2003 – Jun 17, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi there.

I've been playing around with IPSec, and I came across a problem with encrypting data sent directly by the kernel.

Specifically, attempts to encrypt a GRE or IPIP tunnel with ipsec in transport mode result in one of:
1) No data sent.
2) Data sent, ignored by peer.
3) Kernel panic, with no SysRq.

Numbers 1 and 2 might be configuration problems on my part, but I have other ipsec setups running fine, and can't see anything different for these. Number 3 is a big problem.

This is on 2.5.70. No third-party modules or other tainting. I can provide .configs on request.

I don't have the panic copied down, but I can reproduce it and get a copy if required.

I know I could certainly accomplish what I want with ipsec tunnel mode, but I'm just playing around, and it's a kernel bug in any case.

Thanks.

Signature · 1 line
Julian Blake Kongslie <[email protected]>
#1 lore raw
Quoted 10 lines · Julian Blake Kongslie

Specifically, attempts to encrypt a GRE or IPIP tunnel with ipsec in transport mode result in one of:
1) No data sent.
2) Data sent, ignored by peer.
3) Kernel panic, with no SysRq.

Numbers 1 and 2 might be configuration problems on my part, but I have other ipsec setups running fine, and can't see anything different for these. Number 3 is a big problem.

Quoted 5 lines

This is on 2.5.70. No third-party modules or other tainting. I can provide .configs on request.

I don't have the panic copied down, but I can reproduce it and get a copy if required.

Please post the oops (preferrably to the netdev mailing list).

Also, which system panics, and what direction is the traffic when this happens? (i.e. is it happening during tunnel encapsulation or decapsulation?)

- James

Signature · 2 lines
James Morris
<[email protected]>
#2 lore raw
In reply to Julian Blake Kongslie
Quoted 11 lines · Julian Blake Kongslie

Hi there.

I've been playing around with IPSec, and I came across a problem with encrypting data sent directly by the kernel.

Specifically, attempts to encrypt a GRE or IPIP tunnel with ipsec in transport mode result in one of:
1) No data sent.
2) Data sent, ignored by peer.
3) Kernel panic, with no SysRq.

Quoted 3 lines

Numbers 1 and 2 might be configuration problems on my part, but I have other ipsec setups running fine, and can't see anything different for these. Number 3 is a big problem.

I've not been able to reproduce the panic, but there is a potential issue with path mtu which could explain (1) and (2): the transport mode SAs between the gateways are not aware of the gre tunnel.

You need to lower the mtu on the gre tunnel at each end to take the ipsec overhead into account. This will cause the gateways to generate appropriate icmp pmtu messages.

This is handled automatically for tunnel mode ipsec configurations.

- James

Signature · 2 lines
James Morris
<[email protected]>
#3 lore raw

Hello!

Quoted 1 line
Quoted 1 line

3) Kernel panic, with no SysRq.

Please, send backtrace yet. And explain, what is "with no SysRq". :-)

Alexey

#4 lore raw

Re: IPSEC problems with GRE. [RESOLVED]

In reply to James Morris

Thanks for the help, but the problem wasn't with the tunnel at all. One of the machines had a bad memory card, and upon changing that the issue disappeared. All now seems to be working well.

I hadn't noticed the MTU issue before, but thanks for that, too.

Signature · 1 line
Julian Blake Kongslie <[email protected]>