If you have no background in configuring iptables, I would recommend spending a significant amount of time studying up on the topic. This is not a trivial issue, and it's critical that you have a clear understanding of what you are implementing. The very first place I'd recommend looking is
unSpawn's Security References right here in this forum, esp post #3.
Good luck with it and welcome to LQ. -- J.W.