1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Bug? Ban Bug!?

Discussion in 'Help and Support' started by Atlanone, Feb 23, 2016.

  1. Atlanone

    Atlanone Level 1

    Joined:
    Feb 21, 2016
    Messages:
    13
    Hello there,

    I run a terraria server with gameranger and when I use tshock I cannot ban someone without banning everyone.
    When I use the user info command every player comes up with the same ip address. My address if I ban someone by playername everyone who tries to join is considered banned and nobody can join. When I unban the one person everyone can join.

    How can I fix this?
     
  2. Zaicon

    Zaicon Spam Cleaner 9000
    TShock Mod Plugin Developer

    Joined:
    Feb 15, 2014
    Messages:
    811
    This is an issue with how gameranger handles connections.

    Look at it like this. All of your players are connecting the gameranger network, which then forwards all traffic to your server using a single IP. Your Terraria server only sees one IP, meaning if it gets banned, all traffic from gameranger will be blocked.
     
    • Informative Informative x 1
    • Creative Creative x 1
  3. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    Ways to fix this:
    Change your config so bans are by username, rather than IP address
    Ban people via Gameranger, rather than the server (if this is possible)
    Stop using Gameranger and port forward through your router
     
  4. Atlanone

    Atlanone Level 1

    Joined:
    Feb 21, 2016
    Messages:
    13
    Yes I understand how their connecting. I use the ban by name but it bans everyone. The only way i can ban them is to keep stopping my server and block them on gameranger. I shouldnt have to keep shutting my server off to do this. My port forward options through the terrariaserver.exe are always yes when it ask me before i load the world.

    I think a solution to fix this so this can work with gameranger is to reconfig the name ban. A lot of friends I have use gameranger and I can't educate everyone to use something else in hopes it may work for them so I can ban people properly. As much as it would be easier if people didnt use gameranger but people do & it may be complicated to get banning to work properly through gameranger but it must be done. My issue occurs when I ban people by name or ip, it does not matter.

    Also a suggestion since alot of people make characters with special characters in their name like àęīøù for those who don't know how to create those alt codes. The ban should have a feature where players currently in the world are numbered & you could ban them by # instead of typing their name.

    For example lets say åęìøů is player 3 in my world it would be nice to say /ban add 3 hacking.

    This would be a good implement to get those pesky players trying to work around the ban.
     
  5. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    What would be the use of reconfiguring name banning?

    About the jibberish names, you can already block people from joining with names like §μ¤₩ by using Enerdy's NameValidator. Also, I'm fairly sure you can ban players by using their Indexes, just do /who -i and get the "IX" of the player you want to ban.
     
    • Agree Agree x 1
  6. Atlanone

    Atlanone Level 1

    Joined:
    Feb 21, 2016
    Messages:
    13
    I have this name validator plugin but it does not seem to function properly. People with alt names can still join my games.
    Ive tried this /who command and all it does is list all players in the game like .playing. I've even tried /who <playername> I don't get any information from it so I am not sure what you meant when you said get the "IX". If you mean some sort of number like my idea for kicking them by /ban add # then that command does not display any number that I can ban them by.

    So that when a player is banned by their name it will not ban by ip & lock everyone out from joining my game.
    If the user tried to enter in with the same name it would kick him out automatically.
     
  7. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
     
  8. Atlanone

    Atlanone Level 1

    Joined:
    Feb 21, 2016
    Messages:
    13
    Can you show how to reconfig the ban to ban by name & not ip this way I don't keep locking out everyone because it seems the IX# bans the same way by ip.
     
  9. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    Set "EnableBansOnUsername" to true in TShock's config.
     
  10. Atlanone

    Atlanone Level 1

    Joined:
    Feb 21, 2016
    Messages:
    13
    Thanks a bunch!
     
  11. Atlanone

    Atlanone Level 1

    Joined:
    Feb 21, 2016
    Messages:
    13
    Sorry for the double post but after fixing this now I have a new problem. When I ban users they do not get added to the ban list. The command says they have been banned but it acts like they been kicked. The same players rejoin & nobody I ban gets added to the ban list.

    The only name that stayed on the ban list was the first person I banned, it won't add anyone else.
     
  12. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    This is an issue with GameRanger (and also our ban system) again:
    Even with username bans on, our ban system still uses the user's IP address in the database. Because everyone is using the same IP address, only one person can be banned at a time
     
  13. Atlanone

    Atlanone Level 1

    Joined:
    Feb 21, 2016
    Messages:
    13
    So hopefully with a update this problem will be fixed and ban by usernames will actually add the person by username & not the ip.
     
  14. xCykrix

    Plugin Developer

    Joined:
    Jan 14, 2015
    Messages:
    49
    You could also have someone (or yourself) make a custom banning system for you to reside outside of the TShock ban system.