You are here:Home > Best VPN > IPSec VPN Proxy Detailed Configuration Tutorial

IPSec VPN Proxy Detailed Configuration Tutorial

Summary:Environment: The interface addresses have been configured, and the routing has also been configured. Both parties can communicate with each other nowT…
horizonVPN Official website sandVPN Official website VPNhood Official website hailianVPN Official website
GoduckVPN Official website Fast Wind VPN Official website Fast Orange VPN Official website(Recommend) NetShekanVPN Official website

This book is available as an e-book in EPUB format

PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email

Email: shuxueha@outlook.com

PayPal: https://paypal.me/zhipinglei

You can also scan the PayPal QR code below to sponsor

You can also purchase this book on Amazon: click to enter the Amazon official website

Environment: The interface addresses have been configured, and the routing has also been configured. Both parties can communicate with each other now

Two algorithms for key authentication: md5 and sha1

Two encryption algorithms: DES and 3DES

There are three types of IPsec transmission modes:

AH validation parameters: ah-md5-hmac (md5 validation), ah-sha hmac (sha1 validation)

ESP encryption parameters: esp-des (des encryption), esp-3des (3des encryption), esp-null (do not encrypt data)

ESP validation parameters: esp-md5-hma (md5 validation), esp-sha hmac (using sha1 validation)

1. Enable IKE negotiation

RouterA (config) # crypto isakmp policy 1 Establish IKE negotiation policy (1 is policy number 1-1000

The smaller, the higher the priority

RouterA (config isakmap) # hash md5 key authentication algorithm

RouterA (config isakmap) # authentication pre share tells the route to use a pre shared key

RouterA (config) # crypto isakmp key 123456 address 20.20.20.22 (123456 is the shared secret set)

20.20.22 is the IP address of the other end

Address).

routerB(config)#crypto isakmp policy 1

routerB(config-isakmap)#hash md5

routerB(config-isakmap)#authentication pre-share

RouterB (config) # crypto isakmp key 123456 address 20.20.20.21 (except for the configuration of routes B and A here)

The IP address of the other end has changed to 20.20.20.21, and everything else must be the same.

2. Configure IPSec related parameters

RouterA (cnfog) # crypto IPsec transform set test ah-md5-hamc esp-des (the name of the test transmission mode)

Name it. Ah-md5-hamc esp-des represents the verification and addition used in the transmission mode

Confidential parameters).

routerA(config)#acess-list 101 permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255

(Define which addresses have encrypted or unencrypted messages)

routerB(config)#crypto ipsec transform-set test ah-md5-hamc esp-des

routerB(config)#acess-list 101 permit ip 192.168.2.0 0.0.0.255 192.168.1.0 0.0.0.255

(The configuration of routers B and A is the same except for the source and destination IP addresses that have changed here.)

3. Set up a crypto map (with the purpose of integrating IKE negotiation information and IPSec parameters into one name)

RouterA (config) # crypto map testmap 1 ipsec isakmp (testmap: the name given to the crypto map).

1: Priority. IPsec isakmp: indicates that this IPSec link uses IKE auto negotiation)

RouterA (config crypto map) # set peer 20.20.22 (specify this VPN link, the IP address of the other end).

RouterA (config crypto map) # set transform set test (name of IPSec transport mode)

RouterA (config crypto map) # match address 101 (ACL list number defined above)

routerA(config)#crypto map testmap 1 ipsec-isakmp

RouterA (config crypto map) # set peer 20.20.20.21 (the configuration of route A is only different from the IP address of the other end here)

routerA(config-crypto-map)#set transform-set test

routerA(config-crypto-map)#match address 101

4. Apply the name of the crypto map to the port

RouterA (config) # enter s0/0 (interface to enter the application VPN)

RouterA (config if) # crypto map testmap (testmap: name of crypto map)

B route is exactly the same as A route

View VPN configuration

View Security Alliance (SA)

Router#show crypto ipsec sa

Display all configurations within the crypto map

router#show crypto map

View priority

router#show crypto isakmp policy


High-speed VPN Fast VPN Preferred Accelerator VPN Reliable VPN
High quality VPN Old fashioned VPN Stable VPN(Recommend) Smooth VPN
Share with Friends: