version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=Mozilla/5.0 (X11; OpenBSD amd64; rv:82.0) Gecko/20100101 Firefox/82.0 author=jrmu charset=UTF-8 csum= ctime=1611914384 host=125.231.24.226 name=Openbsd.Zncadmin rev=1 targets=Debate.Dogfooding,Bouncer.Bouncer,Openbsd.Less,Openbsd.Ilines,Openbsd.Irssi,Ircnow.Networks text=(:title Daily Maintenance for ZNC:)%0a%0aEvery admin should use his team's bouncer to make sure it works. [[debate/dogfooding|Eat your own dog food]]. See [[bouncer/bouncer|connection instructions]] for your IRC client.%0a%0aEach day, you should check for errors with your znc.%0a%0a[@%0a$ doas less /home/znc/home/znc/.znc/moddata/adminlog/znc.log%0a@]%0a%0aScroll to the bottom by typing G.%0a%0a[@%0a[2021-01-25 03:12:52] [user/network] disconnected from IRC%0a[2021-01-25 03:15:29] [user/network] disconnected from IRC%0a[2021-01-25 03:19:21] [user/network] disconnected from IRC%0a[2021-01-25 03:23:12] [user/network] disconnected from IRC%0a@]%0a%0aIf you see these repeating messages "disconnected from IRC", it means that znc is attempting to connect to a network but failing. This is a network error that you must fix.%0a%0a'''WARNING''': If you do not fix this problem, your ZNC will throttle all of its users, slowing down reconnections for everyone!%0a%0a!! G-lined%0a%0aUse [[openbsd/less|less]] to search through znc.log to find error messages like the following:%0a%0a[@%0a[2021-01-25 03:55:25] [user1/network] disconnected from IRC: irc.example.com [:Closing link: (user@fruit.ircnow.org) [G-Lined: This connection is not authorized on IRC Network - (ID: VL0GY6RV79)]]%0a@]%0a%0aThis shows that the network has G-lined fruit.ircnow.org from connecting. Because the vhost is fruit.ircnow.org and not unique (it's not user.fruit.ircnow.org), this address is most likely an IPv4 address that has been glined. You can either write to the admins to [[openbsd/ilines|request an iline]] or you can attempt to switch over to an IPv6 address and hope that is not banned.%0a%0aIf that does not work, you can disconnect the user. Connect to the bouncer (you must be an admin on ZNC), then issue the command:%0a%0a[@%0a/msg *controlpanel disconnect user network%0a@]%0a%0a!! Fixing a Network Configuration Error%0a%0aSometimes a disconnection error in znc.log is caused by bad network configuration:%0a%0a[@%0a[2021-01-25 03:06:24] [user/network] disconnected from IRC%0a[2021-01-25 03:14:09] [user/network] disconnected from IRC%0a@]%0a%0aLet's investigate the cause through the web panel:%0a%0a# Log in to the web panel to troubleshoot: https://bnc.fruit.ircnow.org/\\%0aAttach:znc1.png%0a# Click on the Manage Users link\\%0aAttach:znc2.png%0a# Click on the Edit link next to user1\\%0aAttach:znc3.png%0a# Scroll down and click on the Edit link next to the network globalirc-it:\\%0aAttach:znc4.png%0a# Check @@Servers of this IRC network@@:%0a # The server may be improperly configured. Check the hostname and port is correct. A port without a + sign is in plaintext, which is usually port 6667. A port with a + in front uses SSL, which is usually on port 6697. If the user tries to use SSL on plaintext port 6667, or plaintext on SSL-encrypted port 6697, ZNC will fail to connect. Please fix this for the user.%0a # The user may be connecting to a server that lacks [[openbsd/ilines|an iline]]. You will want to use the server addresses on the [[ircnow/networks]] page to get the servers with ilines. You can test if your IP has been glined by using [[openbsd/irssi|irssi]].%0a # The user may be attempting to use an IPv4 address when we should prefer an IPv6 address. Some networks will disallow IPv4 connections. Run @@$ host irc.example.com@@ to see if it returns an IPv4 address or only an IPv6 address. You will want to consult the [[ircnow/networks|networks list]] for IPv6-only hostnames.%0a # The user may be glined from the network for abuse. In this case, see the section on stopping abuse.%0a # The SSL cert may be expired. There are two solutions: manually add the SSL fingerprint to the @@SHA-256 fingerprint of trusted SSL certificates@@ or @@Trust All Certs@@ by clicking on @@Disable certificate validation@@. Trusting all certs is less secure but less work than manually adding, so I recommend trusting all certs.\\%0aAttach:znc5.png\\%0a# Click on @@Save and Continue@@\\%0aAttach:znc6.png%0a%0aYou should soon see a line similar to below in znc.log:%0a%0a[@%0a[2021-01-25 03:15:08] [user/network] connected to IRC: irc.example.com%0a@]%0a%0aThis indicates that @@user@@ successfully connected to @@network@@.%0a%0a!! Dealing with Abuse time=1611914384 title=Daily Maintenance for ZNC author:1611914384=jrmu diff:1611914384:1611914384:=1,77d0%0a%3c (:title Daily Maintenance for ZNC:)%0a%3c %0a%3c Every admin should use his team's bouncer to make sure it works. [[debate/dogfooding|Eat your own dog food]]. See [[bouncer/bouncer|connection instructions]] for your IRC client.%0a%3c %0a%3c Each day, you should check for errors with your znc.%0a%3c %0a%3c [@%0a%3c $ doas less /home/znc/home/znc/.znc/moddata/adminlog/znc.log%0a%3c @]%0a%3c %0a%3c Scroll to the bottom by typing G.%0a%3c %0a%3c [@%0a%3c [2021-01-25 03:12:52] [user/network] disconnected from IRC%0a%3c [2021-01-25 03:15:29] [user/network] disconnected from IRC%0a%3c [2021-01-25 03:19:21] [user/network] disconnected from IRC%0a%3c [2021-01-25 03:23:12] [user/network] disconnected from IRC%0a%3c @]%0a%3c %0a%3c If you see these repeating messages "disconnected from IRC", it means that znc is attempting to connect to a network but failing. This is a network error that you must fix.%0a%3c %0a%3c '''WARNING''': If you do not fix this problem, your ZNC will throttle all of its users, slowing down reconnections for everyone!%0a%3c %0a%3c !! G-lined%0a%3c %0a%3c Use [[openbsd/less|less]] to search through znc.log to find error messages like the following:%0a%3c %0a%3c [@%0a%3c [2021-01-25 03:55:25] [user1/network] disconnected from IRC: irc.example.com [:Closing link: (user@fruit.ircnow.org) [G-Lined: This connection is not authorized on IRC Network - (ID: VL0GY6RV79)]]%0a%3c @]%0a%3c %0a%3c This shows that the network has G-lined fruit.ircnow.org from connecting. Because the vhost is fruit.ircnow.org and not unique (it's not user.fruit.ircnow.org), this address is most likely an IPv4 address that has been glined. You can either write to the admins to [[openbsd/ilines|request an iline]] or you can attempt to switch over to an IPv6 address and hope that is not banned.%0a%3c %0a%3c If that does not work, you can disconnect the user. Connect to the bouncer (you must be an admin on ZNC), then issue the command:%0a%3c %0a%3c [@%0a%3c /msg *controlpanel disconnect user network%0a%3c @]%0a%3c %0a%3c !! Fixing a Network Configuration Error%0a%3c %0a%3c Sometimes a disconnection error in znc.log is caused by bad network configuration:%0a%3c %0a%3c [@%0a%3c [2021-01-25 03:06:24] [user/network] disconnected from IRC%0a%3c [2021-01-25 03:14:09] [user/network] disconnected from IRC%0a%3c @]%0a%3c %0a%3c Let's investigate the cause through the web panel:%0a%3c %0a%3c # Log in to the web panel to troubleshoot: https://bnc.fruit.ircnow.org/\\%0a%3c Attach:znc1.png%0a%3c # Click on the Manage Users link\\%0a%3c Attach:znc2.png%0a%3c # Click on the Edit link next to user1\\%0a%3c Attach:znc3.png%0a%3c # Scroll down and click on the Edit link next to the network globalirc-it:\\%0a%3c Attach:znc4.png%0a%3c # Check @@Servers of this IRC network@@:%0a%3c # The server may be improperly configured. Check the hostname and port is correct. A port without a + sign is in plaintext, which is usually port 6667. A port with a + in front uses SSL, which is usually on port 6697. If the user tries to use SSL on plaintext port 6667, or plaintext on SSL-encrypted port 6697, ZNC will fail to connect. Please fix this for the user.%0a%3c # The user may be connecting to a server that lacks [[openbsd/ilines|an iline]]. You will want to use the server addresses on the [[ircnow/networks]] page to get the servers with ilines. You can test if your IP has been glined by using [[openbsd/irssi|irssi]].%0a%3c # The user may be attempting to use an IPv4 address when we should prefer an IPv6 address. Some networks will disallow IPv4 connections. Run @@$ host irc.example.com@@ to see if it returns an IPv4 address or only an IPv6 address. You will want to consult the [[ircnow/networks|networks list]] for IPv6-only hostnames.%0a%3c # The user may be glined from the network for abuse. In this case, see the section on stopping abuse.%0a%3c # The SSL cert may be expired. There are two solutions: manually add the SSL fingerprint to the @@SHA-256 fingerprint of trusted SSL certificates@@ or @@Trust All Certs@@ by clicking on @@Disable certificate validation@@. Trusting all certs is less secure but less work than manually adding, so I recommend trusting all certs.\\%0a%3c Attach:znc5.png\\%0a%3c # Click on @@Save and Continue@@\\%0a%3c Attach:znc6.png%0a%3c %0a%3c You should soon see a line similar to below in znc.log:%0a%3c %0a%3c [@%0a%3c [2021-01-25 03:15:08] [user/network] connected to IRC: irc.example.com%0a%3c @]%0a%3c %0a%3c This indicates that @@user@@ successfully connected to @@network@@.%0a%3c %0a%3c !! Dealing with Abuse%0a\ No newline at end of file%0a host:1611914384=125.231.24.226