iptables - Недавно добавленное правило исчезает за несколько секунд Гостеприимный Сервер

Я должен добавить правило открыть порт Mosquitto:

$ sudo iptables -I INPUT 5 -p tcp --dport 1883 -j ACCEPT
$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:1883
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:2812
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:xmpp-client
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:5555
ACCEPT     tcp  --  anywhere             anywhere             tcp dpts:http-alt:8099
ACCEPT     tcp  --  anywhere             anywhere             tcp dpts:4380:4400
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:17443
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:17441
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:socks
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:1443
ACCEPT     all  --  appscale-image0      anywhere            
DROP       all  --  anywhere             anywhere            

Несколько секунд спустя недавно добавленная строка исчезает как указано ниже:

$  sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:2812
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:xmpp-client
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:5555
ACCEPT     tcp  --  anywhere             anywhere             tcp dpts:http-alt:8099
ACCEPT     tcp  --  anywhere             anywhere             tcp dpts:4380:4400
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:17443
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:17441
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:socks
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:1443
ACCEPT     all  --  appscale-image0      anywhere            
DROP       all  --  anywhere             anywhere            

Понимание этого таинственного исчезновения? Нет никакого выполнения задания крона. ufw отключен. Я не уверен, как проверить, какая базовая услуга брандмауэра работает.

0
задан 7 August 2017 в 09:40

0 ответов

Другие вопросы по тегам:

Похожие вопросы: