Cisco Router as a
   VPN Server
Agenda
• VPN
• Categories of VPN
    – Secure VPNs
    – Trusted VPN
•   Hardware / Software Requirement
•   Network Diagram
•   Basic Router Configuration
•   Configuring AAA Server
•   Virtual Template
•   VPDN
•   IPSec
What is VPN     ?
 A virtual private network (VPN) is a
 computer network that is
 implemented in an additional logical
 layer (overlay) on top of an existing
 network. It has the purpose of
 creating a private scope of computer
 communications or providing a
 secure extension of a private
 network into an insecure network
 such as the Internet.
                    http://en.wikipedia.org/wiki/Virtual_private_network
Categories of VPN
 VPN technologies may be classified
 by many standards.

 Two broad categories of VPN are:
 – Secure VPNs
 – Trusted VPNs
Secure VPNs

• Provide mechanisms for authentication of the
  tunnel endpoints and encryption of the traffic.
• Provide remote access facilities to employees.
• Connects multiple networks together securely
  using the Internet to carry the traffic.
• Secure VPN protocols include IPSec, SSL or
  PPTP (with MPPE).
• Doesn't provide Qos or routing.
Trusted VPNs

• Created by carriers and large organizations on
  large core networks.
• Provides Quality of Service.
• Trusted VPN protocols include MPLS, ATM or
  Frame Relay.
• Do not provide security features such as data
  confidentiality through encryption.
Hardware / Software Req
• Cisco integrated services router with
  12.4 advance enterprise IOS.



• Ethernet Cables (Cross Over).
• PCs / Laptops.
• Cisco VPN Client (v5.0.06.0110).
• Cisco Security Device Manager (SDM
  for GUI based configuration).
• Java Runtime Environment (for SDM).
Network Diagram
Basic Router Configuration

• Creating Local Login Users for VPN.
Router(config)# username [loginID] privilege [1-15] password 0 [password]

• Configure Fast Ethernet Interfaces
Router#config t
Router(config)#int f0/0
Router(config-if)# description Internal LAN (192.168.0.0/24)
Router(config-if)#ip address 192.168.0.254 255.255.255.0
Router(config-if)#no shut
Router(config)#int f0/1
Router(config-if)# description VPN INT (10.1.1.0/24)
Router(config-if)#ip address 10.1.1.254 255.255.255.0
Router(config-if)#no shut
Basic Router Configuration (contd)

• Configure Routing Protocol
Router#config t
Router(config)#router eigrp 1
Router(config-router)#network 192.168.0.0
Router(config-router)#network 172.16.1.0
Router(config-router)#network 10.0.0.0


• IP Pool
Router(config)# ip local pool ip_pool 172.16.1.10 172.16.1.20
Configuring AAA

• aaa-model
Enables the authentication, authorization, and accounting (AAA) access control
   model.

Router(config)#aaa new-model

• aaa session-id [common | unique]
Ensures that all session identification (ID) information that is sent out for a given
   call will be made identical. The default behavior is common.

Router(config)#aaa session-id common
Configuring AAA (contd)

• aaa authentication login [list-name] local
Sets (AAA) authentication at login. ‘Local’ keyword tells the AAA to use local
   username database for authentication.

Router(config)# aaa authentication login vpn_xauth local


• aaa authorization network [list-name] local
Creates a list for authorization of all network-related service requests . ‘Local’
   keyword tells the AAA to use local username database for authentication

Router(config)# aaa authorization network vpn_group local
Virtual Template

• A virtual template interface is a logical entity that
  are created, configured dynamically, used, and
  then freed when no longer needed.
• Requires the same amount of memory as a serial
  interface.
• Cisco routers support a maximum of 300 virtual
  interfaces.
Benifts of Virtual Template

• For easier maintenance, allows customized
  configurations to be predefined.
• For scalability, allows interface configuration to
  be separated from physical interfaces.
• For consistency and configuration ease, allows the
  same predefined template to be used for all
  users.
• For efficient router operation, frees the virtual
  access interface memory for another dial-in use
Configuring Virtual Template

Router#config t
Router(config)# interface Virtual-Template1
Router(config-if)# ip unnumbered FastEthernet0/1
Router(config-if)# no peer default ip address
Router(config-if)# ppp encrypt mppe auto required
Router(config-if)# ppp authentication ms-chap ms-chap-v2
VPDN

