iptables -I INPUT -p tcp --dport 7777 -j ACCEPT iptables -I INPUT -p tcp --dport 7778 -j ACCEPT should do it
I tried this iptables -I INPUT -p tcp --dport 7777 -j ACCEPT iptables -I INPUT -p tcp --dport 7778 -j ACCEPT But i'm not able to connect to that port an i can only connect when i disable firewal
How is your network setup? Is there any router or firewalls in front of your linux box? Also if you can show the results of /sbin/iptables -L
iptables -I INPUT -p tcp --dport 7777 -j ACCEPT iptables -I INPUT -p tcp --dport 7778 -j ACCEPT iptables save run it OK. Good Luck