add script to allow invitation from muc in firewall (#13)
Fix this [Disroot/Disroot-Project#151 (comment)](Disroot/Disroot-Project#151 (comment)) Co-authored-by: meaz <meaz@disroot.org> Reviewed-on: #13 Reviewed-by: muppeth <muppeth@no-reply@disroot.org> Reviewed-by: antilopa <antilopa@no-reply@disroot.org> Co-authored-by: meaz <meaz@no-reply@disroot.org> Co-committed-by: meaz <meaz@no-reply@disroot.org>
This commit is contained in:
parent
f1bd817f33
commit
6145d7dffb
2 changed files with 13 additions and 1 deletions
|
@ -252,7 +252,7 @@ prosody_modules:
|
||||||
description: 'Can efficiently block, bounce, drop, forward, copy, redirect stanzas and more.'
|
description: 'Can efficiently block, bounce, drop, forward, copy, redirect stanzas and more.'
|
||||||
module_enabled: '{{ firewall_module_enabled }}'
|
module_enabled: '{{ firewall_module_enabled }}'
|
||||||
extra_options:
|
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
|
# spam-blocking.pfw is the default Prosody one, needed by the two following
|
||||||
|
|
||||||
- name: 'http_altconnect'
|
- name: 'http_altconnect'
|
||||||
|
|
12
templates/etc/prosody/custom_scripts/invite_from_muc.pfw
Normal file
12
templates/etc/prosody/custom_scripts/invite_from_muc.pfw
Normal file
|
@ -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 a new issue