• No results found

MPLS VPN Security BRKSEC-2145

N/A
N/A
Protected

Academic year: 2021

Share "MPLS VPN Security BRKSEC-2145"

Copied!
60
0
0

Loading.... (view fulltext now)

Full text

(1)

BRKSEC-2145

(2)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

2

Session Objective

Learn how to secure networks which run MPLS

VPNs.

100% network focus!

Securing routers & the whole network against DoS and

abuse

Not discussed:

Security appliances such as firewall and IPS

Content and application security

Target audience:

(3)

MPLS Security: History

2001: First MPLS deployments; little security concerns

2002: First security concerns raised by SP and

Enterprises; first Gartner report

2003: MPLS Security becoming key concern; Miercom

test; first white papers; second Gartner report

2004:

RFC 4381: “Security of the MPLS VPN

Architecture”

(4)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

4

MPLS VPN Security ― Agenda

Analysis of the Architecture

Secure MPLS VPN Design

(5)
(6)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

6

Comparison with ATM/FR

ATM/FR

MPLS

Address Space Separation

Yes

Yes

Routing Separation

Yes

Yes

Resistance to Attacks

Yes

Yes

Resistance to

Label Spoofing

Yes

Yes

Direct CE-CE

(7)

Basic RFC 4364 Security:

Today’s Arguments

Can be mis-configured

(operation)

Routers can have bugs

(implementation)

PEs can be accessed

from Internet, thus intrinsically

insecure

Floods over Internet

can impact VPN traffic

True, but same

on ATM/FR

PEs can be secured,

as Internet routers

(8)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

8

Address Planes: True Separation!

(Example is IPv4 – also applies to IPv6)

Core Address Space

(9)
(10)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

10

Secure MPLS/VPN Core Design

1.

Secure each router individually

2.

Don’t let packets into (!)

the core

No way to attack core, except

through routing, thus:

3.

Secure the routing protocol

Neighbor authentication, maximum

routes, dampening,…

4.

Design for transit traffic

QoS to give VPN priority

over Internet

Choose correct router

for bandwidth

Separate PEs where necessary

(11)

Securing the Core:

Infrastructure ACLs

On PE: “deny ip any <PE VRF address space>”

Exception: routing protocol from host to host

Idea: no traffic to PE/P you can’t attack

Prevents intrusions 100%

DoS: hard, but theoretically possible with transit traffic

(12)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

12

Securing the Core:

Infrastructure ACLs

Example:

deny ip any 1.1.1.0 0.0.0.255

permit ip any any

Caution: This also blocks packets to the CE’s!

Alternatives: List all PE i/f in ACL, or use secondary

i/f on CE, or ACL with dis-contiguous subnet masks (11111101)

(13)

VRF Maximum Prefix Number

Injection of too many routes:

Potential memory overflow

Potential DoS attack

For a VRF: Specify the maximum number of

routes allowed

ipvrf red

maximum routes 45 80

(14)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

14

Control of Routes from a BGP Peer

Injection of too many routes:

Potential memory overflow

Potential DoS attack

Control with “maximum prefix” command

(under the BGP neighbor definition)

router bgp 13

neighbor 140.0.250.2 maximum-prefix

45 80 restart 2

… Accept Max 45 Prefixes,

Then Reset Session …

From This

Neighbor…

…Log a Warning

(15)

Best Practice Security Overview

Secure devices (PE, P): They are trusted!

See next slide for risks…

PEs: Secure with ACLs on all interfaces

Static PE-CE routing where possible

For routing, LDP: Use authentication (MD5)

Maximum number of routes per VRF and per peer (only BGP)

Separation of CE-PE links where possible

(Internet/VPN)

(16)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

16

Key: PE Security

What happens if a single PE in the core gets

compromised?

Intruder has access to all VPNs; GRE tunnel to “his” CE

in the Internet, bring that CE into any VPN

That VPN might not even notice…

Worst Case!!!!

Therefore: PE Security is Paramount!!!!!!!

Therefore: No PE on customer premises!!!!!!!

(17)

MPLS VPNs are Quite Secure

Perfect Separation of VPNs

No intrusions possible

Perfect Separation of the Core from VPNs

Again, no intrusions possible

(18)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

18

Customer VPN

The Issue: DoS Through a Shared PE

Might Affect VPN Customer

Traffic COULD affect VPN customer

(however, risk probably acceptable)

PE

MPLS core

P

VPN Customer

P

P

P

Internet Customer

Internet

VRF

VRF CE1

P

(19)

Today’s Best Practice:

MPLS VPN Security Recommendation:

Level 0: Internet

Level 1: VPN customers

(Level 2: Mission critical

infrastructure)

PE1

CE2

CE1

PE2

To Internet

To VPN

VRF Internet

VRF VPN

Custome

r

Ne

tw

ork

(20)

© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Presentation_ID

20

(21)

Internet Provisioning on an MPLS Core

Two basic possibilities:

1.

