lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 12 Nov 2009 07:15:53 +0800
From:	Herbert Xu <herbert@...dor.apana.org.au>
To:	"ramaswamy.bm" <ramaswamy.bm@...baledgesoft.com>
Cc:	kaber@...sh.net, arrow.jianqing@...il.com,
	linux-kernel@...r.kernel.org
Subject: Re: Subject: RE: port bound SAs : ip xfm state command  ?

On Wed, Nov 11, 2009 at 01:17:25PM +0530, ramaswamy.bm wrote:
> 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  

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,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists