In the above graph:
- WAF “sandwich” private subnet would be the subnet in which your HiveShield instances live, set-up to autoscale up and down, as demand increases and subsides.
- The “ELB” on the left will be called the “Upstream ELB” in the instructions below
- The “ELB” on the right will be called the “Downstream ELB” in the instructions below
- Set-up your Upstream ELB pointing to an Autoscaled HiveShield instance, preferably C4 X-Large or C4 2X-Large.
- Set-up your Downstream ELB pointing to your Autoscaled web servers.
- Verify that your HiveShield instance cannot be reached directly from the outside World. It should only be accessible via your Upstream ELB.
- Your HiveShield instance, at the top of its Admin Panel, has a “health check URL”. Copy it and paste it into your Upstream ELB‘s health-check configuration.
- In HiveShield’s Admin Panel, enter the following:
- Add a Host for yoursite.com
- Add an alias for www.yoursite.com
- Or Vice-versa
- Load-Balanced Weighted IPs or Hosts: Create only one entry, and enter the Host Name for your Downstream ELB.
- Origin HTTP vs HTTPS: Pick HTTP unless you require end-to-end encryption inside your LAN.
- Trust X-Forwarded-For Header:
- Name: click “( Set to XFF )” link.
- Position: click “( Set to Last )” link.
- Add a Host for yoursite.com
- You can leave other settings “as-is”.