A typical firewall wont take care of a Dos attack But there are certain hardware firewalls that will but the are expensive and are not very effective. As for software firewalls i dont know.