Subject: RE: port bound SAs : ip xfm state command ?
What is the command to write port based SA's using ip xfrm state.
iam using below command for writing SA's : ip xfrm state add src 192.168.1.20 dst 192.168.1.5 proto esp spi 0x354cb04b mode tunnel reqid 16385 replay-window 32 auth sha1 0xecf02a5cf6568556e1bdcd961c7ec3f92afd01cc enc aes 0x5c0cfa9672ce67ba545b593076dfb278 sel src 0.0.0.0/0 dst 0.0.0.0/0
Thanks in advance Ram
he pfkey / xfrm interface throws them away
i fixed racoon to send the port numbers and they were ignored
-----Original Message-----
From: Patrick McHardy [mailto:[email protected]] Sent: Tuesday, January 27, 2009 9:12 AM
To: Paul Moore
Cc: David Miller; [email protected]
Subject: Re: port bound SAs
Quoted 1 line · Paul Moore
i did exactly that (in the original message) and it makes this test
case
Quoted 6 lines
work but as I point out
a) it should not be necessary b) i get more SAs than I need
c) i can no longer say that a SA is optional (this is an error in the pfkey/xfrm/racoon interface to combine two orthogonal concepts)
d) I am not convinced that I have resolved all cases. Needs more
testing
IIRC I tested port selectors in SA a few years ago using "ip xfrm"
and they worked fine. The xfrm interface doesn't ignore them (copy_from_user_state()), I think the pfkey interface also doesn't.
Please try configuring them manually using "ip xfrm state", I'm pretty sure the bug is actually in racoon.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · ramaswamy.bm
What is the command to write port based SA's using ip xfrm state.
iam using below command for writing SA's : ip xfrm state add src 192.168.1.20 dst 192.168.1.5 proto esp spi
0x354cb04bmode tunnel reqid 16385 replay-window 32 auth sha10xecf02a5cf6568556e1bdcd961c7ec3f92afd01ccenc aes0x5c0cfa9672ce67ba545b593076dfb278sel src 0.0.0.0/0 dst 0.0.0.0/0
Usually you don't want port-based SAs but port-based policies. The syntax is described in "ip xfrm policy help". Look for sport and dport.
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt