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
-
The EIP pool in code and in EC2, and its protection against release.
-
Internet access opened by tag, from an address of the pool.
-
A member terminated under a download: the TCP reset, and the download resuming behind another pool address.
5.1 The EIP pool
-
In the repository, open
eip-pool/eu-west-1/pool.tf, line 31: the pool, withprevent_destroy. A destroy or a shrink of the pool fails at plan. Both regions use this file. -
In
config/regions/<region>.yaml,ns_max_pool_sizeis 16 addresses: the largest cluster, 12, plus room to replace every member of one AZ. -
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 table16 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
-
In the PROD session, try the internet:
curl -s -m 5 https://checkip.amazonaws.com || echo blockedIt prints
blocked. FortiAnalyzer logs the deny on a North-South member. -
In CloudShell, tag the instance:
aws ec2 create-tags --resources $PROD_ID --tags Key=Allow-To-Internet,Value=true -
In the PROD session, repeat the
curluntil it answers, within about a minute. The address it prints is one of the pool addresses from 5.1. -
On FortiManager, Policy & Objects, the North-South package: the policy
<prefix>-ns-to-internetsends the traffic out ofport3-egresswith 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.
-
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/$ISOcurlrather thanwcurl: the test needs the rate limit, the stall timeout and the resume. -
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 -
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 listThe owner's instance ID is
<member-id>in the table. -
In CloudShell, terminate the owner:
aws ec2 terminate-instances --instance-ids <member-id> -
In the PROD session, the download stops. Within about 20 s
curlretries and resumes where it stopped, through another member. -
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.isoThe address may differ from the first one, and is still one of the pool.
-
In EC2, Auto Scaling groups,
<prefix>-ns-fgt, Activity, the replacement launches and takes a free pool address.
Check
-
Every egress address you saw is one of the 16 pool addresses.
-
The download resumed after the reset, with no action from you.
Limits
-
The egress address can change inside the pool on failure, scaling and upgrade.
-
A continuous ping or fixed-port UDP flow through a failed member stalls until it pauses for 120 s. The GWLB reset that tells a client to reconnect exists for TCP only.
-
Unused pool addresses are billed while idle.
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 |