Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] No method exists to ban Matrix users harassing the bridged IRC<->Matrix channels #1815

Open
jahway603 opened this issue Aug 30, 2024 · 5 comments

Comments

@jahway603
Copy link

I have looked thru the documentation and unable to find any current methods that exist to ban Matrix users harassing the bridged IRC<->Matrix channels that are maintained by Matrix.org listed here https://matrix-org.github.io/matrix-appservice-irc/latest/bridged_networks

@progval
Copy link
Contributor

progval commented Aug 30, 2024

Is this on OFTC? Ban them by their unique IPv6 address.

@jahway603
Copy link
Author

Is this on OFTC? Ban them by their unique IPv6 address.

Yes, it is on OFTC.

@funderscore1
Copy link

funderscore1 commented Sep 4, 2024

The issue is not really clear. After talking in the chat the actual issue are bans and K-Lines not getting bridged to Matrix under certains circumstances. As a result some OFTC channels have lots of spam on their Matrix portals, but the IRC side doesn't get any of the spam.

@Half-Shot
Copy link
Contributor

True K-Lines should be actioned as users should be kicked from any room they are unable to get a IRC connection in, unless the room admin has opted to de-op the bridge and is unable to perform the kicks (which is in itself a problem). Are there example rooms we can take a look at?

@mweinelt
Copy link
Contributor

X-Lines should be considered as well. We are currently observing appservice-irc catching up for hours due to a wave of account spam joining over the bridge. The bridge is now trying to reconnect all these users after a restart and takes hours to iterate over all these hosts.

 2024-09-15 19:16:13 INFO:ClientPool Creating virtual irc user with nick undefined for @etwa3swn:matrix2.queer.cat (display name undefined)
 2024-09-15 19:16:13 INFO:BridgedClient <etwa3swn|[email protected]#d7u6q0wcgw800> (@etwa3swn:matrix2.queer.cat) Created client for @etwa3swn:matrix2.queer.cat
 2024-09-15 19:16:13 INFO:BridgedClient <etwa3swn|[email protected]#d7u6q0wcgw800> (@etwa3swn:matrix2.queer.cat) Connecting to IRC server irc.hackint.org as etwa3swn|m (user=etwa3swnma)
 2024-09-15 19:16:13 INFO:req [ebhi0ebghzk00] [[I->M]] etwa3swn|[email protected]#d7u6q0wcgw800~@etwa3swn:matrix2.queer.cat : Sending metadata 'Connecting to the IRC network 'irc.hackint.org' as etwa3swn|m...'
 2024-09-15 19:17:41 INFO:req [ebhi0ebghzk00] [[I->M]] Creating an admin room with @etwa3swn:matrix2.queer.cat
 2024-09-16 01:51:10 ERROR:client-connection etwa3swn|[email protected]: {"args":["Closing Link: fd1a:6295:5133::39ff (Bad user info)"],"commandType":"normal","command":"ERROR","rawCommand":"ERROR"}
 2024-09-16 01:51:10 ERROR:client-connection User etwa3swn|m was X:LINED!
 2024-09-16 01:51:10 INFO:client-connection disconnect()ing etwa3swn|[email protected] - banned
 2024-09-16 01:51:10 ERROR:client-connection etwa3swn|m is banned from irc.hackint.org, throwing
 2024-09-16 01:51:10 INFO:BridgedClient <etwa3swn|[email protected]#d7u6q0wcgw800> (@etwa3swn:matrix2.queer.cat) Client is now DEAD
 2024-09-16 01:51:10 ERROR:ClientPool Couldn't connect virtual user undefined (@etwa3swn:matrix2.queer.cat) to irc.hackint.org : {"code":1}
 2024-09-16 01:51:10 INFO:req [8c6oif3z5s400] [[M->I]] @etwa3swn:matrix2.queer.cat failed to get a IRC connection. User is banned from the network.
 2024-09-16 01:51:11 INFO:req [8sybuxegkjs00] [[M->I]] onKick @appservice-irc:hackint.org is kicking/banning @etwa3swn:matrix2.queer.cat from !isTgaBtYaONqOjtmVN:hackint.org (reason: IRC connection failure.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants