ipsec_E_Inc_Req.sh

Go to the documentation of this file.
00001 #!/bin/bash
00002 #
00003 # UserEndpoint SA for Incoming Requests ( US <- PC )
00004 #
00005 # \author Dragos Vingarzan vingarzan -at- fokus dot fraunhofer dot de
00006 #
00007 
00008 ue=$1
00009 port_us=$2
00010 pcscf=$3
00011 port_pc=$4
00012 
00013 spi_us=$5
00014 
00015 ealg=$6
00016 ck=$7
00017 alg=$8
00018 ik=$9
00019 
00020 if [ "$6" = "null" ] 
00021 then
00022     ck=""
00023 fi
00024 
00025 
00026 setkey -c << EOF
00027 spdadd $pcscf/32[$port_pc] $ue/32[$port_us] tcp -P in ipsec esp/transport//require ;
00028 spdadd $pcscf/32[$port_pc] $ue/32[$port_us] udp -P in ipsec esp/transport//require ;
00029 add $pcscf $ue esp $spi_us -m transport -E $ealg $ck -A $alg $ik ;
00030 EOF
00031 

Generated on Thu Oct 23 04:14:38 2008 for Open IMS Core CSCFs by  doxygen 1.5.2