{"id":575,"date":"2011-01-28T19:14:33","date_gmt":"2011-01-28T19:14:33","guid":{"rendered":"http:\/\/blogs.oucs.ox.ac.uk\/networks\/?p=575"},"modified":"2011-01-28T19:19:47","modified_gmt":"2011-01-28T19:19:47","slug":"ipv6-stateful-activestandby-failover-with-cisco-asas","status":"publish","type":"post","link":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/2011\/01\/28\/ipv6-stateful-activestandby-failover-with-cisco-asas\/","title":{"rendered":"IPv6 Stateful Active\/Standby Failover with Cisco ASAs"},"content":{"rendered":"<p>There was some debate on the Cisco ASA failover situation with regard to IPv6. Since we&#8217;re potentially about to make a interim firewall purchase for the main university IPv6 traffic (we route IPv6 separately to IPv4 to avoid a limitation of the older FWSM firewall modules that currently handle the Universities IPv4 traffic) we tested the capabilities to ensure they matched what was required &#8211; namely stateful failover of IPv6 traffic. In laymans terms: your communications with the Internet over IPv6 shouldn&#8217;t be interrupted when one firewall is unplugged.<\/p>\n<p>We&#8217;ve enough equipment to be able to test, so I setup an airgapped network using IPv6 only, roughly mimicking a basic dual site setup. In production it would hopefully have redundant crosslinks and a fibre would be used to connect between the ASAs due to the physical distance of being located at two separate sites (in case one burns down or similar). I used addresses from our public provision but there were no physical connections from the test network. The\u00a0 ASAs need matching software, I applied 8.3(2) although I&#8217;ve since been told that anything from 8.2.2 onwards should match my results &#8211; obviously I can only confirm the version I tested. The ASA 5510 upwards have identical software\/commands so this test should be valid for 5520s, 5540s etc, it&#8217;s the smaller 5505 that is different to the rest of the range in some ways.<\/p>\n<p>I am not a Cisco expert, my own background is system administration, so some of the test was perhaps needlessly complex (the dual switches at each end) but was useful for my own switch revision and practise. If I&#8217;ve accidentally left out any configuration from my test writeup that you think would be helpful for people, let me know in the comments and I&#8217;ll add it in (the intended audience is IT officers in colleges or departments). The basic plan looked like:<\/p>\n<p><a href=\"http:\/\/blogs-new.it.ox.ac.uk\/networks\/files\/2011\/01\/firewall-test-jan-20111.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-577\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/networks\/files\/2011\/01\/firewall-test-jan-20111.png\" alt=\"\" width=\"551\" height=\"683\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/networks\/files\/2011\/01\/firewall-test-jan-20111.png 551w, https:\/\/blogs-new.it.ox.ac.uk\/networks\/files\/2011\/01\/firewall-test-jan-20111-242x300.png 242w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/a><\/p>\n<p>With the switches involved there was one firmware difference which I ignored, also the configuration of the switches isn&#8217;t important, however on the green\/inside 2960 I used (on one of them)<\/p>\n<pre><span style=\"color: #000080\">interface Vlan5\r\n description internal ipv6 network\r\n ipv6 address 2001:630:440:400::1\/64\r\n!\r\nipv6 route ::\/0 2001:630:440:400::EE<\/span>\r\n<\/pre>\n<p>&#8230;plus the etherchannel and interface vlan memberships which if the above made sense to you, you are most likely already familiar with.<\/p>\n<p>On the red\/outside switches<\/p>\n<pre><span style=\"color: #000080\">interface Vlan4\r\n description outside networks\r\n ipv6 address 2001:630:440:401::1\/64\r\n!\r\nipv6 route 2001:630:440:400::\/64 2001:630:440:401::EE\r\n<\/span><\/pre>\n<p>&#8230;again, plus the etherchannel and interface vlan memberships which are as expected.<\/p>\n<h3>Interfaces<\/h3>\n<p>On the ASA themselves the major important parts are firstly the interfaces:<\/p>\n<pre><span style=\"color: #000080\">!\r\ninterface Ethernet0\/0\r\n description RED (outside) to 3750-1\r\n nameif outside\r\n no ip address\r\n ipv6 address 2001:630:440:401::ee\/64 standby 2001:630:440:401::ed\r\n ipv6 enable\r\n!\r\ninterface Ethernet0\/1\r\n description GREEN (inside) to 2960-1\r\n nameif inside\r\n ipv6 address 2001:630:440:400::ee\/64 standby 2001:630:440:400::ed\r\n ipv6 enable\r\n!<\/span>\r\n<\/pre>\n<p>Just put the above one one ASA of the pair. I left off a management interface for this test as it wasn&#8217;t needed.<\/p>\n<h3>Failover Link<\/h3>\n<p>Then it&#8217;s a case of configuring the failover link<\/p>\n<p>On the ASA that you configured the interfaces on, set it as the initial primary unit in the pair<\/p>\n<pre><span style=\"color: #000080\">failover lan unit primary<\/span><\/pre>\n<p>Then configure the failover interface<\/p>\n<pre><span style=\"color: #000080\">failover lan interface FOCtrlIntf Ethernet0\/3\r\nfailover key *****\r\nfailover link FOCtrlIntf Ethernet0\/3\r\nfailover interface ip FOCtrlIntf 2001:630:440:402::1\/64 standby 2001:630:440:402::ee\r\nfailover<\/span>\r\n<\/pre>\n<p>Type exactly the same failover configuration in the above section on the second ASA (e.g. excluding the &#8216;primary&#8217; statement). Don&#8217;t swap the interface addresses around when configuring the second device or it wont work. You should see a message saying it&#8217;s found the second ASA and it&#8217;s mirroring the configuration across. You no longer need to type any configuration on the secondary (non active ASA), and it will warn you if you attempt to do so.<\/p>\n<h3>Firewall Rules<\/h3>\n<p>I don&#8217;t care about firewall rules for this test, but we want to pass traffic. Obviously on a production system you probably have some more restrictive rules in mind:<\/p>\n<pre><span style=\"color: #000080\">ipv6 access-list inbound remark test acl\r\nipv6 access-list inbound permit icmp6 any any\r\nipv6 access-list inbound permit ip any any\r\nipv6 access-list outside remark test outside acl\r\nipv6 access-list outside permit icmp6 any any\r\nipv6 access-list outside permit ip any any\r\naccess-group outside in interface outside\r\naccess-group inbound in interface inside<\/span><\/pre>\n<p>and I&#8217;d like to be able to ping the firewall interfaces themselves while setting up the network in case of human error on my part.<\/p>\n<pre><span style=\"color: #000080\">ipv6 icmp permit any outside\r\nipv6 icmp permit any inside<\/span>\r\n<\/pre>\n<h3>HTTP Gotcha<\/h3>\n<p>Now, if you test sending traffic from a host on the outside to a host on the inside now, all transfers will be fine during failover except http &#8211; you have to expressly turn this on. This caught me out initially as SSH transfers continued fine when the network cable was wrenched from the active ASA but http connections died. If I&#8217;d set aside some time and read the failover section of the ASA book properly instead of skim reading it this wouldn&#8217;t have been a surprise as p539 of the Cisco Press ASA book states:<\/p>\n<blockquote><p>&#8220;HTTP connections usually have a short lifetime and therefore are not replicated by default. Additionally, they add considerable load on the security appliance if the amount of http traffic is large in comparison to other traffic.&#8221;<\/p><\/blockquote>\n<p>The command to enable it is<\/p>\n<pre><span style=\"color: #000080\">failover replication http<\/span><\/pre>\n<p>&#8230;after which http transfers during a failover condition will continue fine.<\/p>\n<h3>Testing<\/h3>\n<p>I tested by transferring a large file via http and ssh (I used a 120MB file) then removing the network cable from one of the active interfaces on the live ASA. When you pull out the network interface you&#8217;ll see a pause of about 2  seconds but the transfer will then continue (the session has not died).<\/p>\n<p>For my test a Windows 7 machine was the client, GNU\/Linux from a Live CD was the server, although it was just what I had to hand and shouldn&#8217;t make any difference. For these I used 2001:630:440:400::2 on the client and 2001:630:440:401::2 on the server.<\/p>\n<p>Without the http replication feature on you&#8217;ll see the transfer hang, despite the secondary ASA having taken over the duties of the first successfully. Without stateful failover in general your users would notice a failover, this is why the state information is needed: to remove impact on your users of a fault.<\/p>\n<h3>Conclusion<\/h3>\n<p>Everything worked fine. Yes, you may already be aware of this, but we wanted to test to be sure before considering making any purchase.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There was some debate on the Cisco ASA failover situation with regard to IPv6. Since we&#8217;re potentially about to make a interim firewall purchase for the main university IPv6 traffic (we route IPv6 separately to IPv4 to avoid a limitation &hellip; <a href=\"https:\/\/blogs-new.it.ox.ac.uk\/networks\/2011\/01\/28\/ipv6-stateful-activestandby-failover-with-cisco-asas\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,123,362],"tags":[],"class_list":["post-575","post","type-post","status-publish","format-standard","hentry","category-cisco-networks","category-firewall","category-ipv6"],"_links":{"self":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/posts\/575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/comments?post=575"}],"version-history":[{"count":7,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/posts\/575\/revisions"}],"predecessor-version":[{"id":584,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/posts\/575\/revisions\/584"}],"wp:attachment":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/media?parent=575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/categories?post=575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/tags?post=575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}