Iptables — различия между версиями
Материал из gptel_wiki
Admin (обсуждение | вклад) (→List) |
Admin (обсуждение | вклад) (→Отключение Firewalld) |
||
Строка 4: | Строка 4: | ||
# systemctl disable firewalld | # systemctl disable firewalld | ||
# iptables -L -v -n | # iptables -L -v -n | ||
+ | |||
+ | Необходимы доп. утилиты управления, без которых конфигурировать iptables невозможно. Например, нельзя будет перезапустить фаервол: | ||
+ | # systemctl restart iptables.service | ||
+ | Failed to issue method call: Unit iptables.service failed to load: No such file or directory. | ||
+ | Или добавить в автозапуск не получится: | ||
+ | # systemctl enable iptables.service | ||
+ | Failed to issue method call: No such file or directory | ||
+ | Чтобы подобных ошибок не было, установим необходимый пакет с утилитами: | ||
+ | # yum -y install iptables-services | ||
+ | Теперь можно добавить iptables в автозагрузку и запустить: | ||
+ | # systemctl enable iptables.service | ||
+ | # systemctl start iptables.service | ||
==2== | ==2== | ||
==3== | ==3== | ||
==4== | ==4== |
Текущая версия на 09:19, 21 декабря 2019
Содержание
Отключение Firewalld
# systemctl stop firewalld # systemctl disable firewalld # iptables -L -v -n
Необходимы доп. утилиты управления, без которых конфигурировать iptables невозможно. Например, нельзя будет перезапустить фаервол:
# systemctl restart iptables.service Failed to issue method call: Unit iptables.service failed to load: No such file or directory.
Или добавить в автозапуск не получится:
# systemctl enable iptables.service Failed to issue method call: No such file or directory
Чтобы подобных ошибок не было, установим необходимый пакет с утилитами:
# yum -y install iptables-services
Теперь можно добавить iptables в автозагрузку и запустить:
# systemctl enable iptables.service # systemctl start iptables.service