• A virtual private dial−up network (VPDN) allows a
  private network dial in service to span across to
  remote access servers (defined as the L2TP Access
  Concentrator [LAC]).
• LAC forwards the PPP session on to an L2TP
  Network Server (LNS). The LNS then authenticates
  the user and starts the PPP negotiation.
• VPDN uses the Layer 2 Forwarding protocol (L2F)
  which permits the tunneling of link level frames
Configuring VPDN

• enable vpdn
Enables virtual private networking.

Router(config)#enable vpdn


• vpdn-group [group name]
Ceates a vpdn group which specifies the protocol, dialup mode and interface

Router(config)# vpdn-group VPN_Server
Router(config)# accept-dialin
Router(config)# protocol pptp
Router(config)# virtual-template 1
IPSec

• Internet Protocol Security (IPsec) is a protocol
  suite for securing Internet Protocol (IP)
  communications.
• IPsec uses the following protocols to perform
  various functions
   Internet key exchange (IKE and IKEv2) to set up a security
    association (SA)
   Authentication Header (AH) to provide connectionless
    integrity.
   Encapsulating Security Payload (ESP) to provide
    confidentiality.
Configuring IPSec based VPN

• crypto isakmp policy [priority]
Defines an Internet Key Exchange (IKE) policy. IKE policies define a set of
   parameters to be used during the IKE negotiation

Router(config)#crypto isakmp policy 1
Router(config-crypto-isakmp)# encr 3des
Router(config-crypto-isakmp)# authentication pre-share
Router(config-crypto-isakmp)# group 2
Configuring IPSec based VPN (contd)

• sh crypto isakmp policy
Below command list the policy created as a result of last command (previous slide).

Router#sh crypto isakmp policy
Global IKE policy
Protection suite of priority 1
    encryption algorithm: Three key triple DES
    hash algorithm:        Secure Hash Standard
    authentication method: Pre-Shared Key
    Diffie-Hellman group: #2 (1024 bit)
    lifetime:         86400 seconds, no volume limit
Configuring IPSec based VPN (contd)

• crypto isakmp client configuration group [name]
Specify which group’s policy profile will be defined by defining key and ip address
   pool.

Router(config)#crypto isakmp client configuration group ipsec_group
Router(config-crypto-isakmp )# key ipsec
Router(config-crypto-isakmp )# pool ip_pool
Router(config-crypto-isakmp )# netmask 255.255.255.255
Configuring IPSec based VPN (contd)

• crypto ipsec transform-set
A transform set specifies the encryption and authentication algorithms used to
    protect the data in the VPN Tunnel.

Router(config)#crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
Router(config-crypto-ipsec )#crypto dynamic-map DYNMAP 1
Router(config-crypto-ipsec )#set transform-set ESP-3DES-SHA

Transform Set:
   Name:ESP-3DES-SHA1
   ESP Encryption: ESP_3DES
   ESP Integrity: ESP_SHA_HMAC
Configuring IPSec based VPN (contd)

• crypto map
Creates a crypto profile that provides a template for configuration.

Router(config)#crypto map CMAP client authentication list vpn_auth
Router(config)#crypto map CMAP isakmp authorization list vpn_group
Router(config)#int f0/1
Router(config-if)#crypto map CMAP
Live
 Demonstration

More Related Content

PPT
Cisco Router As A Vpn Server
PPT
Vpn(4)
PDF
VPN Theory
PPTX
Types of VPN
PPTX
How Secure are IPsec and SSL VPN encryptions
PDF
VPN - Virtual Private Network
PPT
Tunnel & vpn1
PDF
Npppd: easy vpn with OpenBSD
Cisco Router As A Vpn Server
Vpn(4)
VPN Theory
Types of VPN
How Secure are IPsec and SSL VPN encryptions
VPN - Virtual Private Network
Tunnel & vpn1
Npppd: easy vpn with OpenBSD

What's hot (20)

PPTX
VPN presentation
PPTX
VPN Network
PPT
Vpn networks kami
PPTX
Virtual private network(vpn)
PPT
CCNA Network Services
PPT
PPT
Vpn Virtual Private Network
PPTX
Mikrotik Tutorial
PPTX
SITE TO SITE IPSEC VPN TUNNEL B/W CISCO ROUTERS
PDF
IoT Communication Protocols, Socket Programming with Python, MQTT & HTTP
PPT
Vpn " Virtual Private Network "
PPT
Virtual Private Network main
PDF
MikroTik Firewall : Securing your Router with Port Knocking
PDF
1ip Tunneling And Vpn Technologies 101220042129 Phpapp01
PPTX
L2 tp., ip sec
PDF
Review on Protocols of Virtual Private Network
PDF
Ip tunneling and vpns
PPTX
Iot protocols seminar
PDF
IoT Communication Protocols
VPN presentation
VPN Network
Vpn networks kami
Virtual private network(vpn)
CCNA Network Services
Vpn Virtual Private Network
Mikrotik Tutorial
SITE TO SITE IPSEC VPN TUNNEL B/W CISCO ROUTERS
IoT Communication Protocols, Socket Programming with Python, MQTT & HTTP
Vpn " Virtual Private Network "
Virtual Private Network main
MikroTik Firewall : Securing your Router with Port Knocking
1ip Tunneling And Vpn Technologies 101220042129 Phpapp01
L2 tp., ip sec
Review on Protocols of Virtual Private Network
Ip tunneling and vpns
Iot protocols seminar
IoT Communication Protocols
Ad

Viewers also liked (8)

PPT
Vpn site to site
PPT
Vpn presentation
PPTX
VPN (virtual Private Network)
PPT
Design of a campus network
PPTX
Amazing simple facts
PPTX
The Science of Fun - Data-driven Game Development
PPT
Virtual private network
Vpn site to site
Vpn presentation
VPN (virtual Private Network)
Design of a campus network
Amazing simple facts
The Science of Fun - Data-driven Game Development
Virtual private network
Ad

Similar to Ciscorouterasavpnserver 100218045815-phpapp01 (20)

PPT
12 Understanding V P Ns
PPT
Acit Mumbai - understanding vpns
PPT
Vpnppt1884
PPTX
PPT
PPT
VPN presentation - moeshesh
PDF
Ip tunnelling and_vpn
PDF
VPN (virtual private network)
PPTX
ENSA_Module_8.pptx
PPTX
VPN & FIREWALL
PPTX
ENSA_Module_8.pptx_nice_ipsec_presentation
PPT
Vpnppt1884
PPTX
ENSA_Module_9 VPN NETWORK SITE TO SITE.pptx
PDF
IPsec vpn topology over GRE tunnels
PDF
csevpnppt-170905123948 (1).pdf
PPTX
Virtual Private Networks (VPN) ppt
PPT
Shradhamaheshwari vpn
PDF
A depth detail about vpn security
PPT
Virtual private networks by darshana viduranga
PDF
Configuring cisco site to site ip sec vpn with dynamic ip endpoint cisco routers
12 Understanding V P Ns
Acit Mumbai - understanding vpns
Vpnppt1884
VPN presentation - moeshesh
Ip tunnelling and_vpn
VPN (virtual private network)
ENSA_Module_8.pptx
VPN & FIREWALL
ENSA_Module_8.pptx_nice_ipsec_presentation
Vpnppt1884
ENSA_Module_9 VPN NETWORK SITE TO SITE.pptx
IPsec vpn topology over GRE tunnels
csevpnppt-170905123948 (1).pdf
Virtual Private Networks (VPN) ppt
Shradhamaheshwari vpn
A depth detail about vpn security
Virtual private networks by darshana viduranga
Configuring cisco site to site ip sec vpn with dynamic ip endpoint cisco routers

Recently uploaded (20)

