Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 7 of 7
  1. #1
    Join Date
    June 2010
    Location
    ???
    Posts
    51

    banning by ip range!

    Edit by mod
    This thread is for an old version. Please read this one :
    http://forum.teamspeak.com/showthrea...ies-(Ip-range)


    teamspeak 2 was awesome by its banning system because u were able to ban by ip range. For example.

    if

    93.172.181.64 was banned u could just do this

    93.172.*.* and anyone connecting with 93.172 would get banned

    anyway to do this on ts3?
    Last edited by florian_fr40; January 13th, 2012 at 12:59 PM.

  2. #2
    Join Date
    November 2009
    Location
    Dublin, Ireland
    Posts
    379
    93.172.*

    enable it to be understood as a regular expression.

    should work.

  3. #3
    Join Date
    July 2002
    Location
    Germany
    Posts
    2,191
    This is the correct syntax, assuming you have the box "Interpret IP and Name as regular expression" checked (you need to for any wild card banning)

    a, b, c and d are numbers 1-255

    IP only
    TS2 style: a.b.c.d
    TS3 style: a\.b\.c\.d

    Range of 255 IPs
    TS2 style: a.b.c.*
    TS3 style: a\.b\.\c\..*

    Range of 255 * 255 IPs
    TS2 style: a.b.*.*
    TS3 style: a\.b\..*\..*

    So basically to convert a TS2 ban into a TS3 ban: replace all "." with "\.", replace all "*" with ".*"

    We know that, especially for people that do not know regular expressions (which is most TS users I figure), the TS3 way is complicated/confusing. We have plans to make an easier ban dialog where you can directly specify ranges to ban to ease this pain.

  4. #4
    Join Date
    November 2009
    Location
    Dublin, Ireland
    Posts
    379
    Peter i can ban people doing it this way in the picture ( tested on myself and another person )
    However your way works also.

    But if my way, where i ban a.b.* with regular expression enabled, is an incorrect syntax then why does it work? the correct syntax you posted seems like to much hassle writing out the a\.b\..*\..* :P

  5. #5
    Join Date
    December 2009
    Location
    Germany
    Posts
    2,360
    Quote Originally Posted by azzy101 View Post
    But if my way, where i ban a.b.* with regular expression enabled, is an incorrect syntax then why does it work?
    It isn't an incorrect syntax. In regular expressions a dot (.) means any character, and a star (*) means that the character left of the star can be zero or more times. So ".*" means any character zero or more times. Thats why it works for any IP starting with "a.b".

    The only problem is the dot (.) between a and b. The regular expression "a.b.*" works also for "a6b", because the dot (.) allows any character. Thats why you should escape the dot (.) if you really mean the dot.

  6. #6
    Join Date
    May 2011
    Posts
    2

    Solved How can I ban a range of IPs

    I need to be able to Ban a range of IP addresses. what wild cards are used for this or is there another way to do this?

  7. #7
    Join Date
    May 2011
    Posts
    2
    found my answer at
    banning by ip range!
    By Slicky456 in forum Server Support

    wish it had come up in the search engine

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ban an IP range
    By sinister_evil in forum Server Support
    Replies: 1
    Last Post: November 11th, 2012, 01:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •