News for hackers. Stuff that matters.
Re:AWS Best Practices for DDoS Resiliency [pdf] by chdir on Saturday July 04, 2015 @01:49PM (#9830919)
Kind of agree with all those who say that Cloudflare is still a better option. But how do you tackle their lack of automatic failover ?

https://support.cloudflare.com/hc/en-us/articles/200168916-C...

"the system currently does not have the functionality to automatically select the next available server if one of the servers in the group goes down"

Re:AWS Best Practices for DDoS Resiliency [pdf] by jgrahamc on Saturday July 04, 2015 @02:25PM (#9831065)
We're fixing that.
Re:AWS Best Practices for DDoS Resiliency [pdf] by manigandham on Saturday July 04, 2015 @06:09PM (#9831759)
Quick question: Would this include global load-balancing across different regions? We use cloudflare for a few different services but balancing across regions requires a complicated setup with yet another DNS/traffic layer in between, would be great if this is something CF could offer (or maybe it does at the Enterprise level)?
Re:AWS Best Practices for DDoS Resiliency [pdf] by tpg on Saturday July 04, 2015 @04:15PM (#9831461)
The simplest option I'm aware of is to point CloudFlare to your load balancer, and have it handle removal of failed backend nodes.

The only big downside is that on AWS you can't have an elastic IP associated with an elastic load balancer, so you either have to run your own HA haproxy/nginx/whatever cluster in EC2 in order to have a single IP to point CloudFlare to.

If you can live with a subdomain you can point that cname to an ELB.

Alternatively, CloudFlare's API is pretty reasonable, so you could home-brew health checks that de-register dead nodes from CloudFlare. Even a simple nagios check handler could do that.

Re:AWS Best Practices for DDoS Resiliency [pdf] by manigandham on Saturday July 04, 2015 @06:12PM (#9831767)
CloudFlare has CNAME flattening so you can still have the apex point to a CNAME and CF will automatically keep up to date with the correct IP using the TTLs and broadcast an A record correct to RFC standards.

https://support.cloudflare.com/hc/en-us/articles/200169056-C...

Re:AWS Best Practices for DDoS Resiliency [pdf] by derefr on Saturday July 04, 2015 @06:37PM (#9831818)
Do you know if CloudFlare's apex CNAME support works coupled to Route53's health-check-based RRDNS? I know that AWS's own DNS reflects the health-check-based changes to the round-robin pools instantaneously, but I have no idea what sort of TTLs they emit.
Re:AWS Best Practices for DDoS Resiliency [pdf] by manigandham on Saturday July 04, 2015 @08:20PM (#9832040)
Haven't used Route53 recently but those TTLs should be configurable by you. Obviously the lower the better to keep propagation time low for changes. CloudFlare has more info in the blog post [1] that says they do respect the TTLs that are given for records and then cache the value until expiration so I'm assuming they also send along the same TTL value of the original lookup.

There's no way to ensure the rest of the internet will handle it correctly though with all the proxies and DNS caches in the middle and low TTLs can also add latency to end-users who might have to constantly do a DNS lookup on new connections.

If you're using CloudFlare's full service (instead of just DNS), then it'll be seamless because their IPs don't change.

[1] https://blog.cloudflare.com/introducing-cname-flattening-rfc...

Re:AWS Best Practices for DDoS Resiliency [pdf] by nullrouted on Sunday July 05, 2015 @12:37AM (#9832486)
Use runbook.io and load balancers.....done.