Tomáš Podermański , [email protected]

60
Tomáš Podermański, [email protected]

description

Tomáš Podermański , [email protected]. the Czech Republic Area: 78 866 Km2 Population: 10 230 060 Capital city : Prague 1989: communist regime collapsed 1999: meber of NATO 2004: member of EU. Brno. NREN – CESNET z.s.p.o.. 26 members Universities & Czech academy - PowerPoint PPT Presentation

Transcript of Tomáš Podermański , [email protected]

Page 1: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Tomáš Podermański, [email protected]

Page 2: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Brno

• the Czech Republic– Area: 78 866 Km2 – Population: 10 230 060 – Capital city : Prague– 1989: communist regime collapsed– 1999: meber of NATO – 2004: member of EU

Page 3: Tomáš Podermański ,   tpoder@cis.vutbr.cz

NREN – CESNET z.s.p.o.

– 26 members– Universities & Czech academy

– Many other institutions connected indirectly – Government institutions, hospitals, high schools,

research institutions

– Network based on DWDM & MPLS technology

Page 4: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Rumors about IPv6

• Do you know that IPv4 address space will be exhausted very soon ? – Really, again? I already heard about it 10 years ago.

• We are working on IPv6 transition !– Do you still use it?

• How do you get on with IPv6 ?– Everything is ready. The network is well prepared and all

applications support dual stack. There is no problem with IPv6.

• Very well, can I see how it works? – Ehh, em, you know…. maybe later

• Actual point of view– We know that IPv6 is a real problem, but we don’t have time and

money to deal with it. – We’d like to cope with IPv6, but we don’t know how.

Page 5: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Why IPv6 ?

Top 10 Features that make IPv6 'greater' than IPv4

1. Larger IP address space2. Better end-to-end connectivity3. Ability for autoconfiguring devices4. Simplified header structures5. Better security (IPSEC – ESP, AH)6. Better quality of services7. Better multicast and anycast abilities8. Mobility features9. Ease of administration10.Smooth transition from IPv4

source: http://ipv6.com/

Page 6: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Why IPv6 ?

Top 10 Features that make IPv6 'greater' than IPv4

1. Larger IP address space2. Better end-to-end connectivity3. Ability for autoconfiguring devices4. Simplified header structures5. Better security (IPSEC – ESP, AH)6. Better quality of services7. Better multicast and anycast abilities8. Mobility features9. Ease of administration10.Smooth transition from IPv4

source: http://ipv6.com/

Page 7: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Ten years ago we had a plan …

IPv6 Deployment

IPv4 Pool Size

Size of the Internet

IPv6 Transition usingDual Stack

Time

6 - 10 years

20002006-2010

Source: http://www.potaroo.net/presentations/

Page 8: Tomáš Podermański ,   tpoder@cis.vutbr.cz
Page 9: Tomáš Podermański ,   tpoder@cis.vutbr.cz

What’s the revised plan?

IPv6 Deployment

IPv4 PoolSize

Size of the Internet

IPv6 TransitionToday

Time

?

1%

100%

1 year

2010

Source: http://www.potaroo.net/presentations/

Page 10: Tomáš Podermański ,   tpoder@cis.vutbr.cz

An Internet Transition Plan

• Recommendation based on RFC5211 (07/2008)

• Phase I (2008 – 2009)– Backbone network, basic infrastructure– Native connectivity to each location (low speed)– Some public services available on IPv6 (web, ftp)

• Phase II (2010/1 - 2011/12)– Stable backbone infrastructure– Hardware routing – Monitoring of applications & hotline support– IPv6 connectivity for end users in selected locations– IPv6 multicast in testing mode

• Phase III (2012/1)– IPv6 network in good working order (unicast & multicast)– Native IPv6 connectivity for all users– majority of services available through IPv6

Page 11: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IANA: Allocation of /8 IPv4 prefixes

Source: http://www.potaroo.net/tools/ipv4/index.html

NAT

1992: The first call

2001: Win XP, SP1 dulastack

2008: European commision targets 25% IPv6 availability by 2010

2007: Win Vista, SP1 dulastackPrefered IPv6

1996: IPv6 pon Linux

