Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 4 of 18 FirstFirst ... 2 3 4 5 6 14 ... LastLast
Results 46 to 60 of 256
  1. #46
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    Nice thread

    I did not see any mention of rkhunter. It is also good to have with chkrootkit. I thought I would mention it

    http://www.rootkit.nl/

    I like it in addition to chkrootkit...

  2. #47
    Member Edizon's Avatar
    Join Date
    Feb 2003
    Location
    AZ
    Posts
    90

    Default Tutorial Revision?

    A Beginner's Guide to Securing Your Server Part 3 of 3 (Apps to install)

    Code:
    Common ingress (inbound) TCP ports
    IG_TCP_CPORTS="21,22,25,53,80,110,143,465,953,993,995,2082,2083,2084,2086,2087,2095,2096,3306,6666,7786,3000_3500"
    It was a great tutorial. However my SSL server was unreachable after the APF install. I replaced the code given by 00000000 for the inbound ports. 443 was not included. After I included it my SSL server awas up again. Just added this in case anyone else has a problem with this in the future.

    Revised Code:

    Code:
    Common ingress (inbound) TCP ports
    IG_TCP_CPORTS="21,22,25,53,80,110,143,443,465,953,993,995,2082,2083,2084,2086,2087,2095,2096,3306,6666,7786,3000_3500"

    Kyle
    "Life is like a box on cPanel Edge. You never know what your gonna get..."

  3. #48
    Member equens's Avatar
    Join Date
    Feb 2002
    Posts
    254

    Default

    What about the option: IF="eth0", would I have problems if this option is not set correctly?

    I have seen #123 in Common egress (outbound) TCP ports???

    Common egress (outbound) TCP ports
    EG_TCP_CPORTS="21,25,37,53,80,110,113,#123,443,43,873,953,2089,2703,3306"

    Thanks!
    Last edited by equens; 03-18-2005 at 02:08 PM.

  4. #49
    Member
    Join Date
    Jun 2003
    Posts
    177

    Default

    Quote Originally Posted by equens
    What about the option: IF="eth0", would I have problems if this option is not set correctly?

    I have seen #123 in Common egress (outbound) TCP ports???

    Common egress (outbound) TCP ports
    EG_TCP_CPORTS="21,25,37,53,80,110,113,#123,443,43,873,953,2089,2703,3306"

    Thanks!
    If that is the location of your ethernet connection you will have a problem indeed. Majority of connections are on eth0

  5. #50
    Member
    Join Date
    Mar 2002
    Posts
    150

    Default

    I disabled direct login to root 'PermitRootLogin no' now when I login as 'admin' and su to root commands like 'service cpanel restart' produce 'bash: service: command not found'. Why is that? Is there somthing I can do to allow these commands, they are so easy to remember?

  6. #51
    Member
    Join Date
    Feb 2005
    Location
    Sidman, PA
    Posts
    53

    Default

    Very useful; I especially like chkrootkit; I have it running daily.

    Anyway, with the apf ports, isn't there a typing mistake; there seems to be two spaces in the middle of port 2084. I'm assuming that is a typing error...

    IG_TCP_CPORTS="21,22,25,53,80,110,143,465,953,993,995,2082,2083,2 084,2086,2087,2095,2096,3306,6666,7786,3000_3500"

  7. #52
    cPanel Partner NOC cPanel Partner NOC Badge gorilla's Avatar
    Join Date
    Feb 2004
    Location
    Sydney / Australia
    Posts
    732

    Default

    yes it is a typing error , sometimes the forum automagically adds spaces

  8. #53
    Member
    Join Date
    May 2004
    Posts
    114

    Default

    I've updated everything to the new BFD b4 i had the old bfd version
    ------------------------
    Greeeting from me
    How are you doing ?
    Keep it real
    ------------------------

  9. #54
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I'd like to add that there is no need at all to open ports 3000_3500 unless you have a very specific reason. Remember that APF is an SPI firewall and so it's completely unnecessary to open ethereal ports for something like FTP access. Opening ports with nothing attached to them makes having a firewall relatively pointless.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  10. #55
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    nazoreen,

    There's no need for a security thread about exim as far as I can see. With a default cPanel exim installation, you can only relay through exim if you have been authenticated. The other issues I have addressed in the other thread you started on the subject.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  11. #56
    Member
    Join Date
    Aug 2004
    Posts
    77

    Default

    I just want to say thanks for taking everything that was scattered and making a VERY easy to follow guide.

    I had a few tiny bugs that I mostly worked out w/ my server. I cant see, though, to get the 'root login email' part to work. Other than that everything works VERY well and I have already found 2 people trying to login to my server. Thankfully ROOT is already turned off through immediate login from my hosting company but it still banned 2 IP's right away and everything else is looking great.

    Had a user, quite brightly I might add, ban himself and his second IP in the house trying to login into FTP w/ the wrong info from his activation email, but after a quick search I was able to modify that and get him up and off the banned list.

    Thanks again. I think I may be missing, or adding, a space in the 'root login email' portion. If someone could maybe post a <space> type thing of the line to add. What happens is when I add that to my .bash_profile upon logging in w/ my root the next time I login I get a mail <Access denied> type error thats just below my security MOTD. Once I remove that line the login is flawless... so I dunno.

    I've had APF running forever, but I dont know why (I'm slow...lol) I didn't have BFD running.

  12. #57
    wtw
    wtw is offline
    Registered User
    Join Date
    Jan 2005
    Posts
    4

    Default Excellent

    Thank you for taking the time to place all of this in one section. This is uber kewl!

  13. #58
    Member
    Join Date
    Jan 2004
    Posts
    106

    Default

    This thread was a godsend. One thing though on the apf, it doesn't say to change the defaults on a few things that say disable but I would think should be enabled. Are these settings ok or do they need to be changed:

    PHP Code:
    # Egress filtering [0 = Disabled / 1 = Enabled]
    EGF="0"
    ----snip----
    # Import /etc/apf/ad/ad.rules ban list generated by antidos;
    # this is essentialy a quick enable/disable feature for
    # the insertion of such bans. [0 = Disabled / 1 = Enabled]
    USE_AD="0"
    ----snip---- 

  14. #59
    cPanel Partner NOC cPanel Partner NOC Badge gorilla's Avatar
    Join Date
    Feb 2004
    Location
    Sydney / Australia
    Posts
    732

    Default

    Mods, i vote for this threat to be a STICKY as it'll help a lot of newcomers to the forum

  15. #60
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Goo added
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

+ Reply to Thread
Page 4 of 18 FirstFirst ... 2 3 4 5 6 14 ... LastLast
Similar Threads & Tags
Similar threads

  1. A Beginner's Guide to Name Servers Part-2 (Custom Nameservers for Resellers)
    By 000000000 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-29-2008, 02:02 PM
  2. Guide to securing a server?
    By hexstar in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-04-2007, 11:10 PM
  3. Replies: 25
    Last Post: 10-01-2006, 01:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube