iptables -I INPUT -p tcp --dport 4001 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I INPUT -p tcp --sport 4001 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I INPUT -p tcp --dport 5001 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I INPUT -p tcp --sport 5001 -m state --state NEW,ESTABLISHED -j ACCEPT