IPsec VPN
IPsec VPN
Introduction to IPsec
IPsec works by encrypting IP packets and authenticating the source of these packets.
The security is achieved through:
IPsec Protocols
● Authentication Header (AH): Provides integrity and authentication but does not
encrypt data.
● Encapsulating Security Payload (ESP): Encrypts and authenticates packets,
ensuring confidentiality.
● Security Association (SA): Manages encryption keys and protocols (e.g.,
Internet Key Exchange - IKE).
IPsec Modes
● Tunnel Mode: Encrypts both the payload and original IP header, often used
between VPN gateways.
● Transport Mode: Encrypts only the payload, leaving the IP header intact, used
for end-to-end security.
Before configuring the IPsec VPN, ensure that the router has the necessary security
features enabled. Install the securityk9 license using the following command:
Router1# license install usbflash0:securityk9.lic
Router1# reload
Router1
Router1# interface Serial0/1/0
Router1# ip address 10.1.1.1 255.255.255.252
Router1# no shutdown
ISP Router
ISP-router# interface Serial0/1/0
ISP-router# ip address 10.1.1.2 255.255.255.252
ISP-router# no shutdown
Router2
Router2# interface Serial0/1/1
Router2# ip address 15.1.1.1 255.255.255.252
Router2# no shutdown
Router1
Router1# ip route 0.0.0.0 0.0.0.0 10.1.1.2
Router2
Router1# ip route 0.0.0.0 0.0.0.0 15.1.1.2
ISP Router
Router2# ip route 172.16.1.0 255.255.255.0 15.1.1.1
Router2# ip route 192.168.1.0 255.255.255.0 10.1.1.1
Conclusion