PDA

Click to See Complete Forum and Search --> : [RESOLVED] Opening PORTS in Ubuntu


abhijit
Nov 2nd, 2010, 09:54 AM
How do you open a Port in XUBuntu?

kfcSmitty
Nov 3rd, 2010, 10:44 AM
Based on this post: https://help.ubuntu.com/8.04/serverguide/C/firewall.html

The default firewall for Ubuntu is ufw.

You can open a port in ufw with the below command


sudo ufw allow 22


Or to allow it only from a specific IP


sudo ufw allow proto tcp from 192.168.0.2 to any port 22



Although they also mention you have to enable it, so maybe the firewall isn't on by default. If that is the case, you will need to deal with whatever you're using for an external firewall.

tr333
Nov 3rd, 2010, 08:05 PM
If you want a GUI to configure ufw, try installing gufw (apt:gufw).
gufw website (http://gufw.tuxfamily.org/)