I've searched the archives and can find nothing on this.
Sometimes if I lose a link between bots in my botnet they will not reconnect (even if I remove the passwords with .chpass on each one). I've found that the only way to get them to reconnect is to change their 'bots' port number to a different port. After I change these ports in their config files and in each bot's user record and then rehash the bots, the bots immediately link up again.
Here's my question: after I've changed the ports, I do a .dccstat and I see lingering connections on the old port numbers in addition to the new connection(s). Is there an easy way to release these sock's and free up the old ports again?
Here's what it looks like:
SOCK ADDR PORT NICK HOST TYPE
---- -------- ----- --------- ----------------- ----
3 C0A8FE07 6464 (bots) * lstn 6464
4 C0A8FE07 3335 (users) * lstn 3335
5 00000000 0 (dns) dns (ready)
7 CE2975C7 6668 (server) irc.weblook2k.com serv (lag: 0)
8 C0A8FE06 2525 zvoo22 net@192.168.3.13 chat flags: cpTEp/0
6 C0A8FE07 6400 (bots) * lstn 6400
9 C0A8FE07 5019 (bots) * lstn 5019
11 C0A8FE07 5019 bothead1 192.168.3.9 bot flags: pucosgwLiA
12 C0A8FE07 4443 bothead2 192.168.3.9 bot flags: pucosgwliA
13 C0A8FE07 9300 bothead3 192.168.3.9 bot flags: pucosgwLiA
In the above .dccstat paste, the connection to port 5019 is the new link connection, and the connections to ports 6464 and port 6400 are old and unnecessary connections. How can I get rid of these old ones? They seem to last forever Note: these bots exist on a LAN behind a NAT router.
Thanks.