Help removing mass ips from server

Discussion in 'Site & Server Administration' started by st_jimi, Feb 7, 2008.

  1. #1
    A support staff thought it would be funny to add 257 ips to the server with out asking permission or getting any justification, is there a way to mass remove ips from ssh otherwise im going to have to sit here and remove them all from whm
     
    st_jimi, Feb 7, 2008 IP
  2. boltok

    boltok Active Member

    Messages:
    257
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    78
    #2
    If you have the list of interfaces (e.g. eth0:1 to eth0:250), you can do something like this:

    for iface in 250 249 248 ..... 2 1;do ifconfig eth0:$iface down;done
    Code (markup):
    Off course, don't put the dots like in this example. They're just showing the range.
     
    boltok, Feb 7, 2008 IP
  3. rllunzmann

    rllunzmann Active Member

    Messages:
    1,796
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #3
    why so many IP's!?
     
    rllunzmann, Feb 7, 2008 IP
  4. blowingideas

    blowingideas Peon

    Messages:
    642
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you must be paying for those IP. check your bill for this month. :D
     
    blowingideas, Feb 7, 2008 IP
  5. st_jimi

    st_jimi Peon

    Messages:
    632
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks for the advice the datacenter removed them because some junior at there company added them for a laugh
     
    st_jimi, Feb 8, 2008 IP
  6. FHost

    FHost Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    This is a really strange behaviour.
     
    FHost, Feb 8, 2008 IP