IPSEC problems with GRE.
Subsystems (2)
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]>
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]>
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]>
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
Re: IPSEC problems with GRE. [RESOLVED]
In reply to James MorrisThanks 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]>