Our Sites become unavailable randomly
-
It's pretty vague to say poorly configured without saying what you mean exactly.
We need port 53 open because we host our external dns.
We have recursion disabled and places like intodns.com say our dns is fine.
This is why: http://www.circleid.com/posts/20150415_dns_based_ddos_diverse_options_for_attackers/
It doesn't take a lot to use your DNS servers as a contributor to a larger attack.
Your systems could be patched to the teeth, but if you've misconfigured your DNS servers, it doesn't matter. Traffic will look legit because it seems to be, but the responses from your DNS servers will be inappropriate.
-
I am pretty sure my DNS servers are configured just fine, like I said. The attack had zero affect on my actual Windows 2012 R2 VM.
Although I appreciate the DNS info and I will ultimately probably move DNS offsite, this is taking away from the obvious problems I experienced with PFSense.
First of all with PFBlockerNG configured to block all of Russia, I believe the traffic should have been entirely blocked to begin with.
Also since the DNS attack was not ending within PFSense but being forwarded to our VM, I am unsure how this was able to get PFSense to block DNS queries entirely.
-
Do you have a subscription for iblocklist or another provider to update pfBlocker? It generally works, but there isn't a bullet-proof way to say for sure that an IP is originating from a specific geographic location or not. Buying a subscription to a blocklist will help, but nothing it for sure.
Have you installed a packet sniffer to collect data from a mirrored port in front of and behind pfSense?
I'm not questioning your technical abilities, but check out the link I posted. Major ISPs with what they thought were properly configured DNS servers were being used as DDOS traffic sources. DNS is an ancient protocol in the scheme of things, and it can very easily be used as a source for DDOS. In a similar fashion, the same applies to SMTP servers. Remember it was only until a few years ago that you'd get a bounce message from a mail server that didn't have a correct address. Since then any mail server providing that kind of response is blacklisted because those responses were a great form of DDOS. The same applies to DNS. I can query your servers in such a way that they provide large responses to a destination IP address. There's no way to validate that the incoming request is authentic, so your server will readily respond to the request.
Scan your site to see if you are configured properly: http://openresolverproject.org
-
Like I said I have recursion disabled so I am not an open resolver.
However I will be moving DNS offsite, so that will be someone else's problem soon.
So at this point I am considering the DNS issue dead.
However I would like to have a clue about how passing 55 DNS connections though PFSense brings it down.
When configuring PFBlockerNG it did not say a subscription to a blocklist is required at all. I simply chose Russia from the top 20 list. If this doesn't work then why even have the package available. PFBlockerNG was one of the main reasons I have been recommending PFSense to people a lot over the last couple years.
Also Carp seems to not even see the problem and it never auto switched.
Having two PFSense boxes in Carp had previously given me a lot of confidence in the uptime and security of our network. However seeing that it can be brought down by a small attack from a single IP is disheartening to say the least.
-
Who said that pfbng table for russia include the IP(s) that were connecting to you? Did you validate that the IP was in the table/list? If they were then they would of been blocked. If the rule was active.
Even non recursive ns can have issues if specific queries are sent to them.. Maybe those connections were designed to take out your dns. Without a sniff its hard to say what they were doing or attempting to do or why you had issues.
Again why was your site down - was your ns not responding to public queries? Or you just had reports that your site was down from someone that was maybe also blocked by pfbng?
-
The site was down because PFSense stops allowing the queries through.
A reboot of the PFsense box immediately switches to the backup box and the website is online again. Once the main box actually comes back up the website remains available, until the next time DNS queries are blocked.
Our ISP told us a couple details about the attach. They said it was from Russia…
Unfortunately I am a networking Noob, I will admit it. I have never done a wire shark capture.
For the mean time the problem is solved. As soon as the IP was blocked on my ISPs side everything began working as expected.
I just want to learn so that our internally hosted sites stay live as much as possible.
-
Nothing in network security is "set and forget". For production sites, subscriptions to security services are strongly recommended. Additionally, you may want to put a security appliance in front of pfSense. Hosting your own sites comes with its challenges, and that's why hosting providers and colo's still exist. They may be able to make security investments that you cannot, and that's just a sign of how complex and aggressive internet-based attacks have become.
-
Lol, a security appliance in front of what we already consider to be our security appliance? Isn't that what PFSense is already, a firewall?
All this discussion is good, don't get me wrong, but it is all distracting from the real issue I was having.
-
Lol, a security appliance in front of what we already consider to be our security appliance? Isn't that what PFSense is already, a firewall?
All this discussion is good, don't get me wrong, but it is all distracting from the real issue I was having.
Unless you packet sniff, you won't be able to determine the root cause of the issue.
Additionally, yes, security is done in layers, not with one device. pfSense is a firewall and router, not a security appliance. That is a completely different beast.
For comparison, I have a Palo Alto appliance and an F5 in front of pfSense in our production data center. Whatever gets past the Palo Alto hits the F5, and if it gets past that, then it gets to pfSense. There are a few other things doing real-time packet capture and analysis in parallel too so I can acutely analyze attacks as they are modified by the attackers.
Even with all of that in place, it's still a challenge to fend off a determined attacker, and at times I need to escalate to the ISP to stop the attacks further up the pipe.
As I stated before, pfSense is not "set and forget" security. Nothing about network security is that way, and it's always a PITA to try to stay ahead of the meanies.
-
Lol, a security appliance in front of what we already consider to be our security appliance? Isn't that what PFSense is already, a firewall?
All this discussion is good, don't get me wrong, but it is all distracting from the real issue I was having.
Seems to be a common tact. People offer other solutions rather then explain why pfSense doesn't measure up to the task.
There is another thread here where it's been demonstrated that pfSense can be knocked-out with by a SYN "flood" of only a few mbps. One of the typical responses was; DDoS should be mitigated upstream. LOL.
Apparently some people just can't face the fact that pfSense seems to have some serious issues, just because their usage model doesn't seem to be affected (at the moment).
-
Lol, a security appliance in front of what we already consider to be our security appliance? Isn't that what PFSense is already, a firewall?
All this discussion is good, don't get me wrong, but it is all distracting from the real issue I was having.
Seems to be a common tact. People offer other solutions rather then explain why pfSense doesn't measure up to the task.
There is another thread here where it's been demonstrated that pfSense can be knocked-out with by a SYN "flood" of only a few mbps. One of the typical responses was; DDoS should be mitigated upstream. LOL.
Apparently some people just can't face the fact that pfSense seems to have some serious issues, just because their usage model doesn't seem to be affected (at the moment).
If you think pfSense is a security appliance, you're very misguided.
Using a stateful packet inspection device to mitigate a DDOS SYN flood–or any DDOS for that matter--is, well, a gross misunderstanding of what a security appliance is as opposed to what pfSense is. DDOS, by design, is a capacity overflow attack. That capacity could be bandwidth, states, or anything else.
-
If you think pfSense is a security appliance, you're very misguided.
Don't tell me. I never claimed pfSense is a security appliance. Tell these people. https://www.pfsense.org/
"Open Source Security"
"We make network security easy."
"Providing comprehensive network security solutions for the enterprise, large business and SOHO, pfSense solutions bring together the most advanced technology available to make protecting your network easier than ever before. Our products are built on the most reliable platforms and are engineered to provide the highest levels of performance, stability and confidence."
Using a stateful packet inspection device to mitigate a DDOS SYN flood–or any DDOS for that matter--is, well, a gross misunderstanding of what a security appliance is as opposed to what pfSense is. DDOS, by design, is a capacity overflow attack. That capacity could be bandwidth, states, or anything else.
Regardless of ones philosophy on where and how DDOS attacks should be mitigated, as little as a few mbps of any traffic should not take down a modern day firewall. If it does then it is flawed. And to simply say it's not the proper place, device, etc. to mitigate is just making excuses.
-
Regardless of ones philosophy on where and how DDOS attacks should be mitigated, as little as a few mbps of any traffic should not take down a modern day firewall. If it does then it is flawed. And to simply say it's not the proper place, device, etc. to mitigate is just making excuses.
You cannot mitigate DDOS with a stateful packet inspection device, period. That's what PF is. It's the wrong device to do the job.
A stateless packet device acting as a firewall can. That's why there's a market for $300K Palo Alto devices. You get what you pay for.
-
Actually, I'll admit I'm wrong. pfSense is a security appliance. That was my mistake.
The other mistake I made was classifying a DDOS as a security issue, which it is not.
-
You cannot mitigate DDOS with a stateful packet inspection device, period. That's what PF is. It's the wrong device to do the job.
Which misses the point. A few mbps of any traffic, regardless of whether or not is a DDOS or otherwise, should not take down a modern firewall. If it does then it is flawed.
-
You can't bring down a system with 55 DNS requests. Maybe if you're running Snort with auto-blocking and haven't whitelisted your own IPs, and the traffic triggers a signature in such a way that it ends up adding your own IPs to the block list. That's another explanation where a reboot would fix things, since it clears Snort's blocking table. Do you have Snort installed?
Only 55 connections almost certainly isn't an open resolver. Those usually rack up hundreds of thousands or more on fast connections, completely filling your upload to the extent your connection will be nearly unusable (the fun of UDP floods). Your datacenter would have said something if you were using far more bandwidth than usual (at least if it's a worthwhile DC). I also have doubts those 55 connections even have a relation to the problem, though it's possible. Did you get packet captures of what they were doing?
You also can't bring down a system with a few Mbps DDoS IF it's sized and configured accordingly to handle that kind of resource exhaustion attack.
-
We are a small company with not that much traffic at all.
I assure you that it was indeed the 55 udp connection that where routed to our Webserver which also runs our DNS. As soon as my ISP blocked the IP on their end the problem has not returned.
I am not running many packages, just: mailreport, OpenVPN Client Export Utility, pfBlockerNG, RRD Summary and Service Watchdog.
I did not even get details about the actual attacker. My ISP said they were from Russia and I just assumed then that it if he saw immediately that it was Russian then the IP must show up on a russian country blocklist. I assume you that pfBlockerNG is enabled and Russia and China from the top 20 list are the only two selected.
-
And what was the IP or IPs? Go to diag, tables - and pick your table that you created under country.. I assume it was ipv4 and not ipv6, etc.
So attached is very small sample, and where was the firewall rule using this?
This data is gotten from "Geolite Data by Maxmind Inc. - ISO 3166" Does not mean it is 100% inclusive of every single netblock that is russia, or maybe it wasn't russia and that is just what your isp said, maybe it was the Ukraine or something like that. Without the IP in question and validation that it was in your table to block, and that the table was used correctly in a rule, etc..
As to 55 connections taking him down.. Would depend on many factors - what that query was exactly, what version dns is he actually running? A misconfiguration in say rate limiting could shoot you in the foot.. You go no details to work with here at all to why his site was down..
Lets see this firewall rule that is blocking russia and china, and lets see the IP of this so called 55 connection attacker, etc.
-
I have no special settings at all (not using rate limiting), just a basic setup.
I have not created a table… Pretty sure pfBlockerNG does this on it's own. Also the rules are automatically created by pfBlockerNG.
I already stated DNS is running from Windows 2012 R2.
-
Regardless of ones philosophy on where and how DDOS attacks should be mitigated, as little as a few mbps of any traffic should not take down a modern day firewall. If it does then it is flawed. And to simply say it's not the proper place, device, etc. to mitigate is just making excuses.
You cannot mitigate DDOS with a stateful packet inspection device, period. That's what PF is. It's the wrong device to do the job.
A stateless packet device acting as a firewall can. That's why there's a market for $300K Palo Alto devices. You get what you pay for.
Wrong. It depends on some factors. But if your firewall is not capable to stop a 10mbit SYN flood when others can, then there is something wrong. Period.
Solution? Replace your "firewall" with a real firewall.