3

I've just installed Ubuntu 12.04 and am completely stuck on how to administer the system. Initially I just want to open a port on the firewall, but there doesn't seem to be any obvious way to do that.

I've found a "System Settings" panel, but there is almost nothing on it, and the network panel is pretty empty too. I've clicked on various things, but there is almost nothing anywhere. I can't even find an "Applications" menu.

Am I missing something here?

1

1 Answer 1

1

Initially I just want to open a port on the firewall, but there doesn't seem to be any obvious way to do that.

Ubuntu ships with no open network ports, but ports are opened by applications so if you have installed or enabled network services (network file sharing, web servers, ssh, remote desktop, etc), then you may have open ports.

Open a terminal session (control alt f2) and after you paste this it will show you open ports:

sudo netstat -ntlup

From the UFW wiki page.

The easiest way to close ports is to use ufw. This will show if ufw is active:

sudo ufw status

(by default it is active).

To allow incoming tcp and udp packet on port 53

sudo ufw allow 53

To deny tcp and udp packets on port 53

sudo ufw deny 53

System Settings

Ubuntu Tweak is a tool someone created that adds lots of settings. More info here. You can install it with these commands:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

enter image description here

But ... I would advice to ask more about specific settings. Mosttimes it is easier just to open a text file and edit that. After you are a command line junkie like some of us you will be a lot quicker setting up a system than with any GUI.

Network

Rightclick your network connection at the top right. It will have a properties option with all settings for networking.

2
  • Many thanks for the very helpful answer.I'm actually fine working on the command-line, but I'm just puzzled as to why Ubuntu have done this? I didn't need to meddle on the command-line to do this stuff in previous versions so its seems strange that it's become more difficult to do it now.
    – linucks
    Nov 15, 2012 at 15:55
  • Not a problem @linucks :) The more specific the question the better suited for AU. And do not forget to upvote or accept an answer to your question (ofc. the best one you get should be the accepted one ;) )
    – Rinzwind
    Nov 15, 2012 at 15:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .