
Appendix A: IPSec Configuration File
126
NetLinx Integrated Controllers- WebConsole & Programming Guide (FMv3)
ikeSetProp
ikeAddPeerAuth (Cont.)
Rule Value
(Cont.)
• localKeyPassword - The password for the local peer's key. Specify NOPASS if there is no
password. Note that the maximum password length is
MAX_PRIVATE_KEY_PASSWORD_LENGTH.
• localCertificate - The filename where the local peer's certificate is stored.
• peerCertificate - The filename where the remote peer's certificate is locally stored. If
PEER_CERT is specified, any certificate payload(s) received from the remote IKE peer
during IKE phase 1 negotiation will be ignored and the certificate specified in
peerCertificate will be used to authenticate the remote peer.
All keys and certificates are stored on the local file system, in the directory set by the project
facility parameter IKE_CERT_PATH.
EXAMPLES Using a pre-shared key for IPv4:
ikeAddPeerAuth=100.100.100.4,100.100.100.1,mm_grp2,NOPFS,PSK,thisisatest
Using a pre-shared key for IPv6:
ikeAddPeerAuth=3ffe:2::2,3ffe:1::2,mm_grp2,NOPFS,PSK,thisisatest
Using certificates for IPv4:
ikeAddPeerAuth=192.168.1.36,192.168.1.35,ph1_g1_1,NOPFS,RSA,local_key.key,
mypassword,local_cert.crt,PEER_CERT,peer_cert.crt
ikeAddPeerAuth=192.168.1.36,192.168.1.35,ph1_g1_1,NOPFS,RSA,
local_key.key,mypassword,local_cert.crt
ikeAddPeerAuth=192.168.1.36,192.168.1.35,ph1_g1_1,NOPFS,RSA,
local_key.key,NOPASS,local_cert.crt
Config String
Format
peerIpAddress,interfaceIpAddress,proposalName,authenticationMethod,
authenticationInfo
Pre-defined
proposal
names
The following are proposal names already defined inside the AMX Firmware and available for
use in the ikeAddPeerAuth configuration:
mm_g2=mm_3des_sha,mm_3des_md5,mm_des_sha,mm_des_md5
Attributes: DHGROUP=G2, LIFETIME=28800 sec
mm_g1=mm_3des_sha,mm_3des_md5,mm_des_sha,mm_des_md5\n"
Attributes: DHGROUP=G1, LIFETIME=28800 sec
mm_prop=mm_des_md5
Attributes: DHGROUP=G2, LIFETIME=300 sec
mm_prop1= mm_des_md5
Attributes: DHGROUP=G2, LIFETIME=3600 sec
Additional IKE proposals and attributes can be created with the next two API’s.
ikeSetProp
NAME ikeSetProp – create a Phase 1 proposal
SYNOPSIS
ikeSetProp=configString
DESCRIPTION This rule creates a Phase 1 proposal with previously defined Phase 1 transform names.
Rule Value
Rule Value = configString
A string formatted as follows:
proposalName,transformName,[transformName][,transformName]...
where
- proposalName is a unique name for a Phase 1 proposal.
- transformName is an existing Phase 1 transform name, defined via ikeSetXform.
EXAMPLES
ikeSetProp=mm_group2,mm_3des_sha,mm_3des_md5,mm_des_sha,mm_des_md5
Config String
Format
proposalName,transformName,[transformName][,transformName]…
Pre-defined
proposal
names
A transform consists of an encryption algorithm and a hash algorithm. The first value is the
encryption, the second the hash.
mm_3des_sha=3DES,SHA-1
mm_3des_sha2_256=3DES,SHA2-256
mm_3des_sha2_384=3DES,SHA2-384
mm_3des_sha2_512=3DES,SHA2-512
mm_3des_md5=3DES,MD5
Comentários a estes Manuais