iptables -I INPUT -p tcp --dport 3000 -j ACCEPT

should do what you want.

 

If you want rules saved so after reboot all will be ok, do:

service iptables save


Note: 
if you want to access without the port (ipaddress:3000) 
run this command

iptables -I INPUT -p tcp --dport 80 -j ACCEPT

then save and reboot:
service iptables save








Advertisements
Posted in: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s