http://ubuntuforums.org/showthread.php?t=1893751
Wanted to reopen the above thread cause its a great tutorial for UFW. But just wanted to add that instead of step1, to default block all ports just do:
ufw default deny outgoing
And rules go top to bottom, so for the deny rules in step 4, they have to go above the allow rules. You can edit /lib/ufw/user.rules and move them up.
Also a gui to make things easier is gufw.
cheers.
برچسب:
نویسنده: استخدام کار