1998: RFC 2460

2008: Google on IPv6

Page 12: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Action plans of deployment IPv6

• EU : ADVANCING THE INTERNET – Action Plan for the deployment of Internet Protocol version 6 (IPv6) in

Europe,Brussels, 27.5.2008, COM(2008) 313 final

• USA: Transition Planning for Internet Protocol Version 6 (IPv6), to set the US Federal Agencies a hard deadline for compliance to IPv6 on their core IP networks

• China : China Next Generation Internet (CNGI) sets out a 5 year plan (2006-2010) for the early adoption of IPv6

• Korea: IPv6 Promotion Plan II which sets a vision of deploying IPv6 for the public sector by 2010

• Australia: Preparation Jan 2008-Dec 2009, Transition Jan 2010-Dec 2012, Implementation Jan 2013-Dec 2015

Page 13: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Google: users with IPv6 connectivity

Source: http://www.google.com/intl/en/ipv6/statistics/

Page 14: Tomáš Podermański ,   tpoder@cis.vutbr.cz
Page 15: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 deployment ratio – 12/2010

Source: http://bgpmon.net/blog/?p=340

Page 16: Tomáš Podermański ,   tpoder@cis.vutbr.cz

NREN‘s activities

• Backbone infrastructure– IPv6 has been available in each node for

many years – Every member can have an IPv6

connectivity

• IPv6 workgroup– meetings 3 times a year– a few campuses are usually presented– Usually 20 – 30 participants– good place to

• meet specialist from other universities• share experience & knowledge

Page 17: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 and Czech Universities

Page 18: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Let’s move on to the campus

IPv6 status at

the Brno University of Technology

Page 19: Tomáš Podermański ,   tpoder@cis.vutbr.cz

the Brno University of Technology

• http://www.vutbr.cz• One of the largest universities in the Czech Republic• Founded in 1899, 110th anniversary was recently celebrated • 20,000 students and 2,000 employees• 9 faculties• 6 other organizational units• Dormitory for 6,000 students

Page 20: Tomáš Podermański ,   tpoder@cis.vutbr.cz

VUT FIT, Božetechova 2

VUT Koleje, Mánesova 12

AV VFU, Palackého 1/3

MU CESNET , Botanická 68a

VUT Koleje , Kounicova 46/48

VUT Rektorát, Antonínská 1

VUT , Gorkého 13

VUT FaVU, Údolní 19

VUT FEKTÚdolní 53

MU, Vinařská 5

VUT FaVU, Rybářská 13AV ČR, Rybářská 13

VUT FA, Poříčí 5

VUT FAST, Veveří 95

AV ČR UFM

VUT, Kounicova 67a

MZLU, Tauferova

VUT FEKT, Technická 8

VUT Koleje, Kolejní 2

VUT FP, FEKT, Kolejní 4

VUT FCH, FEKT, Purkyňova 118

AV ČR UPT

VUT Koleje, Purk.

VUT TI, Technická 4

VUT FSI, Technická 2

Page 21: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Milestones

1992-1995 1992-1995 Modems, dedicated connections, bandwidth 32 - 128 Kb/s, first fiber was build, Ethernet 10 Mb/s, PC based routers KA9Q a BSD/386.

1995-19981995-1998connections among locations almost transferred to fiber, the ATM 155 Mb/s was being built, PC based routers with BSD Unix.

1998-20011998-2001optical connections with multiple fibers, first attempts to build up circuits on Gigabit Ethernet, L3 switches Extreme Networks.

2002-20042002-2004 All-core-network circuits on backbone converted to Gigabit Ethernet. Gigabit Ethernet was used to connect each location.

20052005First experience with 10 Gbp/s Ethernet. Looking for popper technology to build up new backbone.

2006-2006-20082008Step-by-step converting from Gigabit Ehernet to 10 Gigabit Ethernet. Selected technology: Extreme Networks, Hewlett Packard.

20020088For management and L2 cross connections the backuped L2 circuit has been build. Each location had been connected on 10 Gigabit.

2002009-now9-nowThe IPv6 backbone has been built up. All tunnel-like connections have been converted to native. The OSPFv3 based routing has been turned on. IPv6 connectivity is now ready to be used in all locations.