Internet in global table, either:

1a) Internet-free core (using LSPs between PEs)

1b) hop-by-hop routing

2.

Internet in VRF

Internet carried as a VPN on the core

(22)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

22

Internet in the Global Routing Table

Using LSPs Between PEs

Internet PE

Customer

PE

P

P

Internet Routing Table

(Global Routing Table)

(23)

Internet in the Global Routing Table

Using LSPs Between PEs

Default behavior, if Internet in global table!!

On ingress PE: BGP next hop: Egress PE loopback

Next hop to egress usually has label!

LSP is used to reach egress PE

P routers do not need to know Internet routes

(nor run BGP)

Security consequence:

(24)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

24

Internet in the Global Routing Table

Using LSPs Between PEs

Fully secure each router!

Do not advertise IGP routes outside

(This is a general security recommendation for all cores!)

P routers not reachable (unless someone defaults to you)

PE routers not reachable (possible exception: Peering PE)

Infrastructure ACLs to block core space:

Additional security mechanism

Even if someone defaults to you, he cannot reach the core

(25)

Internet Service

Provider

Internet PE

Customer

PE

P

P

Customer

PE

Internet CE

VPN

Customer

VPN

Customer

VPN

Customer

(26)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

26

Internet in the Global Routing Table

Hop-by-Hop Routing

Like in standard IP core

Each router speaks BGP, and carries Internet routes

Not default, must be configured!

Security consequence:

P and PE routers by default fully reachable from Internet

Recommendations: (like before)

Fully secure each router!

(27)
(28)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

28

Internet in a VRF

Internet is a VPN on the core

Full separation to other VPNs, and the core, by default!

“Connection” between Internet and a VPN (for service) must be

specifically configured

Security consequence:

P routers not reachable from anywhere!

PE routers only reachable on outbound facing interfaces;

Very limited

Much easier to secure

But!!!

Routes in a VRF take more memory

(29)

Alternatively: No Internet on the Core

Pure MPLS VPN service considered “most secure”

But what about:

(30)

© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Presentation_ID

30

(31)

Inter-AS: The Options

Option A

VRF back to back;

IP interface

Option B

ASBRs exchange labelled VPN prefixes;

labelled interface

Option C

ASBRs

don’t hold VPN information - only

Route Reflectors do;

security

functional

(32)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

32

mbehring

Inter-AS: Case A

VRF-VRF Back-to-Back

Control plane: No signalling, no labels

Data plane: IPv4 only, no labels accepted

Security: as in RFC 2547 (single-AS)

SPs are completely separated

Cust.

AS 1

AS 2

Cust.

CE

CE

PE

ASBR

ASBR

PE

IP Data

(33)

Security of Inter-AS case A

Static mapping

Only IP interfaces

SP1 does not “see” SP2’s network

And does not run routing with SP2, except within the VPNs

 Quite secure

Potential issues:

SP 1 can connect VPN connection wrongly

(like in ATM/FR)

(34)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

34

mbehring

Inter-AS: Case B

ASBR exchange labelled VPNv4 routes

Control plane: MP-eBGP, labels

Data plane: Packets with one label

(35)

Security of Inter-AS Case B: Summary

Control Plane can be secured well

Data Plane has some security issues:

Label is not checked today (since i/f in global table)

Labelled packets on any MPLS i/f will be forwarded if LFIB entry exists

Potential Issues:

Insertion of traffic into non-shared VPNs

(uni-directional only)

(requires compromised/faulty ASBR, remote exploit

not possible)

(36)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

36

mbehring

Inter-AS Case C:

ASBRs Exchange PE loopbacks

Control plane: ASBR: just PE loopback + labels;

PE/RR: VPNv4/v6 routes + labels

Data plane: PE label + VPN label

AS1 can insert traffic into VPNs in AS2

Only requirement: Must have LSP to correct egress PE

Customer must trust both SPs

(37)

Security of Inter-AS Case C

ASBR-ASBR signalling (BGP)

RR-RR signalling (MP-BGP)

Much more “open” than Case A and B

More interfaces, more “visible” parts (PE, RR)

Potential Issues:

SP1 can intrude into any VPN on PEs which have a

Inter-AS VPN configured

Cannot check what’s underneath the PE label

(38)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

38

Inter-AS Summary and

Recommendation

Three different models for Inter-AS

Different security properties

Most secure: Static VRF connections (case A),

but least scalable

Basically the SPs have to trust each other

Hard/impossible to secure against other SP in this model

But: Can monitor with

MPLS aware NetFlow (!!)

Okay if all ASes in control of one SP

(39)

Carrier’s Carrier

Carrier’s

Carrier

Cust.

Carrier

Carrier

Cust.

(40)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

40

Carrier’s Carrier: The Interface

Control Plane:

CsC-PE assigns label to CsC-CE

Data Plane:

CsC-PE only accepts packets with this label on this interface

CsC-PE controls data plane, no spoofing possible

Carrier’s

