Are you working on Red hat Linux ? When I was working on red hat I faced a problem in inserting the iptables rules properly. If you are also working on Red Hat you might face a similar problem. I searched and found a quick solution on how to insert iptables rules in red hat linux.
Kindly follow the below mentioned steps in order.