PDF
Advancing precision in air quality forecasting through machine learning integ...
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PPTX
future_of_ai_comprehensive_20250822032121.pptx
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
DOCX
search engine optimization ppt fir known well about this
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPTX
Microsoft User Copilot Training Slide Deck
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PPTX
Module 1 Introduction to Web Programming .pptx
PPTX
MuleSoft-Compete-Deck for midddleware integrations
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
Comparative analysis of machine learning models for fake news detection in so...
Advancing precision in air quality forecasting through machine learning integ...
sustainability-14-14877-v2.pddhzftheheeeee
Data Virtualization in Action: Scaling APIs and Apps with FME
future_of_ai_comprehensive_20250822032121.pptx
Consumable AI The What, Why & How for Small Teams.pdf
Statistics on Ai - sourced from AIPRM.pdf
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
search engine optimization ppt fir known well about this
sbt 2.0: go big (Scala Days 2025 edition)
Microsoft User Copilot Training Slide Deck
Improvisation in detection of pomegranate leaf disease using transfer learni...
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
Module 1 Introduction to Web Programming .pptx
MuleSoft-Compete-Deck for midddleware integrations
The influence of sentiment analysis in enhancing early warning system model f...
Convolutional neural network based encoder-decoder for efficient real-time ob...
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Comparative analysis of machine learning models for fake news detection in so...

