Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    lookatmego is offline Junior Member
    Join Date
    Mar 2011
    Posts
    8

    Default setting up a firewall on centos

    Hey there,
    ive been told by friends that my ports are open and that it can be used by others and etc. and have been told to set up a firewall now i know basically almost nothing about this and was wondering if i could get the commands or such on how to set it up thanks

  2. #2
    suwunk is offline Super Moderator
    Join Date
    Aug 2010
    Posts
    1,081

    Default

    Hi Lookatmego,

    You can use this command;
    Code:
    iptables -A INPUT -p tcp --destination-port PORT-NUMBER -j DROP
    For example block port 135 for everyone:
    Code:
    iptables -A INPUT -p tcp --destination-port 135 -j DROP

    Cheers


 

Similar Threads

  1. Replies: 3
    Last Post: 2011-06-22, 07:19 AM
  2. Installing mysql on linux centOS?
    By lookatmego in forum Virtual Server
    Replies: 2
    Last Post: 2011-03-17, 08:10 AM
  3. setting up a whitelist
    By Rusher in forum Beginners
    Replies: 1
    Last Post: 2010-12-10, 08:02 PM
  4. CentOS versus Debian
    By sgoodman in forum Virtual Server
    Replies: 0
    Last Post: 2010-08-18, 07:07 PM
  5. Setting up myhosting mail on iPhone?
    By bobbybrown in forum Beginners
    Replies: 1
    Last Post: 2008-08-07, 03:49 AM

Posting Permissions

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