usually it is achived this way
Code:
iptables -F
iptables -P INPUT ALLOW
iptables -P OUTPUT ALLOW
iptables -P FORWARD ALLOW
But be warned ... this practically removes any filtering you may have and sets all policies to accept. No filtering no closed ports no Masq no nothing