ASM Sync Between 2 Data Centers

Hi Folks,

Any one tried to sync ASM configuration between 2 data centers successfully? my current scenario is, i have HA pair (active/passive) in data center A and another HA pair (active/passive) in data center B and need to sync the the ASM configuration between the 2 data centers.

Hi @Hawary ,

I got from you this Scenario:

I have Tested it in my Lab and it worked…

First you must have a connectivity between all BIGIPs.

Procedures: 
Assume we have ( Device 1,2 in DC_A  & Devices 3,4 in DC_B )

  1. Reset device Trust for all devices.( because all devices must be under same trust domain , and in your current deployment now you have a trust domain in DC_A and another one in DC_B , so you must Reset it.)
  2. Build Trust Relationship :
    1. open BIGIP 1 >>> ( add Devices ( 2,3,4) in the Trust like this:

  3. Go to Device Management >> Devices Tab >>> and review The ( Config sync , Failover ) for each device or configure them properly for each device ( For example you need to add a config-sync IP that can be reached from all BIGIPs to be able to do SYNC )
  4. After That, deploy your current scenario >>  Go to Device Groups TAB and Configure the below :
    1. In Device 1 " which is in DC_A "
      1. Configure a Device Group ( SYNC-Failover ) type , Manual sync with incremental.

      2. Move just only Devices (1,2) from available box to includes box like this:

    2. In Device 3 " which is in DC_B"
      1. Configure a Device Group ( SYNC-Failover ) type , Manual sync with incremental.

      2. Move just only Devices (3,4) from available box to includes box like this:

  5. Now, you returned and Kept your current scenario ( 2 Datacenters , each one has an HA pair ( Active/Standby ) ) Test your config Sync between pairs >> it should Work as expected, so that’s fine till now , in the next step the new configs which you want to implement.
  6. Return to Device 1 and configure the below:
    1. Configure new Device Group ( open Device management >> Device groups tab >> Click Create )

    2. This Traffic Group will only be related to ASM Configs synchronizations, so configure it as follows:

      1. Give a name , Type : Sync-only , Manual with Full Sync “you will change it to automatic after making the initial sync manually” , add all of the 4 devices >> move them from available to includes.
    3. Go to ( Security Tab >> options >> Application Security > Synchronization > and choose the previous/newly device group that related to ASM Sync only, like that:

    4. Go to overview (Device management >> Overview ) tab and make the initial sync manually.

    5. After That, Return back to Device groups TAB and then open the ASM Device group policy , and change it from manually to automatic Sync with incremental if you want that, you can leave it manual if you require to do the manual sync with each change in ASM policies, so the ASM Device group will be like this:

>> Now, you are done and you have the following :

  • HA pair ( Active/Standby ) in DC_A & HA pair ( Active/Standby ) in DC_B
  • you can now Sync only ASM Policies Updates from DC_A to DC_B and visa-versa ( Manually sync or Automatic Sync ) if you wish.

I have Tested it with all scenarios and it worked with me. 
Please Test it and let me know your comments.

Good luck :wink:

Hi Mohamed,

Thank you for your reply. actually i tried it but still not working,

  1. first when i reset the device Trust for all devices , all devices become active standalone.

  2. i added devices 2,3 and 4 to the first device, but still i see it as not trusted with first device, it showing as disconnected (specially for 3 and 4), i tried to sync between the devices but still not connected . Also, when trying to access Device Management  â€şâ€ş  Overview, it takes sometime to open and after sometime it is disconnect and i have to refresh the page to connect again. Kindly check the snapshot:

  3. then i configured HA between first and second devices, and it showing good as the HA.

  4. i tried to add device 4 to device 3 to do the HA, it gives an error that this device already associated with a trust domain

    so, if possible to test it again with the same scenario as i have here which is , i have HA pair in site 1 and HA pair in site 2 and need to do the ASM sync.

thank you so much for your help Mohamed.

Hi Hawary,

I deployed the same scenario.

Try to Reset the Trust again for all devices from each one and choose this option:

Then configure the Trust relationship for between all devices ( From Device 1 and add Devices 2,3,4 ). 
This step is crucial.

You have to break all old trust

I will keep my eyes on this thread to see if it worked with you or not , so feel free to reach out.

Hi Mohamed,

thank you for your concern. Actually that what i did, i selected “Generate New Self-Signed Authority” but same issue. i changed the DC2 devices to be in same VLAN as DC1 (ConfigSync IPs for all the device are in same VLAN) and it worked fine, so i guess it is a problem of my Lab’s network which not allowing the traffic between the 2 VLANs in DC1 and DC2. i already spoked with my network admin and will check for the communication between the VLANs, an will keep you updated.

again thank you for your concern.

Hi @Hawary ,

Good News,

Okay I will be keeping my attention here until it works with you.

You’re most welcome, it is an interesting deployment really, I learnt new deployment :slight_smile:

Any updates @Hawary ?

Hi Team,

So sorry for late to reply as i had another engagement. Yes, it was a problem of the network, there was a problem in communication between the VLANs and once solved, it is working fine. thank you Mohamed for your support. one last thing here, as the setup at the customer site is production, we agreed that in DC1, we will break the HA and do the ASM sync between secondary device in DC1 and devices in DC2 and test the ASM sync. we will create another  VLAN to be used in configsync which will be routed through the network and disable all the other VLANs on secondary device in DC1 (so there will be no duplicate once we break the HA).

Hello @Hawary ,

you’re most welcome…

First, if the idea of Syncing ASM configs meets your needs so please mark the first reply as an accepted solution to be valid for other deployments.

For VLAN : 
the 4 devices should be reachable to each other for the config sync >> it’s mandatory.

if you create new VLAN for example ip subnet /28 >>> so the 4 devices should be within the same subnet and devices should be reachable for Config sync.

Or you can allow routing between HA VLANs in DR and Main DC …

Hi Mohamed,

we can’t make routing between HA VLANs as the HA VLANs are direct connection between the devices in every DC. we will create a new VLAN on secondary device in DC1 (main DC) after break the HA and disable all the VLANs in secondary device except the new VLAN (which will work as ConfigSync VLAN) then make the ASM sync between secondary device in DC1 and devices in DC2. So, at this point, we will have primary device in DC1 working as active and serving users and in same time we are testing the ASM sync between devices secondary in DC1 and devices in DC2.

Hey @Hawary ,

So you’re going to create new VLAN for HA , This VLAN will be between ( DC1 & DC2 ).

if you’re going to do that , it’s great and it should work.

Hi Mohamed,

I have tried to build your scenario and it worked with me.

However, I have 2 questions

  1. The ASM policy sync from one to another was delayed about 1-2 minutes after it was completed.
  2. Just ASM policy sync into another, how can I sync BOT and DOS profile?

Thanks for your sharing!

Hi @Kyr ,

you’re welcome,

For the Delay >> take a packet capture on HA Vlan/port, then trigger the HA Sync and see timestamps for HA sync configs between the two devices, 
but this scenario shouldn’t make delay, 
try to disable ASM Sync and let just LTM Sync group and check.

For BOT and DoS yes you’re right DoS and BOT don’t support Sync-only device group it just L7 AWAF Policies, so you need Sync-Failover for DoS and BoT Defense profiles

Have a look here > myF5

Thanks

Hi Mohamed,

Thank you for your reply.

So I am going to apply this scenario to the production environment.

Do you have any advice for me? Which step must be done carefully?

Thank you and have a nice day!

Hello Kyr,

no further steps. 
Just make sure to take the UCSs and master Keys from your BIGIPs.

it’s sufficient that it tested in your lab and worked so you can proceed and let me know.

Hi Mohamed,

When choosing the Local Address to use for ConfigSync, can I use a separate subnet between DC A and DC B? For example, in DC A, I use subnet 192.168.1.0/24, and in DC B, I use subnet 192.168.2.0/24 to ensure these addresses are reachable via routing. The firewall policy just needs to allow port 4353, right?

Hi @Kyr ,

So you configure HA but with different subnets, Look I haven’t tried this approach before but the most important thing is to validate there is a reachability between the HA Pair ( TWO Devices ).

Yes allow this port 4353 over TCP.