Cydh Posted December 18, 2014 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted December 18, 2014 This command will be passed via char-server & login-server, doesn't use direct SQL query to add/remove IP Atcommands: @ipban <time> <ip_address>: Ban an IP @ipunban <ip_address>: Unban an IP @ipblock <ip_address>: Block (permanent ban) an IP @ipunblock <ip_address>: Unblock an IP Login-server console command: ipban:list -> Listings current banned/blocked IP ipban:ban <ip_address> <duration> [<netmask>] -> Ban IP ipban:block <ip_address> [<netmask>] -> Block IP ipban:remove <ip/network_address> -> Remove banned/blocked IP ipban:clear -> Clear all banned/blocked IP Use netmask to block IPs within Network range. Only for console command, default netmask for @command decided in login_athena.conf, ipban_netmask. Permanent ban (Blocked IP/Network) will results notification "Rejected from server(3)" on player login and show error allow/deny bla bla (just like before). Temporary ban (by @ipban or consol ipban:ban) will results notification "Your are Prohibited to log in until DATE-UNTIL-THIS-IP-UNBANNED". Temporary ban because of Password Failure, will makes "Rejected from server(3)" (just like before) and record won't be saved when server is restarted. If there's new banned/blocked IP, login-server will asks char-server to disconnect players with matching IP (or Network ID) NOTE: Don't forget to import 2 sql files. ipbanlist_upd.sql to update `ibanlist` table in database that used for login-server and ipbanlist_log_upd.sql to create new table for IP Ban log `ibanlist_log` in database that used for log database Maybe still some stuffs that need to be optimized and cleaned. NOTE: Don't be scammed by the file name Scrennies: Download: @ipban_3.0.1-rA-20150914-d1f94700.diff [spoiler=old releases]@ipban_3.0.diff 2 Quote Link to comment Share on other sites More sharing options...
Radian Posted December 18, 2014 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted December 18, 2014 Nice released! Quote Link to comment Share on other sites More sharing options...
Lighta Posted December 19, 2014 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted December 19, 2014 Almost feel this should be part of rA with an MACRO on/off flag. Quote Link to comment Share on other sites More sharing options...
Cydh Posted December 19, 2014 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Author Share Posted December 19, 2014 Almost feel this should be part of rA with an MACRO on/off flag. too many bureaucracies to add something when noone around. put it here, people goes to implement & test it. it's better than put on branch with NULL tester Quote Link to comment Share on other sites More sharing options...
Lighta Posted December 19, 2014 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted December 19, 2014 sad but true. We need to work on automated tested, so at least we weel be confident when pushing something Quote Link to comment Share on other sites More sharing options...
Dev Blaze Posted December 21, 2014 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 212 Reputation: 5 Joined: 01/24/12 Last Seen: February 19, 2019 Share Posted December 21, 2014 Nice Quote Link to comment Share on other sites More sharing options...
Cydh Posted September 14, 2015 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Author Share Posted September 14, 2015 Added diff for d1f94700 (20150914) Quote Link to comment Share on other sites More sharing options...
anacondaq Posted December 17, 2015 Group: Members Topic Count: 42 Topics Per Day: 0.01 Content Count: 1096 Reputation: 348 Joined: 02/26/12 Last Seen: May 30, 2023 Share Posted December 17, 2015 (edited) @Cydh I was found a lot of different bugs, and warnings inside this system. Some of bugs reported below i was manually fix. Imposible to compile because of missing #include defines under linux, at windows this mod you can compile without errors or problems I was review code, and i found for a lot of missing scopes, or wrong typo, (check examples below) I was found a lot of not used variable / structures (or there is a logic typo) Btw, i was make it work a little bit, but when you @ipblock or @ipban character -> he did't kicked from the game, you need manually kick him / her from the game to apply ban (after kick, he can't connect) A lot of problems with sql tables from the start. Suggestions Please Fix bugs with this system (there are a lot of them, and check & review your code, (because for now this application is very dangerous for production)) Please add separate diff for code, and separate sql tables which we need to add to the game (with diff for ready tables, and with how tables must looks like (to make easy it to isntall) Test it on linux, you will find a lot of strange things with this system. THank you! Edited December 17, 2015 by Anacondaqq Quote Link to comment Share on other sites More sharing options...
Azeroth Posted June 18, 2016 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 383 Reputation: 121 Joined: 03/31/12 Last Seen: January 29, 2023 Share Posted June 18, 2016 Cydh, can you update this as Anacodaqq suggestion.Looking forward on this src modification. Quote Link to comment Share on other sites More sharing options...
Deleted User Posted June 24, 2017 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 235 Reputation: 55 Joined: 12/02/11 Last Seen: February 26, 2021 Share Posted June 24, 2017 On 12/17/2015 at 7:16 AM, Anacondaqq said: @Cydh I was found a lot of different bugs, and warnings inside this system. Some of bugs reported below i was manually fix. Imposible to compile because of missing #include defines under linux, at windows this mod you can compile without errors or problems I was review code, and i found for a lot of missing scopes, or wrong typo, (check examples below) I was found a lot of not used variable / structures (or there is a logic typo) Btw, i was make it work a little bit, but when you @ipblock or @ipban character -> he did't kicked from the game, you need manually kick him / her from the game to apply ban (after kick, he can't connect) A lot of problems with sql tables from the start. Suggestions Please Fix bugs with this system (there are a lot of them, and check & review your code, (because for now this application is very dangerous for production)) Please add separate diff for code, and separate sql tables which we need to add to the game (with diff for ready tables, and with how tables must looks like (to make easy it to isntall) Test it on linux, you will find a lot of strange things with this system. THank you! If you don't mind? would you share the working copy you have? I mean the one you mentioned above? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.