Community Forums Today's Posts     Member List     Archive    
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 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; 13-01-2012 at 12:59.

  2. #2
    Join Date
    Nov 2009
    Location
    Dublin, Ireland
    Posts
    398
    93.172.*

    enable it to be understood as a regular expression.

    should work.

  3. #3
    Join Date
    Jul 2002
    Location
    Germany
    Posts
    2,836
    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.
    You think my answer is stupid ? Read This:
    http://www.catb.org/~esr/faqs/smart-...ons.html#intro

    In a world without fences and walls - who needs windows and gates ?

  4. #4
    Join Date
    Nov 2009
    Location
    Dublin, Ireland
    Posts
    398
    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
    Attached Images Attached Images  

  5. #5
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    1,662
    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. [Solved] Range ban doesn´t work
    By Prof.TS in forum Server Support
    Replies: 7
    Last Post: 30-06-2010, 13:38
  2. [Suggestion] Security Level by IP address or IP Range
    By sgtrwe in forum Suggestions and Feedback
    Replies: 4
    Last Post: 04-05-2010, 16:04
  3. Subnet banning
    By azzy101 in forum Suggestions and Feedback
    Replies: 2
    Last Post: 23-12-2009, 02:56
  4. IP Range Banning
    By Confedorate in forum [TeamSpeak 2] Server Support
    Replies: 2
    Last Post: 24-02-2005, 20:34
  5. Allow banning by loginname
    By wonderworld in forum [TeamSpeak 2] General Questions
    Replies: 6
    Last Post: 13-11-2003, 12:28

Posting Permissions

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