http://www.justlinux.com/nhf/Security/IPtables_Basics.html
This is the tut I used to get the hang of IPtables before I went to harder stuff.

I am a slapt-get fan, I haven't used swaret yet.

...