Carrier

Carrier

(41)
(42)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

42

Virtual Private LAN Service

(VPLS) Overview

Network behaves as a switch

Spanning Tree

MAC address learning

ARP, etc.

 Examine threats to a switch to understand VPLS

(43)
(44)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

44

Best Practices for L2 Security (VPLS)

1.

Always use a dedicated VLAN ID for Trunk Ports

2.

Disable unused ports and put them in an unused VLAN

3.

Use Secure Transmission when managing Switches (SSH, OOB, Permit Lists)

4.

Deploy Port Security

5.

Set all host ports to Non Trunking

6.

ALWAYS use a dedicated VLAN for Trunk Ports

7.

Avoid using VLAN 1

8.

Have a plan for ARP Security issues and implement it!!!

9.

Use SNMP V3 to secure SNMP transmission

10. Use STP Attack mitigation

11. Use MD5 Authentication for VTP

12. Plan for and implement DHCP Attack mitigation

13.

Use Private VLAN’s to better secure guest VLAN’s

14. Use and implement 802.1x to protect entry into your network

(45)
(46)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

46

core address space

0.0.0.0 – 255.255.255.255

Address Planes: True Separation for

unicast and multicast!

(47)

MVPN Security Best Practices

 Avoid RP on PE Router

Reason: higher exposure to DoS against PE

 Avoid src/rec directly connected to PE

 Careful with MDT group addressing

(48)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

48

Multicast VPN – Summary

Each VPN can use multicast independently

Source and group may overlap with other VPN

Different PIM modes can be used

VPNs remain fully separated

No reachability between VPNs, unicast or multicast

Cannot spoof other VPN, unicast or multicast

MPLS core remains secure

Not attackable from VPNs, unicast or multicast

However: DoS of PE might affect other VPNs on that PE, this

must be secured specifically

(49)
(50)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

50

Where to Apply IPSec

(51)

How to Establish IPSec: Options

Option 1: Static IPSec

Pre-configure static IPSec tunnels

Works, but does not scale well

Option 2: Dynamic Cryptomap/

Tunnel Endpoint Discovery

Scaling improvements over 1).

Option 3: DMVPN

Dynamic tunnel establishment

Easy to configure and maintain

Some scaling issues

(52)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

52

GET VPN: IPsec Made Easy!

Traditional IPsec:

- n

2

Problem (scalability)

IKE/IPsec

GET VPN:

- 2 Security Associations

- to the key server (~IKE)

- to the group (IPsec)

(53)
(54)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

54

MPLS VPN Security ― Agenda

Analysis of the Architecture

Secure MPLS VPN Design

(55)

MPLS doesn’t provide:

Protection against

mis-configurations in the core

Protection against

attacks from within the core

Confidentiality, authentication, integrity, anti-replay

Use IPsec if required

(56)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

56

Summary

MPLS VPNs can be well secured

Security depends on correct operation and

implementation

MPLS backbones can be more secure

than “normal” IP

backbones

Core not accessible from outside

Separate control and data plane

(57)

Authors:

Michael Behringer

Monique Morrow

Cisco Press,

ISBN: 1587051834

First published:

(58)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

BRKSEC-2145

58

Additional Information

MPLS Security White Paper:

http://www.cisco.com/warp/public/cc/pd/iosw/prodlit/mxinf_ds.htm

Analysis of the security of the MPLS architecture

RFC on MPLS VPN Security:

http://www.ietf.org/rfc/rfc4381.txt

Miercom MPLS test report:

http://www.mier.com/reports/cisco/MPLS-VPNs.pdf

Practical tests show that MPLS is secure

Garnter research note M-17-1953: "MPLS Networks:

(59)
(60)

© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public

References

Related documents

Cause: Low water level, airlock in pipe work, closed shut-off valves, dirty filter cartridges, filtration pump failed or operation intermittent Solutions: Turn mains power

I have not investigated in detail the total energy savings and carbon emission reduction for the SFH03 stock segment when accounting for the upstream flows for the

Enterprise WAN Enterprise Access VPN Enterprise Enterprise Access VPN Access VPN Remote Sites Remote Sites Internet Internet Access Access WAN Router VPN Concentrator Firewall

The following topics will be discussed: MPLS VPN privacy, distributed network-based and endpoint security, traffic management, and routing architecture design.. MPLS VPN

Figure 8: Error in energy loss estimation by component or resistance source Overall, the energy losses in the various components and resistances were simulated quite

Q: What is the difference between these two sentences in [c]: “The absence of the accused without justifiable cause at the trial of which he had notice shall be considered a waiver

The Net Present Value decision rule implicitly assumes that the project's cash flows can be reinvested at the firm's Cost of Capital, whereas, the Internal Rate

Part III Ethernet VPN Services... Chapter 9 IP/MPLS VPN Service Routing Architecture. 9.1 IP/MPLS VPN Service Network Infrastructure. 9.2 Alcatel-Lucent Service Routing