Stefan H.
Stefan H.

Combine iptables and ufw

July 6, 2013 6.3k views
Hey! Is it correct that ufw and iptables can be combined, the thing is that i would lve some help on getting a iptables up that block dos/syn flood / and what else to block :D i a little on thin ice on if i should add : iptables -P INPUT DROP iptables -P FORWARD DROP iptables -P OUTPUT before OR after i have made som ruleset?
2 Answers
Where did you learn "that ufw and iptables can be combined?"

According to this article (Why ufw Does Not Need A GUI ) that's already the case (albeit it's a little dated), in that ufw uses/manipulates iptables. That is, ufw sits on top of iptables.

According to the Ubuntu Manpages, "ufw uses many user-defined chains in addition to the built-in iptables chains." The Ubuntu Manpage on ufw also provides some examples.

In re: to a ufw HowTo, DigitalOcean has a nice tutorial: How to Setup a Firewall with UFW on an Ubuntu Cloud Server
Could have been i misread :)
Have another answer? Share your knowledge.