iptables - close all ports without specify ports

hi...

how to create iptables rules to block all traffic without this port destination

[CPANEL]
tcp *:2082
tcp *:2083
tcp *:2086
tcp *:2087

[MAIL]
tcp *:pop3
tcp *:imap
tcp *iptables - close all ports without specify portsmtp

[WWW]
tcp *:http
tcp *:https

[OTHER]
tcp *:tcpmux
tcp *:ftp
tcp *iptables - close all ports without specify portssh

thanks for help

ps. sorry 4 my eng.. iptables - close all ports without specify ports

 

 

 

 

Top