The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iptables help...

Discussion in 'General Discussion' started by radical, Feb 22, 2005.

  1. radical

    radical Well-Known Member

    Joined:
    Nov 4, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    i want to block access to my server (sending/receiving emails) running RH9/Cpanel/WHM from a particular IP address. I suspect, he is a spammer. Can someone help me on how use Ip tables to maybe temporarily block this IP, and maybe later allow access, once things are sorted out. can some one help...

    thanks
    SN
     
  2. nottheusual1

    nottheusual1 Active Member

    Joined:
    Jul 13, 2004
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Here's the simple way to stop it. From root/SSH:

    iptables -I INPUT1 -s XXX.XXX.XX.X -j DROP

    Substitute the offending IP address for the "XXX.XXX.XX.X".

    Hope this helps. I've never re-activated one, but my old brain remembers it isn't difficult to undo, just can't remember how. If I have an epiphany, I'll post the results, otherwise, this will stop your immediate problem.
     
Loading...

Share This Page