Мне нужно добавить правило для открытия порта 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
Любое понимание этого загадочное исчезновение? Нет работы cron. ufw отключен. Я не уверен, как проверить, что работает брандмауэр.