Гость
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / iptables: Applying firewall rules: Another app is currently holding the xtables lock / 4 сообщений из 4, страница 1 из 1
24.12.2016, 11:37
    #39374319
Вячеслав Любомудров
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
iptables: Applying firewall rules: Another app is currently holding the xtables lock
OEL6.4
После апгрейда на OEL6.8 (yum update) перестал запускаться сервис iptables
Код: plaintext
1.
2.
3.
[root@ol-yum-repo init.d]#  service iptables start 
iptables: Applying firewall rules: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
                                                           [FAILED]
Точнее, именно восстановление старых правил
Код: plaintext
1.
2.
[root@ol-yum-repo init.d]#  iptables-restore /etc/sysconfig/iptables 
Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
Причем, ввод вручную проходит нормально
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
[root@ol-yum-repo init.d]#  cat /etc/init.d/iptables.start 
#!/bin/bash

[ -f /etc/sysconfig/iptables-config ] && . /etc/sysconfig/iptables-config

while read r
do
    echo $r | egrep '^-' >/dev/null
    rc=$?
    if [ $rc -eq 0 ]
    then
        iptables $r
    fi
done < /etc/sysconfig/iptables
[root@ol-yum-repo init.d]#  sh /etc/init.d/iptables.start 
[root@ol-yum-repo init.d]#  service iptables status 
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination
1    ACCEPT     tcp  --  192.168.0.0/16       0.0.0.0/0           tcp dpt:80
2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
3    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0
4    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
6    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination
Текущие версии
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
[root@ol-yum-repo init.d]#  cat /etc/*elease* 
Oracle Linux Server release 6.8
NAME="Oracle Linux Server"
VERSION="6.8"
ID="ol"
VERSION_ID="6.8"
PRETTY_NAME="Oracle Linux Server 6.8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:6:8:server"
HOME_URL=" https://linux.oracle.com/" 
BUG_REPORT_URL=" https://bugzilla.oracle.com/" 

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 6"
ORACLE_BUGZILLA_PRODUCT_VERSION=6.8
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=6.8
Red Hat Enterprise Linux Server release 6.8 (Santiago)
Oracle Linux Server release 6.8
cpe:/o:oracle:linux:6:8:server

[root@ol-yum-repo init.d]#  yum info iptables 
Loaded plugins: ulninfo
Installed Packages
Name        : iptables
Arch        : x86_64
Version     : 1.4.7
Release     : 16.0.3.el6
Size        : 856 k
Repo        : installed
From repo   : ol6_latest
Summary     : Tools for managing Linux kernel packet filtering capabilities
URL         :  http://www.netfilter.org/ 
License     : GPLv2
Description : The iptables utility controls the network packet filtering code in the
            : Linux kernel. If you need to set up firewalls and/or IP masquerading,
            : you should install this package.
Это как-то лечится?
Или хотя бы как-то объясняется?

PS. Никаких других пакетов, использующих iptables и могущих держать блокировку xtables (вроде firewall) нет. Ставился сервер 6.4 в конфигурации Minimal, а потом выполнен yum update
...
Рейтинг: 0 / 0
24.12.2016, 11:41
    #39374321
Вячеслав Любомудров
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
iptables: Applying firewall rules: Another app is currently holding the xtables lock
Э-ээ, забыл написать, что:
Всем привет, с наступающим Рождеством
...
Рейтинг: 0 / 0
11.01.2017, 12:13
    #39382172
sgu
sgu
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
iptables: Applying firewall rules: Another app is currently holding the xtables lock
Видимо у них в последней версии пакета iptables закралась некая бага.
У меня сервера обновились до iptables-1.4.7-16.0. 3 .el6.x86_64 и iptables при старте начал выкидывать такую-же ошибку.
На данный момент в репозиториях оракла только предыдущая версия iptables-1.4.7-16.0. 2 .el6.x86_64.rpm (битую они убрали)
Что-б избавится от ошибки - нужно откатится на предыдущую версию пкета:
Код: sql
1.
yum downgrade iptables iptables-ipv6
...
Рейтинг: 0 / 0
12.01.2017, 07:51
    #39382853
Вячеслав Любомудров
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
iptables: Applying firewall rules: Another app is currently holding the xtables lock
Дык откатился, конечно
...
Рейтинг: 0 / 0
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / iptables: Applying firewall rules: Another app is currently holding the xtables lock / 4 сообщений из 4, страница 1 из 1
Целевая тема:
Создать новую тему:
Автор:
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]