Description Uncomplicated Firewall UFW (Uncomplicated Firewall) is the firewall configuration tool via the console by default in Ubuntu. Developed to facilitate the Iptables firewall configuration, ufw provides an easy way to create a host-based firewall IPv4 or IPv6.
sudo apt-get install ufw
Note:
firewall configuration
First, we run the firewall
with the following command sudo ufw
enable Enter password, and before long, we should see the following message
, we should write to the console:
sudo ufw default allow
If instead we want to block
all kinds of connections, you would enter the following command:
all kinds of connections, you would enter the following command:
sudo ufw default deny
If we want such
open ports for our beloved donkey (aMule), we must first determine the ports used for this purpose, we go to aMule, and click Options -> Connection, we look for the option that says standard TCP port (1234) and UDP port shelf (4321), now we know the ports used, we headed to the console, to open such ports with the following commands:
sudo ufw allow 1234/tcp
sudo ufw allow 4321/udp
When
close ports, would be the same command above, but instead be allow, deny must be, being as follows:
close ports, would be the same command above, but instead be allow, deny must be, being as follows:
sudo ufw deny 1234/tcp
sudo ufw deny
4321/udp
Note:
the protocol to use ( either tcp or udp) should be written in lowercase, it would port error. Change ports for example that you have in your settings aMule.
the protocol to use ( either tcp or udp) should be written in lowercase, it would port error. Change ports for example that you have in your settings aMule.
To make our team does not respond to ping
that you send, we must modify the file "/ etc / ufw / before.rules" with our favorite text editor, in my case I use Kate, and as always, before editing any file, make a backup copy if liam; so type the following to create the copy.
cp / etc / ufw / before.rules / etc / ufw / before.rules.original Now if we can edit without fear of damaging anything with the following command: sudo
kate / etc / ufw / before.rules And we seek the following line:
-A ufw-before-input-p icmp - icmp-type echo-request-j ACCEPT and we can only comment on it, putting a # in front of her, being as follows:
firewall restart
for changes to take effect.
for changes to take effect.
Installation from console
0 comments:
Post a Comment