Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Open a TCP port in Ubuntu's ufw firewall

Answer:

To open a TCP port, e.g. 8080 in the Ubuntu's UFW firewall (Uncomplicated firewall)

# sudo ufw allow 8080/tcp
# sudo ufw reload

How to generate random password?

Answer:

Install the "makepasswd" package, for example, in Ubuntu, type

sudo apt-get install makepasswd

Then execute command

# makepasswd 

ShdDHNt7z

Or you can use another tool called pwgen

sudo apt-get install pwgen

and execute

# pwgen 8 10

It will generate 10 passwords with length equal to 8

How do I set up a firewall under Linux?

Answer:

In Linux, IPTables is the default firewall for kernels 2.4 and above.

IPTables is quite a complicated software which cannot be explained in just a few words, please refer to a more comprehensive howto:

https://help.ubuntu.com/community/IptablesHowTo

How do I use GPG?

Answer:

The following tutorial are recommended to learn more about GPG:

The GNU Privacy Guard HandBook: http://www.gnupg.org/gph/en/manual.html

What is security?

Answer:

Security, in a nutshell, is ensuring the Confidentiality, Integrity, and Availability of your systems and network.

Source: http://www.linuxsecurity.com/docs/colsfaq.html#2.2