02 January 2012
How To Open A Specific Port Under Ubuntu From The Terminal
In this tutorial we will show you how to open ports in Ubuntu. This will be helpful when installing some applications and tools that require to open certain ports to run smoothly.
You can use a firewall frontend with GUI (Firestarter) to open ports in Ubuntu, but in this guide we will see how to do it via the terminal.
Open the terminal (Ctrl+Alt+T) and run this command (root privileges is required):
sudo iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 8289 -j ACCEPT
Replace 8289 with the port you want to open.