Здравствуйте!
Прошу прощения, если подобный вопрос уже обсуждался, но я нуб, и нуб в отчаянии, ибо не могу понять причину проблемы. В локальной сети начали как-то очень странно обваливаться сайты - выборочно не прогружается ряд сайтов с сообщением connection refused.При том, что ряд других - прогружается. Мало того, при смене DNS-сервера в настройках DHCP сервера рабочие станции на Windows ловят не провисанный DNS, а отражают в графе «DNS-сервер» адрес локальный шлюза. Операционная система прокси - CentOS 7. Полез в прозрачный прокси, который мониторит данную подсеть И увидел, что встроенный фаерволл ругается. Новые правила принимать не хочет, ибо
firewall-cmd --reload
Error: COMMAND_FAILED: Direct: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Вывод состояния службы выдает вот что. systemctl status firewalld -l
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-08-02 13:45:25 +10; 7h ago
Docs: man:firewalld(1)
Main PID: 1047 (firewalld)
CGroup: /system.slice/firewalld.service
└─1047 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
Aug 02 13:45:33 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Aug 02 13:45:33 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: COMMAND_FAILED: Direct: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Aug 02 15:43:27 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Aug 02 15:43:27 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: COMMAND_FAILED: Direct: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Aug 02 15:43:34 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Aug 02 15:43:34 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: COMMAND_FAILED: Direct: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Aug 02 16:18:13 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Aug 02 16:18:13 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: COMMAND_FAILED: Direct: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Aug 02 19:56:46 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Aug 02 19:56:46 178-218-111-83-pool.kms.multinex.ru firewalld[1047]: ERROR: COMMAND_FAILED: Direct: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore: line 7 failed
Я может чего-то не догоняю, но сама служба iptables в системе отключена, и ранее был настроен (не мной) firewall-cmd. Но вывод правл дает это iptables -L -n -v --line-numbers
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 2563 304K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
2 0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
3 7086 501K INPUT_direct all -- * * 0.0.0.0/0 0.0.0.0/0
4 7086 501K INPUT_ZONES_SOURCE all -- * * 0.0.0.0/0 0.0.0.0/0
5 7086 501K INPUT_ZONES all -- * * 0.0.0.0/0 0.0.0.0/0
6 29 1292 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate INVALID
7 5499 375K REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 156K 122M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
2 0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
3 6796 420K FORWARD_direct all -- * * 0.0.0.0/0 0.0.0.0/0
4 6796 420K FORWARD_IN_ZONES_SOURCE all -- * * 0.0.0.0/0 0.0.0.0/0
5 6796 420K FORWARD_IN_ZONES all -- * * 0.0.0.0/0 0.0.0.0/0
6 6795 420K FORWARD_OUT_ZONES_SOURCE all -- * * 0.0.0.0/0 0.0.0.0/0
7 6795 420K FORWARD_OUT_ZONES all -- * * 0.0.0.0/0 0.0.0.0/0
8 14 560 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate INVALID
9 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT 6637 packets, 850K bytes)
num pkts bytes target prot opt in out source destination
1 6637 850K OUTPUT_direct all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD_IN_ZONES (1 references)
num pkts bytes target prot opt in out source destination
1 6795 420K FWDI_internal all -- enp4s0 * 0.0.0.0/0 0.0.0.0/0 [goto]
2 1 40 FWDI_external all -- enp2s0 * 0.0.0.0/0 0.0.0.0/0 [goto]
3 0 0 FWDI_public all -- + * 0.0.0.0/0 0.0.0.0/0 [goto]
Chain FORWARD_IN_ZONES_SOURCE (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 FWDI_drop all -- * * 171.25.193.0/24 0.0.0.0/0
Chain FORWARD_OUT_ZONES (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 FWDO_internal all -- * enp4s0 0.0.0.0/0 0.0.0.0/0 [goto]
2 6795 420K FWDO_external all -- * enp2s0 0.0.0.0/0 0.0.0.0/0 [goto]
3 0 0 FWDO_public all -- * + 0.0.0.0/0 0.0.0.0/0 [goto]
Chain FORWARD_OUT_ZONES_SOURCE (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 FWDO_drop all -- * * 0.0.0.0/0 171.25.193.0/24
Chain FORWARD_direct (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 DROP all -- enp4s0:1 enp4s0 0.0.0.0/0 0.0.0.0/0
2 0 0 DROP all -- enp4s0 enp4s0:1 0.0.0.0/0 0.0.0.0/0
Chain FWDI_drop (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 FWDI_drop_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 0 0 FWDI_drop_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 0 0 FWDI_drop_allow all -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FWDI_drop_allow (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_drop_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_drop_log (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_external (1 references)
num pkts bytes target prot opt in out source destination
1 1 40 FWDI_external_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 1 40 FWDI_external_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 1 40 FWDI_external_allow all -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
Chain FWDI_external_allow (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW mark match 0x64
2 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW mark match 0x65
3 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW mark match 0x66
4 1 40 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW mark match 0x67
5 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW mark match 0x68
Chain FWDI_external_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_external_log (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_internal (1 references)
num pkts bytes target prot opt in out source destination
1 6795 420K FWDI_internal_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 6795 420K FWDI_internal_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 6795 420K FWDI_internal_allow all -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
Chain FWDI_internal_allow (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_internal_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_internal_log (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_public (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 FWDI_public_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 0 0 FWDI_public_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 0 0 FWDI_public_allow all -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
Chain FWDI_public_allow (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_public_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDI_public_log (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_drop (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 FWDO_drop_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 0 0 FWDO_drop_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 0 0 FWDO_drop_allow all -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FWDO_drop_allow (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_drop_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_drop_log (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_external (1 references)
num pkts bytes target prot opt in out source destination
1 6795 420K FWDO_external_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 6795 420K FWDO_external_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 6795 420K FWDO_external_allow all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FWDO_external_allow (1 references)
num pkts bytes target prot opt in out source destination
1 6781 419K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW
Chain FWDO_external_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_external_log (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_internal (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 FWDO_internal_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 0 0 FWDO_internal_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 0 0 FWDO_internal_allow all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FWDO_internal_allow (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_internal_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_internal_log (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_public (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 FWDO_public_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 0 0 FWDO_public_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 0 0 FWDO_public_allow all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FWDO_public_allow (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW
2 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW
Chain FWDO_public_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain FWDO_public_log (1 references)
num pkts bytes target prot opt in out source destination
Chain INPUT_ZONES (1 references)
num pkts bytes target prot opt in out source destination
1 5587 384K IN_internal all -- enp4s0 * 0.0.0.0/0 0.0.0.0/0 [goto]
2 1499 118K IN_external all -- enp2s0 * 0.0.0.0/0 0.0.0.0/0 [goto]
3 0 0 IN_public all -- + * 0.0.0.0/0 0.0.0.0/0 [goto]
Chain INPUT_ZONES_SOURCE (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 IN_drop all -- * * 171.25.193.0/24 0.0.0.0/0
Chain INPUT_direct (1 references)
num pkts bytes target prot opt in out source destination
Chain IN_drop (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 IN_drop_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 0 0 IN_drop_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 0 0 IN_drop_allow all -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain IN_drop_allow (1 references)
num pkts bytes target prot opt in out source destination
Chain IN_drop_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain IN_drop_log (1 references)
num pkts bytes target prot opt in out source destination
Chain IN_external (1 references)
num pkts bytes target prot opt in out source destination
1 1499 118K IN_external_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 1499 118K IN_external_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 1499 118K IN_external_allow all -- * * 0.0.0.0/0 0.0.0.0/0
4 130 5180 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
Chain IN_external_allow (1 references)
num pkts bytes target prot opt in out source destination
1 175 10460 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 ctstate NEW
2 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10001 ctstate NEW
3 1 60 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000 ctstate NEW
Chain IN_external_deny (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 REJECT all -- * * 51.15.96.247 0.0.0.0/0 reject-with icmp-port-unreachable
2 0 0 REJECT all -- * * 171.25.193.0/24 0.0.0.0/0 reject-with icmp-port-unreachable
3 0 0 REJECT all -- * * 51.15.47.17 0.0.0.0/0 reject-with icmp-port-unreachable
4 0 0 REJECT all -- * * 80.66.135.13 0.0.0.0/0 reject-with icmp-port-unreachable
Chain IN_external_log (1 references)
num pkts bytes target prot opt in out source destination
Chain IN_internal (1 references)
num pkts bytes target prot opt in out source destination
1 5587 384K IN_internal_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 5587 384K IN_internal_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 5587 384K IN_internal_allow all -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
Chain IN_internal_allow (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW mark match 0x69
2 0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:631 ctstate NEW
3 0 0 ACCEPT udp -- * * 0.0.0.0/0 224.0.0.251 udp dpt:5353 ctstate NEW
4 1179 92826 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:137 ctstate NEW
5 73 16589 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:138 ctstate NEW
6 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 ctstate NEW
7 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10001 ctstate NEW
8 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3128 ctstate NEW
9 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000 ctstate NEW
Chain IN_internal_deny (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 REJECT all -- * * 171.25.193.0/24 0.0.0.0/0 reject-with icmp-port-unreachable
Chain IN_internal_log (1 references)
num pkts bytes target prot opt in out source destination
Chain IN_public (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 IN_public_log all -- * * 0.0.0.0/0 0.0.0.0/0
2 0 0 IN_public_deny all -- * * 0.0.0.0/0 0.0.0.0/0
3 0 0 IN_public_allow all -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
Chain IN_public_allow (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 ctstate NEW
2 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000 ctstate NEW
Chain IN_public_deny (1 references)
num pkts bytes target prot opt in out source destination
Chain IN_public_log (1 references)
num pkts bytes target prot opt in out source destination
Chain OUTPUT_direct (1 references)
num pkts bytes target prot opt in out source destination
В каком направлении мне вообще стоит копать, и что хотя бы приблизительно можно сделать? Заранее благодарен