Unit 6 Implementing VPNs On The ERX V3
Unit 6 Implementing VPNs On The ERX V3
Implementing
Virtual Private Networks
on the ERX
B
Company
B
Company C
Company C
Dial
xDSL
U
Internet
xDSL
T1/E1
nxT1/E1
T3/E3
ERX ERX
Company U Internet U
Company A Company A
B
Company B Company B
Company
B
Company C Company C
Company C
[email protected] Company C
RADIUS
L2TP
[email protected] Tunnel Company C
LNS
RADIUS RADIUS
[email protected]
192.168.1.1
Password = mypass
LNS
[email protected]
RADIUS Company C
• User initiates PPP connection to LAC RADIUS
• LAC performs initial authentication and determines:
- Terminate PPP session locally
OR
- Tunnel PPP session to a LNS
• Tunnel Attributes obtained:
- Domain Map
- RADIUS
The user initiates a PPP connection to the LAC. In this example, [email protected]
is initiating a PPP session to the LAC, which is an ERX. The ERX performs the initial
authentication and determines whether to terminate this PPP session or tunnel this PPP
session using L2TP. If the session is going to be tunneled, the ERX needs to determine
several L2TP tunnel attributes, such as the IP address of the LNS and the tunnel
password, in order to initiate and build the L2TP tunnel and session.
The ERX parses the user’s login for the realm or domain name. In this example, the
domain name is CompanyC.com. The ERX looks for an entry of CompanyC.com in the
configured Domain Map. As of release 1.3.0, the Domain Map can now include L2TP
tunnel attributes, as the case here. If the Domain Map includes L2TP tunnel attributes, the
ERX knows that all PPP sessions for this Domain, CompanyC.com, must be tunneled via
L2TP.
If the Domain Map contains an entry for the domain in question but does not contain L2TP
tunnel attributes, the ERX will send the authentication request to the appropriate virtual
router’s RADIUS server.
If the Domain Map does not contain an entry for the domain, the ERX will send the
authentication request to the RADIUS server configured in the default virtual router.
The RADIUS server can be configured to return L2TP tunnel attributes as well for a
particular realm or domain name.
Note: The ERX currently operates as an L2TP LAC in PPP pass-through mode only.
The ERX performs Proxy LCP and Proxy Authentication and passes the results on to the
LNS. The ERX can act as an LNS using the Tunnel Service line module.
U
Internet U LNS
L2TP Tunnel
Control Connection
Hello
Hello
U
Internet U LNS
L2TP Tunnel
Session ([email protected])
Control Connection
Once the tunnel or Control Connection is established the data session for the remote user
is next created. This is done by the LAC sending an Incoming Call Request message to
the LNS. The ICRQ message contains the assigned session ID and call serial number for
the proposed session.
The LNS then responds with an Incoming Call Reply ICRP) containing its assigned
session ID indicating success with the ICRQ sent.
The LAC then responds with an Incoming Call Connected (ICCN) message to indicate
acceptance of the ICRP message sent by the LNS. Additionally ICCN messages are used
to convey authentication information if Proxy authentication is being implemented. For
example this message could contain the Chap Challenge, Response, and Success
information.
When a session is terminated a Call Disconnect Notify (CDN) message is sent by the
LAC. This message type can also be used by either the LAC or LNS to terminate a
session.
192.168.1.1
Password = mypass
ERX4
L2TP
Tunnel
LNS
[email protected]
RADIUS Company C
• Open tunnel with LNS using L2TP Tunnel Attributes RADIUS
- Tunnel Tag 1
- LNS IP address 192.168.1.1
- Tunnel Password mypass
- Tunnel ID CompanyC
- Hostname ERX4
- Tunnel Medium IPV4
- Tunnel Type L2TP
Once the ERX knows that a PPP session should be tunneled, it will open an L2TP tunnel
and control connection with the LNS. It uses the following L2TP configuration parameters
and L2TP tunnel attributes to establish the tunnel and control connection:
•Tunnel Tag: The Tunnel tag is a mechanism to uniquely identify a set of tunnel attributes.
In 1.3.x, a domain name could only have one set of tunnel attributes. With 2.0.x, the ERX
now allows 31, allowing for such things as rolling over to alternate servers.
•LNS IP address: In this example, the IP address of the LNS is 192.168.1.1. This
attribute is also referred to as the Tunnel Server Endpoint or Tunnel Endpoint.
•Tunnel Password: This password is a shared secret used for optional tunnel
authentication and Attribute Value Pair (AVP) hiding. AVPs are used to encode
operational parameters, such as tunnel ID, over the L2TP control channel. The
authentication mechanism is CHAP-like using the MD5 algorithm.
•Tunnel ID - The Tunnel ID uniquely identifies the L2TP tunnel between the ERX and the
LNS. It is possible to have multiple tunnels between a LAC and LNS. The Tunnel ID is
used to distinguish between these tunnels. It is also possible to have different domains
share a tunnel, if desired. To have multiple domains use the same tunnel, configure the
same tunnel ID for both domains. This attribute is also referred to as the Assigned Tunnel
ID.
•Hostname - The Hostname is used by some LNS’s (I.e. Cisco) to identify multiple tunnels
on a single LNS from different LAC’s.
•Tunnel Medium - Currently, the ERX only supports IPV4 as the tunnel medium. If the
L2TP Tunnel Attributes are configured in the domain map, this parameter defaults to IPV4.
•Tunnel Type - Currently, the ERX only supports L2TP as the tunnel type. If L2TP Tunnel
Attributes are configured in the domain map, this parameter defaults to L2TP.
L2TP
Tunnel
LNS
[email protected]
[email protected] RADIUS
RADIUS Company C
The remote users IP interfaces are built-on and terminated at the LNS. In order to
facilitate the dynamic creation of these interfaces when a L2TP session is established a
profile is required to define the characteristics of the IP interface. Below is an example of
the parameters and configuration commands to build this profile.
erx3(config)#profile companyc-info
erx3(config-profile)#ppp authentication chap
erx3(config-profile)#ip virtual-router vr2
erx3(config-profile)#ip unnumbered loopback1
erx3(config-profile)#ip access-routes
RADIUS
RADIUS Company C
The LNS configuration includes three parts. First exit Exit from the current command mode
one must configure a profile that will be used in help Describe the interactive help system
creating the dynamic IP interfaces on the LNS. local Configure L2TP local parameters for
Next one has to create an L2TP destination profile. remote host
Within the profile is the configuration of the log Configure logging settings
Remote Host used to define the connection to a
macro Run a CLI macro
specific LAC. Below are example configuration
commands: no Negate a command or set its default(s)
profile Assign a profile for remote host
erx3(config)#l2tp destination profile ?
sleep Make the Command Interface pause for a
WORD (32 char max) A destination profile name specified duration
ip Configure a destination profile using IP tunnel Configure L2TP tunnel parameters for remote
virtual-router Configure a destination profile on a host
virtual router erx3(config-l2tp-dest-profile-host)#tunnel password
mypass
erx3config)#l2tp destination profile companyc ?
erx3(config-l2tp-dest-profile-host)#profile companyc-
ip Configure a destination profile using IP info
virtual-router Configure a destination profile on a erx3(config-l2tp-dest-profile-host)#local ?
virtual router host Configure an L2TP local host name for use with
<cr> remote host
erx3(config)#l2tp destination profile companyc ip Configure local ip parameters for use with remote
virtual-router vr2 ip address 192.168.1.2 host
IP
[email protected] RADIUS
RADIUS PPP Header Company C
L2TP Header
UDP Header
IP Header
Encap X
Once the initial L2TP tunnel is opened to the LNS, the ERX opens a new L2TP session
with the LNS. After the L2TP session is opened, the PPP session is fully extended from
Alan’s PC to the LNS. Since the PPP session is terminated on the LNS, the LNS provides
and controls all PPP functionality, such as complete authentication, IP address
assignment or data compression capabilities. The LNS can restart LCP and
authentication or it can receive the results of these operations from the LAC. When the
LAC is performing these proxy functions and forwarding PPP frames directly from the
Client’s PC to the LNS it is referred to as operating in PPP pass through mode.
Once the session is established, PPP frames from the remote system are received at the
LAC, stripped of the CRC, link framing and transparency bytes, encapsulated in L2TP and
forwarded over the appropriate tunnel. The LNS receive the L2TP packet and processes
the encapsulated PPP frames as if they were received on a local PPP interface.
[email protected]
RADIUS RADIUS
Company C