Skip to content

Commit

Permalink
Fix missing firewalld rules, bind to private IP
Browse files Browse the repository at this point in the history
  • Loading branch information
codyro committed Nov 12, 2024
1 parent beaaabe commit cc05eed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion group_vars/mqtt_servers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ hashi_vault_generic_path: "kv/data/infra/general-ansible-vars"
firewalld_extra_allow_ports: []
firewalld_extra_rich_rules:
- rule family="ipv4" source address="{{ albs_web_ip }}" port protocol="tcp" port="1883" accept
- rule family="ipv4" source address="{{ albs_web_ip }}" port protocol="udp" port="1883" accept
- rule family="ipv4" source address="{{ beholder_ip }}" port protocol="tcp" port="1883" accept
- rule family="ipv4" source address="{{ beholder_ip }}" port protocol="udp" port="1883" accept
- rule family="ipv4" source address="{{ gitupdater_ip }}" port protocol="tcp" port="1883" accept
- rule family="ipv4" source address="{{ gitupdater_ip }}" port protocol="udp" port="1883" accept
- rule family="ipv4" source address="{{ zabbix_server_ip }}" port protocol="tcp" port="10050" accept
mosquitto_settings:
Expand All @@ -18,7 +21,7 @@ mosquitto_settings:
password_file: /etc/mosquitto/passwd-file
listeners:
- port: 1883
address: 0.0.0.0
address: "{{ ansible_all_ipv4_addresses | ipaddr('private') | first }}"
# - port: 8883
# address: 127.0.0.1
# - port: 0
Expand Down

0 comments on commit cc05eed

Please sign in to comment.