Ciscorouterasavpnserver 100218045815-phpapp01

  • 1. Cisco Router as a VPN Server
  • 2. Agenda • VPN • Categories of VPN – Secure VPNs – Trusted VPN • Hardware / Software Requirement • Network Diagram • Basic Router Configuration • Configuring AAA Server • Virtual Template • VPDN • IPSec
  • 3. What is VPN ? A virtual private network (VPN) is a computer network that is implemented in an additional logical layer (overlay) on top of an existing network. It has the purpose of creating a private scope of computer communications or providing a secure extension of a private network into an insecure network such as the Internet. http://en.wikipedia.org/wiki/Virtual_private_network
  • 4. Categories of VPN VPN technologies may be classified by many standards. Two broad categories of VPN are: – Secure VPNs – Trusted VPNs
  • 5. Secure VPNs • Provide mechanisms for authentication of the tunnel endpoints and encryption of the traffic. • Provide remote access facilities to employees. • Connects multiple networks together securely using the Internet to carry the traffic. • Secure VPN protocols include IPSec, SSL or PPTP (with MPPE). • Doesn't provide Qos or routing.
  • 6. Trusted VPNs • Created by carriers and large organizations on large core networks. • Provides Quality of Service. • Trusted VPN protocols include MPLS, ATM or Frame Relay. • Do not provide security features such as data confidentiality through encryption.
  • 7. Hardware / Software Req • Cisco integrated services router with 12.4 advance enterprise IOS. • Ethernet Cables (Cross Over). • PCs / Laptops. • Cisco VPN Client (v5.0.06.0110). • Cisco Security Device Manager (SDM for GUI based configuration). • Java Runtime Environment (for SDM).
  • 9. Basic Router Configuration • Creating Local Login Users for VPN. Router(config)# username [loginID] privilege [1-15] password 0 [password] • Configure Fast Ethernet Interfaces Router#config t Router(config)#int f0/0 Router(config-if)# description Internal LAN (192.168.0.0/24) Router(config-if)#ip address 192.168.0.254 255.255.255.0 Router(config-if)#no shut Router(config)#int f0/1 Router(config-if)# description VPN INT (10.1.1.0/24) Router(config-if)#ip address 10.1.1.254 255.255.255.0 Router(config-if)#no shut
  • 10. Basic Router Configuration (contd) • Configure Routing Protocol Router#config t Router(config)#router eigrp 1 Router(config-router)#network 192.168.0.0 Router(config-router)#network 172.16.1.0 Router(config-router)#network 10.0.0.0 • IP Pool Router(config)# ip local pool ip_pool 172.16.1.10 172.16.1.20
  • 11. Configuring AAA • aaa-model Enables the authentication, authorization, and accounting (AAA) access control model. Router(config)#aaa new-model • aaa session-id [common | unique] Ensures that all session identification (ID) information that is sent out for a given call will be made identical. The default behavior is common. Router(config)#aaa session-id common
  • 12. Configuring AAA (contd) • aaa authentication login [list-name] local Sets (AAA) authentication at login. ‘Local’ keyword tells the AAA to use local username database for authentication. Router(config)# aaa authentication login vpn_xauth local • aaa authorization network [list-name] local Creates a list for authorization of all network-related service requests . ‘Local’ keyword tells the AAA to use local username database for authentication Router(config)# aaa authorization network vpn_group local
  • 13. Virtual Template • A virtual template interface is a logical entity that are created, configured dynamically, used, and then freed when no longer needed. • Requires the same amount of memory as a serial interface. • Cisco routers support a maximum of 300 virtual interfaces.
  • 14. Benifts of Virtual Template • For easier maintenance, allows customized configurations to be predefined. • For scalability, allows interface configuration to be separated from physical interfaces. • For consistency and configuration ease, allows the same predefined template to be used for all users. • For efficient router operation, frees the virtual access interface memory for another dial-in use
  • 15. Configuring Virtual Template Router#config t Router(config)# interface Virtual-Template1 Router(config-if)# ip unnumbered FastEthernet0/1 Router(config-if)# no peer default ip address Router(config-if)# ppp encrypt mppe auto required Router(config-if)# ppp authentication ms-chap ms-chap-v2
  • 16. VPDN • A virtual private dial−up network (VPDN) allows a private network dial in service to span across to remote access servers (defined as the L2TP Access Concentrator [LAC]). • LAC forwards the PPP session on to an L2TP Network Server (LNS). The LNS then authenticates the user and starts the PPP negotiation. • VPDN uses the Layer 2 Forwarding protocol (L2F) which permits the tunneling of link level frames
  • 17. Configuring VPDN • enable vpdn Enables virtual private networking. Router(config)#enable vpdn • vpdn-group [group name] Ceates a vpdn group which specifies the protocol, dialup mode and interface Router(config)# vpdn-group VPN_Server Router(config)# accept-dialin Router(config)# protocol pptp Router(config)# virtual-template 1
  • 18. IPSec • Internet Protocol Security (IPsec) is a protocol suite for securing Internet Protocol (IP) communications. • IPsec uses the following protocols to perform various functions  Internet key exchange (IKE and IKEv2) to set up a security association (SA)  Authentication Header (AH) to provide connectionless integrity.  Encapsulating Security Payload (ESP) to provide confidentiality.
  • 19. Configuring IPSec based VPN • crypto isakmp policy [priority] Defines an Internet Key Exchange (IKE) policy. IKE policies define a set of parameters to be used during the IKE negotiation Router(config)#crypto isakmp policy 1 Router(config-crypto-isakmp)# encr 3des Router(config-crypto-isakmp)# authentication pre-share Router(config-crypto-isakmp)# group 2
  • 20. Configuring IPSec based VPN (contd) • sh crypto isakmp policy Below command list the policy created as a result of last command (previous slide). Router#sh crypto isakmp policy Global IKE policy Protection suite of priority 1 encryption algorithm: Three key triple DES hash algorithm: Secure Hash Standard authentication method: Pre-Shared Key Diffie-Hellman group: #2 (1024 bit) lifetime: 86400 seconds, no volume limit
  • 21. Configuring IPSec based VPN (contd) • crypto isakmp client configuration group [name] Specify which group’s policy profile will be defined by defining key and ip address pool. Router(config)#crypto isakmp client configuration group ipsec_group Router(config-crypto-isakmp )# key ipsec Router(config-crypto-isakmp )# pool ip_pool Router(config-crypto-isakmp )# netmask 255.255.255.255
  • 22. Configuring IPSec based VPN (contd) • crypto ipsec transform-set A transform set specifies the encryption and authentication algorithms used to protect the data in the VPN Tunnel. Router(config)#crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac Router(config-crypto-ipsec )#crypto dynamic-map DYNMAP 1 Router(config-crypto-ipsec )#set transform-set ESP-3DES-SHA Transform Set: Name:ESP-3DES-SHA1 ESP Encryption: ESP_3DES ESP Integrity: ESP_SHA_HMAC
  • 23. Configuring IPSec based VPN (contd) • crypto map Creates a crypto profile that provides a template for configuration. Router(config)#crypto map CMAP client authentication list vpn_auth Router(config)#crypto map CMAP isakmp authorization list vpn_group Router(config)#int f0/1 Router(config-if)#crypto map CMAP

Editor's Notes

  • #23: The IPSec Encapsulating Security Payload (ESP) provides data privacy. The ESP protocol also defines an authenticated format that provides data authentication and integrity, with data privacy. AH with the SHA (Secure Hash Algorithm) (an HMAC variant) authentication algorithm