Page 22: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Layer 3 network

Core of the networkCore of the network• BBased on 10Gb/s ethernetased on 10Gb/s ethernet• Basic L3 services Basic L3 services • OSPFOSPF and OSPFv3 and OSPFv3• multicast - PIM/SMmulticast - PIM/SM

External connectivity External connectivity • Two Two 10Gb/s lines connecting the 10Gb/s lines connecting the

core to CESNET (BGP, BGP4+)core to CESNET (BGP, BGP4+)• Basic filtering (SMTP, NetBios, Basic filtering (SMTP, NetBios,

445/Microsof DS)445/Microsof DS)

Locality & sub-campusesLocality & sub-campuses• Two 10Gb/s lines to the core Two 10Gb/s lines to the core • More complex firewalls More complex firewalls

configurations are dependend on configurations are dependend on local administrators local administrators

Page 23: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Initial IPv6 topology

Page 24: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 milestones

20022002Basic tunneled connectivity. Assigned own prefix - 2001:718:802::/48 .

2002-20082002-2008Some experimental services. Possibility to connect locations using IPv6 (VLANs) . Static routing based on FreeBSD PC routers.

Native connectivity to NREN20020099

Address plan, prefix divided into organization units. OSPFv3 based routing. PC routers with XORP.3com 4800 GL devices used as HW routersDNS server moved to the dualstack

202010/I, 2010/II10/I, 2010/IIBackuped connectivity to each location Backuped connectivity to each location Every place/subnet can support native IPv6 connectivity Every place/subnet can support native IPv6 connectivity Tests with HP devices (participation on beta testing program)Tests with HP devices (participation on beta testing program)Connectivity to NREN through two 10Gb/s lines – BGP4+Connectivity to NREN through two 10Gb/s lines – BGP4+Basic firewallBasic firewallMonitoring of IPv6 services, collecting neighbor caches (NAV) Monitoring of IPv6 services, collecting neighbor caches (NAV) Some services moved to dualstack Some services moved to dualstack Participation on HP beta testing program Participation on HP beta testing program

2010/III, 2010/IV2010/III, 2010/IVCore of the network moved to the dualstack Core of the network moved to the dualstack Ridding off the temporary IPv6 networkRidding off the temporary IPv6 network

Page 25: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 milestones - future

• Firmware with full IPv6 support has been released– Temporary solution on xorp routers can be switched off– IPv6 topology will follow the IPv4 topology– All subnets will have both IPv4 and native IPv6 connectivity

• PI IPv6 address range has been assigned – Changing address of all subnets and services. We will move from

2001:718:802::/48 to 2001:67c:1220::/46– Support for renumbering

• Activation of services on dualstack– 90% of services could be moved easily (10% of time)– rest of services (90% of time)

• very complicated issue

• unpredictable problems

Page 26: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 problem no. 1

Autoconfiguration

Page 27: Tomáš Podermański ,   tpoder@cis.vutbr.cz

• Brand new autoconfiguration mechanisms– Router advertisement (doesn’t contain address of DNS servers)

• There is an extension RFC 6016 but is not widely implemented yet

– DHCPv6 (doesn’t contain default route option)• There is an draft draft-ietf-mif-dhcpv6-route-option-02 but not accepted yet

• Privacy extensions – IPv6 addresses are created by hosts randomly

• You have to use both mechanisms in real network– DHCPv6 server, Advertises on router – Secure either of them – Failure any of them leads to a network connectivity failure

• Different platforms support different techniques – Windows XP - SLAAC

– Windows Vista/7 – SLAAC + DHCPv6– MAC OS, iOS - SLAAC only (expect Lion – released 06/2011)– Linux, BSD, … – depends on distribution

Autoconfiguration

Page 28: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Autoconfiguration IPv4 x IPv6

• IPv4 – DHCP, ARP

• IPv6 – DAD, RS/RA, DHCPv6, MLDv2, ND

Page 29: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 problem no. 2

Impact on existing IPv4 infrastructure

Page 30: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv4 and IPv6 in a network

• More than 50% of PC supports dualstack– Most of them use autoconfiguration (SLAAC) to get IP

