5. North-South

Test cases 3 and 7: internet egress goes through send-to, leaves from a fixed EIP pool with no NAT gateway, and is opened by tag.

What you will see

5.1 The EIP pool

  1. In the repository, open eip-pool/eu-west-1/pool.tf, line 31: the pool, with prevent_destroy. A destroy or a shrink of the pool fails at plan. Both regions use this file.

  2. In config/regions/<region>.yaml, ns_max_pool_size is 16 addresses: the largest cluster, 12, plus room to replace every member of one AZ.

  3. In CloudShell, list the pool:

    aws ec2 describe-addresses --filters Name=tag:cf-eip-pool,Values=$PREFIX-ns \
      --query 'Addresses[].[Tags[?Key==`Name`]|[0].Value,PublicIp,AssociationId!=`null`]' --output table
    

    16 addresses, three associated, one per North-South member. The others wait for scale-out and replacements, and are billed while idle.

The pool lives in its own Terraform root, kept when the rest of the stack is destroyed, so the addresses your partners allow-list stay the same.

5.2 Open the internet by tag

  1. In the PROD session, try the internet:

    curl -s -m 5 https://checkip.amazonaws.com || echo blocked
    

    It prints blocked. FortiAnalyzer logs the deny on a North-South member.

  2. In CloudShell, tag the instance:

    aws ec2 create-tags --resources $PROD_ID --tags Key=Allow-To-Internet,Value=true
    
  3. In the PROD session, repeat the curl until it answers, within about a minute. The address it prints is one of the pool addresses from 5.1.

  4. On FortiManager, Policy & Objects, the North-South package: the policy <prefix>-ns-to-internet sends the traffic out of port3-egress with source NAT.

5.3 Terminate a member under a download

A North-South member holds NAT state that cannot move. When it fails, the GWLB resets its TCP flows, and the client reconnects through another member, behind that member's pool address.

  1. In the PROD session, note your egress address, then start a slow download of the Debian 13 installer. It resumes by itself when the connection breaks:

    curl -s https://checkip.amazonaws.com
    BASE=https://cdimage.debian.org/debian-cd/current/amd64/iso-cd
    ISO=$(curl -s $BASE/SHA256SUMS | awk '/netinst.iso$/ {print $2; exit}')
    curl -L -o ~/debian.iso -C - --retry 10 --retry-all-errors \
      --speed-time 20 --speed-limit 1 --limit-rate 1M $BASE/$ISO
    

    curl rather than wcurl: the test needs the rate limit, the stall timeout and the resume.

  2. In CloudShell, list the North-South members:

    aws ec2 describe-instances --filters Name=tag:Name,Values=$PREFIX-ns-fgt Name=instance-state-name,Values=running \
      --query 'Reservations[].Instances[].[InstanceId,PublicIpAddress,Placement.AvailabilityZone]' --output table
    
  3. On your laptop, open SSH to each member, ssh admin@<member-address>, and look for the download. Only the owner holds the firewall session.

    diagnose sys session filter clear
    diagnose sys session filter src <prod-ip>
    diagnose sys session filter dport 443
    diagnose sys session list
    

    The owner's instance ID is <member-id> in the table.

  4. In CloudShell, terminate the owner:

    aws ec2 terminate-instances --instance-ids <member-id>
    
  5. In the PROD session, the download stops. Within about 20 s curl retries and resumes where it stopped, through another member.

  6. In the PROD session, stop it with Ctrl+C, print the address again and delete the file:

    curl -s https://checkip.amazonaws.com
    rm -f ~/debian.iso
    

    The address may differ from the first one, and is still one of the pool.

  7. In EC2, Auto Scaling groups, <prefix>-ns-fgt, Activity, the replacement launches and takes a free pool address.

Check

Limits

Where to look

What Where
Pool addresses EC2, Elastic IPs, tag cf-eip-pool
Pool code eip-pool/eu-west-1/pool.tf, config/regions/<region>.yaml
Egress flows and NAT FortiAnalyzer, Log View, FortiGate, Traffic
Replacement EC2, Auto Scaling groups, <prefix>-ns-fgt, Activity
← 4. East-West6. Scaling →