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.

Block one ip

Discussion in 'General Discussion' started by Sampei, Oct 19, 2002.

  1. Sampei

    Sampei Member

    Joined:
    May 27, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    How can I block an Ip from access to my server without a firewall hardware ? Have I to install PMFirewall on my box ? Is it possible ? is there a tutorial on how to install it on a cpanel box ?

    Thank you
     
  2. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [quote:1b8b023afd][i:1b8b023afd]Originally posted by Sampei[/i:1b8b023afd]

    How can I block an Ip from access to my server without a firewall hardware ? Have I to install PMFirewall on my box ? Is it possible ? is there a tutorial on how to install it on a cpanel box ?

    Thank you[/quote:1b8b023afd]
    In a root SSH session:

    pico /etc/hosts.deny

    add this line: (replace 10.20.30.40 with your desire IP address)

    ALL : 10.20.30.40
     
Loading...

Share This Page