address (MS Vista/7, Linux, Mac OS, iOS, BSD*)– IPv6 is preferred protocol by default

• Steps to make an attack:– Setup attacker’s IP to act as a RA sender– Prepare a DHCPv6 server on the attacker's PC; as DNS

servers provide attacker’s addresses – Modify the behavior of DNS server to return A or AAAA

records for www.google.com, www.yahoo.com, etc. to your attacker’s address

– Transparent proxy service allows attacker to modify content of webpages

Page 31: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 man in the middle attack

www.vutbr.cz147.229.2.15

Port security:•MAC address security•DHCP snooping•ARP protection•Dynamic lock down

Port security:•MAC address security•DHCP snooping•ARP protection•Dynamic lock down

Page 32: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 man in the middle attack

www.vutbr.cz147.229.2.15

Rouge Router Advertisement with M or O flag enabled

Rouge IPv6 Router

Page 33: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 man in the middle attack

www.vutbr.cz147.229.2.15

DHCPv6 query (via multicast)

Rouge DHCPv6 Server

Page 34: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 man in the middle attack

www.vutbr.cz147.229.2.15

DHCPv6 answerDNS servers points to ME

Rouge DHCPv6 Server

Page 35: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 man in the middle attack

- name server- proxy service

www.vutbr.cz192.168.1.166

192.168.1.166

Page 36: Tomáš Podermański ,   tpoder@cis.vutbr.cz

# ./flood_router6 eth0

Page 37: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 problem no. 3

First hop security

Page 38: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Autoconfiguration – IPv4

• IPv4 autoconfiguration = DHCP

• Protection mechanisms on L2 devices– DHCP snooping

• Blocking DHCP responses on access ports• Prevents against fake DHCP servers

– Dynamic ARP protection• MAC-IP address database based on DHCP leases

• Checking content of ARP packets on client access port

• Prevents against ARP spoofing

– Dynamic lock down • The MAC-IP database is used for inspection of client source MAC and

IP address.

• Prevents against source address spoofing

Page 39: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Possible solutions for IPv6

• SeND (RFC 3971, March 2005)– Based on cryptography CGA keys

– Requires PKI infrastructure

– Can not work with • Manually configured, EUI 64 and Privacy Extension addresses

• RA-Guard (RFC 6105, February 2011)– Dropping fake RA messages on access port (RA Snooping)

– Cooperation with SeND (send proxy) – learning mode

• SAVI (draft-ietf-savi-*, divided into more drafts)– Complex solution solving

• Rouge RA, DHCPv4 an DHCPv6

Page 40: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Possible solutions for IPv6

• No support in devices – Only few vendors support some of that features

– You probably will have to replace all access switches

• There is a easy way how to bypass such protection – CVE-2011-2395

(http://seclists.org/fulldisclosure/2011/May/446)– Using extension headers– ICMPv6/ND Packet fragmentation

Page 41: Tomáš Podermański ,   tpoder@cis.vutbr.cz
Page 42: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 problem no. 4

Impact on existing IPv4 infrastructure II

Page 43: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Impact on existing IPv4 infrastructure

• Deploying IPv6 requires changes in the existing infrastructure– Some routers and switches have to be replaced– Some have to be upgraded – There are a lot of bugs in IPv6 code

• More often firmware upgrades • New IPv6 related bugs -> CPU overload, Devices crash

• IPv6 is another way how to reach nodes inside of the network– Similar policy have to be applied on both protocols

• Users (and managers) can see that network is less stable

• Both that group can’t see any benefits of that effort

Page 44: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 problem no. 5

IPv6 can’t provide same services as IPv4 does

Page 45: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 can’t provide same services

• Implementations of IPv6 are very immature now – Lack of VRRP (v3 standardized 1 year ago)– DHCPv6 failover is neither standardized nor

implemented yet– Issues on VPN

• Most of vendors supports only IPv4 over VPN• What happened when user connected via VPN tries to reach

some services available on both protocols ?

– Implementations do not provide equal features• ACL, OSPFv3, BGP4+, policy routing, …

– There are a lot of bugs in implementation• Deploying IPv6 means that you will have to help supplier to

solve issues. • Nobody else may have not seen some issues before

Page 46: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 problem no. 6

IPv6 requires brand new techniques to manage networks

Page 47: Tomáš Podermański ,   tpoder@cis.vutbr.cz

New techniques to manage networks

• Privacy extension – Addresses are created randomly, a device has multiple address – Collecting ND cache (NAV - http://metanav.uninett.no/)

• Netflow data have to be threaten in differed way – Practical IPv6 Monitoring on Campus

(http://www.terena.org/activities/campus-bp/bpd.html)

• DHCPv6 uses DUID as host identifier – MAC address can’t be used as host identifier

– The host can change DUID - OS reinstallation, dualboot systems

• Absence of NAT – There are some scenarios where NAT is very useful– RFC 6296 - IPv6-to-IPv6 Network Prefix Translation

• Tunnels– An easy way to bypass security policy

Page 48: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 problem no. 7

Deploying IPv6 does not mean that you can switch off IPv4

Page 49: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Switching off IPv4 is not easy• IPv4 and IPv6 are incompatible protocols

– Services available on IPv4 can be reached only by IPv4– Applications not supporting IPv6 still needs IPv4

• Skype, ICQ, MSN, games, …

• NAT64 in not solution for that problem today – It is more realistic keep running dual stack network

• It means that you have to run– Two routing protocols including routing policy – Two autoconfiguration mechanism – Two security policy

• IPv4 does not have extension headers but IPv6 does

• IPv6 uses differed messages in ICMPv6

• IPv6 can use multiple addresses

– You have to have well trained staff with very good knowledge of both protocols

Page 50: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 problem no. 8

Administrators gets disappointed and frustrated with developing IPv6

Page 51: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Deploying IPv6 in reality

• How things an administrator that has never heard about IPv6– Is it easier than IPv4 ?

• SLAC – security issues, identity problems

– Is it the same as IPv4 ? • Static address configuration, link-local address

– Is it similar to IPv4 ? • DHCP(v4) + DHCPv6 + RA, …

– There are too many differences • There is to many new protocols, new mechanisms, …• I have to learn too many new thinks• Users will not appreciate it

Page 52: Tomáš Podermański ,   tpoder@cis.vutbr.cz

A bit of statistics…A bit of statistics…collected from the campus networkcollected from the campus network

Page 53: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv4, IPv6 & tunneled trafficIPv4, IPv6 & tunneled traffic

HereHere

Page 54: Tomáš Podermański ,   tpoder@cis.vutbr.cz

IPv6 native trafficIPv6 native traffic

Page 55: Tomáš Podermański ,   tpoder@cis.vutbr.cz

How many addressed were we talking withHow many addressed were we talking with

HereHere

Page 56: Tomáš Podermański ,   tpoder@cis.vutbr.cz

How IPv6 many addressed were we talking withHow IPv6 many addressed were we talking with

Page 57: Tomáš Podermański ,   tpoder@cis.vutbr.cz

HCome on, what all this fuss is about. Just take it easy and see what will

happen.

Come on, what all this fuss is about. Just take it easy and see what will

happen.

Page 58: Tomáš Podermański ,   tpoder@cis.vutbr.cz

Number of unique mac adresses in ARP and NC Number of unique mac adresses in ARP and NC

Page 59: Tomáš Podermański ,   tpoder@cis.vutbr.cz

What can we do about it ?

• Start using IPv6 immediately – We have been waiting for perfect IPv6 more than 15 years - it does

not work– Until IPv6 is used we will not discover any problem

• Prefer native IPv6 connectivity (anywhere you can)– It is a final solution for future (IPv4 will be switched off later) – Native IPv6 is more secure than unattended tunneled traffic !

• Ask vendors and creators of standards to fix problems– More requests escalate troubles on the vendor side– Standardization of IPv6 is not enclosed process. Anyone can

contribute or comment the standards

• Stop pretending that IPv6 does not have any troubles– IPv6 has got many problems – Problems can not be solved by covering them – Unreliable information led to broken trust amongst users. The naked

truth is always better than the best dressed lie

Page 60: Tomáš Podermański ,   tpoder@cis.vutbr.cz