Firewall Linux

Введение

Это статья про firewall Linux про firewall Windows читайте здесь

Основы

Разберем firewalld из CentOS

Чтобы проверить статус выполните

firewall-cmd --state

running

Чтобы проверить настройки выполните

firewall-cmd --list-all

public (active)
target: default
icmp-block-inversion: no
interfaces: enp0s3 enp0s8
sources:
services: dhcpv6-client http https ssh
ports: XXXX/tcp XXYY/tcp YYYY/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:

Проверить присутствует ли сервис (например ntp) в активной зоне

sudo firewall-cmd --get-services | grep ntp

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: