Results 1 to 4 of 4

Thread: Config Help: Ban an IP

  1. #1
    Private halojango78's Avatar
    Join Date
    Feb 2013
    Posts
    21
    Thanks
    13
    Thanked 8 Times in 7 Posts

    Config Help: Ban an IP

    Hi guys, its Halo once again. I hope this message finds you all in good life :]

    I recently acquired an IP that I need to ban from our CoD2 server. I put this command into the config:


    //BannedIPs
    g_banIPs "##.###.###.###"


    Is this the correct way to do it? Thanks in advance!
    -Halo, Leader of For The Soldiers clan
    *FTS|Halo|Ldr
    "The winner ain't the one with the fastest car, it's the one who refuses to lose"

  2. #2
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Well it might be correct but as far as I know cod2 doesn't support IP-Bans.

  3. #3
    Mossaderator Jared's Avatar
    Join Date
    Jul 2012
    Location
    United States
    Posts
    137
    Thanks
    71
    Thanked 120 Times in 72 Posts
    Halo it looks right but make sure you have "set" infront of it.
    set g_banIPs "111.111.12.10"
    One day it will come back
    Over the lands, over the seas

  4. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    I would either use iptables or std\player::getIP() to implement the IP ban (though needs libcod on linux). Never had any success with this g_banIPs
    timescale 0.01

Posting Permissions

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