Настройка фаервола linux mint

How to Install and Setup UFW on Linux Mint 21

Uncomplicated Firewall (UFW) is the widely used and easiest command-line tool for handling the network. It is designed specifically for easy firewall configuration through simple commands that run on the terminal. These rules may include the configuration of ports, IPs, and incoming and outgoing connections like allowing and blocking them.

This firewall is not powerful as compared to iptables, but a good start for beginners who are less familiar with firewall concepts. Also, it has a graphical interface to manage firewalls and can be launched using gufw command.

Install and Setup UFW on Linux Mint 21

Here’s a step-by-step guide to show how to set-up UFW on Linux Mint 21 system:

Step 1: Upgrade the system repository to refresh all packages; this would avoid any conflict in the further process:

Step 2: For firewall configuration, you should have sudo privileges. Confirm with the help of the command if you’re working as the root user:

Step 3: Firewall is pre-installed in all Linux distributions and in case it is deleted or you don’t find it, type the command to install it on your system:

Step 4: Immediately enable the Firewall service using the mentioned command:

Step 5: Confirm the UFW status from the following command to check whether it is running successfully on your system:

Step 6: In the next move, you must enable the Firewall by yourself through the following command:

The above command activates the firewall setting on your Linux Mint system.

Display UFW Applications Profiles

To display all the present applications supported by firewall, type:

Let’s apply the rule to any of the above-mentioned applications; like to enable both HTTP and HTTPS server; type the following command:

Читайте также:  Посмотреть объем озу linux

The same command applies for other applications as well in case you want to apply rules on these applications.

Set Firewall Policies

The firewall has set the default policies by allowing the outgoing connections and denying the incoming connections for security purpose. In case if you want to set it by yourself, you can change the policies anytime.

For denying the incoming connections, you should apply the following command:

For allowing the outgoing connections, you must use the following command:

Enable Firewall on SSH Connections

You can also enable firewall on SSH connections to improve the system security and for this, you will require executing the following command:

Check UFW Status

You can display the status of all the applied rules on the firewall by executing the following command:

You can use the verbose flag command given below to display a detailed status update:

You can also view firewall status updates in a numeric sequence through the following command:

Setup UFW Firewall Through GUI

The UFW can also be configured using GUI and for this, you will require installing a tool called “gufw” on Linux Mint 21 system from the following command:

After the installation, launch it on the terminal by typing the command “gufw” and this command requires authentication to ensure you’re working as a root user:

Once you enter the correct credentials (password); the firewall screen will open in front of you and you can set the rules according to your choice:

This completes the setup of Firewall on Linux Mint system.

Conclusion

UFW is a popular and easy frontend tool to manage a Netfilter Firewall in a Linux system. Its aim is to make firewall configuration easier for beginners. This guide has mentioned all the necessary details of setting up UFW through different commands and GUI tools. It depends on the user’s choice of which method they want to adopt because both can be used to setup a firewall on Linux Mint system.

About the author

Syeda Wardah Batool

I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.

Источник

How to open a firewall on Linux Mint

A firewall secures a network by allowing or blocking incoming and outgoing data packets based on security rules. An effective firewall analyzes incoming traffic using pre-established rules and avoids attacks by filtering suspicious or unsecured traffic. Firewalls protect computer traffic at ports, where external devices exchange information with a computer. Using such a firewall, you can block malicious traffic like viruses and hackers from entering your internal network from external sources. So, in this article, we will explain what a UFW firewall is and how you can open a firewall port on Linux Mint.

Читайте также:  Linux mint xfce оформление

What is UFW (Uncomplicated Firewall) in Linux Mint

UFW (Uncomplicated Firewall) is an easy-to-use and dependable firewall interface that provides a command-line interface for interacting with the firewall. Furthermore, if you prefer not to use the command line, UFW provides several graphical user interface (GUI) features that make dealing with the system a breeze. So to install UFW using a terminal, you need to type:

After its installation, you can verify if UFW is enabled or not by typing.

There are two possibilities when you execute this command on the terminal; either you will get the active status or inactive status:

As you can see, the UFW is active and running; the next step is to allow any application or a port with this firewall.

How to open firewall ports on Linux Mint

Many utilities in Linux use ports for communication and SSH is one of them. If you want to open the port of the OpenSSH for incoming and outgoing communication, you need to type:

The firewall may block the communication because of the port permission and if you are interested in opening the port for this purpose, then you can type:

22 is the port used by SSH, you can verify if these rules have been implemented or not by typing again.

You can also stop or disable any specific port for communication, and for that, you can type.

And after the verification, you will get the status mentioned below.

Conclusion

A firewall secures a network by monitoring incoming and outgoing data packets, allowing, or blocking them based on security rules. According to a set of security rules, firewalls monitor inbound and outbound network traffic and decide whether or not to allow data packets. This article shows you how you can open any specific port for communication using the UFW firewall in Linux Mint.

About the author

Taimoor Mohsin

Hi there! I’m an avid writer who loves to help others in finding solutions by writing high-quality content about technology and gaming. In my spare time, I enjoy reading books and watching movies.

Читайте также:  Veeam backup for linux

Источник

Как открыть брандмауэр на Linux Mint?

GIF в Linux

Советы и хитрости

Брандмауэр защищает сеть, разрешая или блокируя входящие и исходящие пакеты данных на основе правил безопасности. Эффективный брандмауэр анализирует входящий трафик с использованием заранее установленных правил и предотвращает атаки, фильтруя подозрительный или незащищенный трафик. Межсетевые экраны защищают компьютерный трафик на портах, где внешние устройства обмениваются информацией с компьютером. Используя такой брандмауэр, вы можете заблокировать вредоносный трафик, такой как вирусы и хакеры, от проникновения во внутреннюю сеть из внешних источников. Итак, в этой статье мы объясним, что такое брандмауэр UFW и как вы можете открыть порт брандмауэра в Linux Mint.

Что такое UFW (несложный брандмауэр) в Linux Mint

UFW (Несложный брандмауэр) — это простой в использовании и надежный интерфейс брандмауэра, который предоставляет интерфейс командной строки для взаимодействия с брандмауэром. Кроме того, если вы предпочитаете не использовать командную строку, UFW предоставляет несколько функций графического пользовательского интерфейса (GUI), которые упрощают работу с системой. Итак, чтобы установить UFW с помощью терминала, вам нужно ввести:

UFW (Несложный брандмауэр) — это простой в использовании и надежный интерфейс

После его установки вы можете проверить, включен ли UFW, набрав.

Есть две возможности, когда вы выполняете эту команду на терминале; либо вы получите активный статус, либо неактивный статус:

Как видите, UFW активен и работает; следующий шаг — разрешить любое приложение или порт с этим брандмауэром.

Как открыть порты брандмауэра в Linux Mint

Многие утилиты в Linux используют порты для связи, и SSH — одна из них. Если вы хотите открыть порт OpenSSH для входящей и исходящей связи, вам необходимо ввести:

Многие утилиты в Linux используют порты для связи, и SSH

Брандмауэр может блокировать связь из-за разрешения порта, и если вы хотите открыть порт для этой цели, вы можете ввести:

22 — это порт, используемый SSH, вы можете проверить, реализованы ли эти правила или нет, набрав еще раз.

это порт, используемый SSH, вы можете проверить

Вы также можете остановить или отключить любой конкретный порт для связи, и для этого вы можете ввести.

или отключить любой конкретный порт для связи

И после проверки вы получите статус, указанный ниже.

после проверки вы п

Заключение

Брандмауэр защищает сеть, отслеживая входящие и исходящие пакеты данных, разрешая или блокируя их в соответствии с правилами безопасности. В соответствии с набором правил безопасности межсетевые экраны отслеживают входящий и исходящий сетевой трафик и решают, разрешать или запрещать пакеты данных. В этой статье показано, как открыть любой конкретный порт для связи с помощью брандмауэра UFW в Linux Mint.

Источник

Оцените статью
Adblock
detector