Chapter 6
Advanced Features
6.4.4 Attach the vpnclient entity to the peer entity
modify the peer parameters
Example
The :ipsec peer modify name=peer1 client/server=client1 command attaches the previously defined vpnclient entity to the corresponding peer.
In this example vpnclient1 is attached to peer1:
[ipsec peer]=>modify name = peer1 [remoteaddr] = 20.50.10.2
[backupaddr] = [exchmode] = main [localid] = (addr)20.60.10.2 [remoteid] = (addr)20.50.10.2 [phyif] = DIALUP_PPPOE
[descr] = AES_MD5 [auth] = secret1 [client/server] = client1 [options] =
:ipsec peer modify name=peer1 client/server=client1 [ipsec peer]=>
The result is shown when listing the peer entities:
[ipsec peer]=>list |
|
[peer1] | : 20.50.10.2 |
Remote Address | |
Backup Remote Address: <unset> | |
Physical IF | : DIALUP_PPPOE |
Exchange Mode | : main |
Local Identifier | : (addr)20.60.10.2 |
Remote Identifier | : (addr)20.50.10.2 |
Descriptors | : AES_MD5 |
Authentication | : secret1 |
Client/Server | : VPN Client Descriptor: client1 |
Options | : <unset> |
[ipsec peer]=>
181 | |
|