Data Center

 View Only
Expand all | Collapse all

Urgent...How to add an SRX firewall cluster as external device in Apstra

  • 1.  Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 06-05-2025 16:33

    I am trying to add in Apstra a SRX cluster as external device to a pair of border leafs...I have two links from each border leaf going to SRX1 and SRX2 for a total of four links. I am struggling with whether to configure those four links within one single LAG or not. Any suggestion regarding this type of connectivity? Thanks

    this is documented somewhere or if someone has already done this, please let me know.

    many thanks...



    ------------------------------
    Mourad Kaddache
    ------------------------------


  • 2.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 06-18-2025 10:12

    Hi Mourad,

    If you want to use an LACP LAG on an SRX cluster, then you will need to configure a distinct LAG to each SRX node (so 2 LAGs).  In a typical deployment, when the primary SRX node is active, traffic will only be forwarded by the primary node, so you don't want your switches sending traffic to the secondary node at all (which would happen if you used a single LACP bundle - traffic would eventually be hashed across the links connected to the secondary node) otherwise it will be dropped.  

    In an SRX chassis cluster if you configure a reth interface (with two physical ports bound to it on each node), then enable LACP on it,  the SRX will automatically create sub-LAGs - essentially two distinct LACP bundles, one from each node.  These will both be in an active state, and then the SRX will use GARP towards the switch in order to hint at which link is currently active.

    You can read more about this at the link[1] below.

    [1] https://www.juniper.net/documentation/us/en/software/junos/chassis-cluster-security-devices/topics/topic-map/security-chassis-cluster-redundant-ethernet-lag-interfaces.html



    ------------------------------
    BEN DALE
    ------------------------------



  • 3.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 06-30-2025 10:32

    Ben, Thank you for your reply. However, beyond the generic explanation, what would really help is how to configure the links to the SRX cluster in Apstra, on one side, and how to do it on the SRX cluster. Are we using one reth interface or two reths interfaces on the cluster? how to physically attach the links from the border leafs to the SRX cluster? from each border leaf is one link going to node0 and the other link to node1, or both links going to the same node0 on the firewall side? same for the second border leaf...

    That would be very helpful if we get responses to those questions or if someone could point us to the right documentation. I looked everywhere and I could not find anything. This is a very common deployment for datacenter customers and I am surprised to find no related documentation from Juniper which owns both technologies...



    ------------------------------
    Mourad Kaddache
    ------------------------------



  • 4.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-08-2025 18:51

    The silence is deafening...It is very strange that no SME has stepped forward to help with this request. There are many people out there trying to set up a firewall cluster in an Apstra-driven datacenter and the absence of documentation (as far as I can tell) is very frustrating. Can someone from the Apstra team please help?



    ------------------------------
    Mourad Kaddache
    ------------------------------



  • 5.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-09-2025 18:24

    A colleague has just brought this to my attention Mourad. I'll get one of my team to help you out. They'll be in touch.  



    ------------------------------
    Andy Ford
    ------------------------------



  • 6.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-09-2025 18:26

    Hi Mourad, I am sorry you are finding the documentation frustrating. I would recommend looking at the DC Security JVD - https://www.juniper.net/documentation/us/en/software/jvd/jvd-data-center-ngfw-use-case/about_this_document.html

    Apstra does not fully manage the SRX but does model the SRX as an external generic system - https://www.juniper.net/documentation/us/en/software/apstra6.0/apstra-user-guide/topics/task/external-generic-create.html

    For further assistance, I would recommend opening up a Juniper support case against Apstra. 



    ------------------------------
    Kyle Baxter
    ------------------------------



  • 7.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-10-2025 10:54

    Hi Mourad,

    Are you operating the SRX pair as older-style chassis cluster or newer MNHA?  You used the term "cluster" in your original question, so I'll assume old-style for now.

    There's an old KB that describes how to create a RETH on an SRX cluster that's comprised of multiple links from each node:
    https://supportportal.juniper.net/s/article/SRX-EX-Link-aggregation-LACP-supported-non-supported-configurations-on-SRX-and-EX?language=en_US

    In  the topology example, imagine the EX4200 replaced by an EVPN/VXLAN fabric.

    Key points:

    1. All 4 links from the SRX chassis cluster can be part of the same RETH
    2. On the border leaf side, the links that connect to node0 are treated as one LAG, while the links that connect to node 1 are treated as a different LAG.
    3. I would strongly recommend using LACP in this design, and setting it for periodic fast if you're using something larger than a branch SRX.

    Once the LAG bundles are set correctly in Apstra, you can assign the appropriate Connectivity Templates to each.



    ------------------------------
    Greg Bensimon
    ------------------------------



  • 8.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-10-2025 15:04

    The other problem is that I have a virtual network (vlan)  that needs to connect to the FW cluster. I have configured a tagged subinterface on the FW for that vlan, but I cannot ping from the border leafs to the firewall on that vlan.  The route on the border leaf for the FW IP points to the local irb, not to the directly connected interface to the firewall.



    ------------------------------
    Mourad Kaddache
    ------------------------------



  • 9.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-10-2025 16:36

    What you see in the route table is what I'd expect.  From my sandbox, where 10.110.33.12 is host attached via ESI-LAG to the local leaf switch:

    aosadmin@stor-leaf-01> show route 10.110.33.12

    RED.inet.0: 18 destinations, 32 routes (18 active, 0 holddown, 0 hidden)
    Restart Complete
    @ = Routing Use Only, # = Forwarding Use Only
    + = Active Route, - = Last Active, * = Both

    10.110.33.12/32    *[EVPN/7] 2w0d 03:01:16
                        >  via irb.1310   ### <--- This is the local IRB
                        [EVPN/170] 1d 06:26:23
                           to 10.8.0.4 via ge-0/0/6.0   ### <--- These are the fabric links to the other leaf in the LAG
                        >  to 10.8.0.12 via ge-0/0/7.0  ### <---

    Check all the usual firewall things (e.g., "host-inbound-traffic system-services ...", policy, etc.).  Also make sure your leaf is learning the proper MAC and ARP entries for the firewall.  Here's where you will see the outbound LAG interface:

    aosadmin@stor-leaf-01> show arp no-resolve | match 10.110.33.12
    9a:35:0e:93:98:cc 10.110.33.12    irb.1310 [ae1.0]         permanent remote

    aosadmin@stor-leaf-01> show ethernet-switching table 9a:35:0e:93:98:cc

    MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static, C - Control MAC
               SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC,
               B - Blocked MAC)


    Ethernet switching table : 5 entries, 5 learned
    Routing instance : evpn-1
       Vlan                MAC                 MAC       GBP    Logical                SVLBNH/      Active
       name                address             flags     tag    interface              VENH Index   source
       vn1310              9a:35:0e:93:98:cc   DLR              ae1.0

    Last, remember that your L3 is in one or more routing instances.  Make sure you source your ping from the proper instance, and definitely not the default instance.



    ------------------------------
    Greg Bensimon
    ------------------------------



  • 10.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-10-2025 16:35

    Thank you Greg...The part that I am struggling with is that I have two border leafs connecting to the SRX cluster. How should I connect each border to the cluster? On the SRX cluster side, I do have one single reth interface with lacp active...



    ------------------------------
    Mourad Kaddache
    ------------------------------



  • 11.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-11-2025 11:07

    Referring back to the graphic showing the Supported Configuration in the KB I referenced earlier, if we think of that EX4200 as our data center fabric:

    • Interfaces ge-0/0/0 (member of ae1) and ge-0/01 (member of ae2) are interfaces on Border Leaf 1
    • Interfaces ge-0/0/2 (ae1) and ge-0/0/3 (ae2) are interfaces on Border Leaf 2


    ------------------------------
    Greg
    ------------------------------



  • 12.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-12-2025 19:49

    Tried that…I am currently dropping about 50% of traffic between border leafs and firewall cluster…is there any body that can help with an actual configuration ? Again, it is very hard to believe that among all the customers that implemented Apstra , none has the same case, ie firewall cluster connected to a pair of leaf devices…why is it so difficult for all the smart  Apstra SMEs to step in and answer? If this is a real community….



    ------------------------------
    Mourad Kaddache
    ------------------------------



  • 13.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-14-2025 11:16

    Your initial ask was about how to connect an SRX cluster to an Apstra-managed fabric.  We've answered that question, with a link to a KB that describes the proper configuration of the RETH and LAGs at each end.  If you're now at a point where you're losing packets between the border leaf pair and the firewall cluster, then I'd recommend reaching out to your account team and/or JTAC for additional support specific to your deployment.



    ------------------------------
    Greg
    ------------------------------



  • 14.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-14-2025 11:50

    Greg,

    You obviously have not tried it yourself. You would quickly have realized that the Apstra has no concept of ESI active/passive and forwards traffic thru all the members of the ESI while the firewall cluster is forwarding traffic only thru half of the members. This why about 50% of traffic is dropped.

    Anyways, I think I have figured it out. we cannot cross connect links between border leafs and Firewall nodes, ie border1 needs to connect only to node0 (or 1) but not to both. Configured this way, at least I do not drop any packet even if only two members of the reth member links are forwarding.

    Whatever you may say, there is a gap in the Apstra documentation regarding connecting to an SRX firewall cluster and I am very puzzled that none of the Apstra SMEs that I know of did not address this...I have been a Juniper employee for long enough (18 years) to know what's what...

    Have a great day...



    ------------------------------
    Mourad Kaddache
    ------------------------------



  • 15.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-14-2025 11:17

    Mourad.

    Please reach out to your local Juniper account team for assistance so we can determine your precise requirements a little better. This community page is only really designed to assist with generic Q&A. 

    BR

    Andy



    ------------------------------
    Andy Ford
    ------------------------------



  • 16.  RE: Urgent...How to add an SRX firewall cluster as external device in Apstra

    Posted 07-14-2025 11:51

    Andy,

    Connecting an Apstra-managed fabric with an SRX firewall cluster seems to me very much basic. In any case, I think I got it working now after a number of trials and errors.

    I just hope that someone addresses this use case in a JVD or whatever...

    Best regards



    ------------------------------
    Mourad Kaddache
    ------------------------------