add script to allow invitation from muc in firewall
This commit is contained in:
parent
79abba2826
commit
cea093c5d8
|
@ -254,7 +254,7 @@ prosody_modules:
|
|||
description: 'Can efficiently block, bounce, drop, forward, copy, redirect stanzas and more.'
|
||||
module_enabled: '{{ firewall_module_enabled }}'
|
||||
extra_options:
|
||||
- 'firewall_scripts = { "{{ prosody_community_modules_path }}/mod_firewall/scripts/spam-blocking.pfw", "{{ prosody_custom_script_path }}/servers_blocklist.pfw", "{{ prosody_custom_script_path }}/users_blocklist.pfw" }'
|
||||
- 'firewall_scripts = { "{{ prosody_community_modules_path }}/mod_firewall/scripts/spam-blocking.pfw", "{{ prosody_custom_script_path }}/servers_blocklist.pfw", "{{ prosody_custom_script_path }}/users_blocklist.pfw", "{{ prosody_custom_script_path }}/invite_from_muc.pfw }'
|
||||
# spam-blocking.pfw is the default Prosody one, needed by the two following
|
||||
|
||||
- name: 'http_altconnect'
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
# This script depends on spam-blocking.pfw also being loaded
|
||||
# Any traffic that is not explicitly blocked or allowed by other
|
||||
# rules will be checked against the blocklist.txt file
|
||||
# Check mod_firewall/scripts/spam-blocking.pfw
|
||||
|
||||
# This script allows invitation to a muc
|
||||
|
||||
::user/spam_check_message_custom
|
||||
|
||||
TYPE: normal
|
||||
INSPECT: {http://jabber.org/protocol/muc#user}x/invite
|
||||
PASS.
|
Loading…
Reference in New Issue