Share Best Server/VPS Security Practices

Apr 28, 2009

develop and deploy a security strategy to make my single dedi and two VPSes (all with similar hardware configuration and running Linux Centos 5.2+ w/DirectAdmin CP and Xen virtualization), as secure ass possible, both internally and externally.

I hope you'll freely share your best practices, recognizing that is the kind of thread multiple members will read for a long time to find out WHO the WHT experts are and what they recommended this newb do. While I hope you'll read the whole post because I may raise issues either you've never thought about or legitimate security issues you've tried to make others aware of but to no avail, I don't expect everyone to respond to every word of this long post. Please feel free to provide solutions-oriented comments and/or constructive direction, based on your area of expertise, only to the specific issues you want to address.

A little background is helpful:

I'm not a reseller nor will I be running anything that needs DDOS-like protection. I'll be running some virtual OS instances, trying out VoIP software and installing and running a virtual Linux desktop from my dedi and creating a mirror for the VPS for my websites, blogs, and email. One VPS will be the slave server to the dedi. I will be running my own DNS, mail and virtual servers on both VPS and the dedi as well. I'll also be backing up data on one of the VPS. All of these activities, I know, present security issues I need to confront.

I'm looking for primarily open source solutions to protect my small server network since first, it fits my budget and, second, I find most proprietary software restrictive and easier to exploit with backdoors, etc. I'd prefer an open source alternative that's of the same high quality and security as a proprietary service. But, if you think a proprietary product or service far outstrips anything open source and you've deployed it for clients or used it for your own servers, let me know. (I prefer to hear actual, first person, end-user accounts/suggestions.)

I'm a quick study--in fact, warp speed--so can learn what I need to do if I have good direction, (which is why I came here to ask). But, since I'm not yet an expert, please expect clarification questions.

So, here's what I want to know:

1) I will be logging in via secure, encrypted SSH to run commands and manage software but what's the best secure file and data transfer method/software to use? Can I make SSH more secure? Should I run a VPN from one of the boxes? Is using a secure web interface safe for managing or monitoring my server?

2) What's the best firewall for a dedi and will that firewall work for a VPS?

3) Same question for anti-malware (antispyware/antivirus/antispam) software. I see Kasperky and Dr. Web a lot as well as Spamassassin (which is open source) but what are some other options? Aren't server hackers expecting most servers to have the same protection software and doesn't that make them easier to hack?

4) What are some of the ways my servers can be exploited? For example, can others use my email servers to send spam or other servers to commit illegal acts? (I want to avoid getting my server taken down or my IPs blacklisted for someone else's activities). How do I prevent such exploitation?

5) What's the best and safest way to backup and/or sync my servers? What kinds of encryption should I use for the data on my servers? My internal servers like mail, file and virtual servers and appliances?

6) Other than software, what are some of the best methods for protecting my servers from DNS attacks, spam, viruses, hacking, etc.? Should I write specific commands into certain files or run them on a bash shell?

7) Are their GOOD websites or blogs that cover this subject? I can't afford to buy a library of books and wouldn't have time to read them. Also, by the time I do, the information would be outdated. I need to keep up. Finally, I learn best by doing and need to hit the ground running; information needs to be somewhat noob friendly and definitely actionable.

Also, what about implementing general server privacy practices? For example, I invest in truly private domain name registration (read: privacyprotect.org) and, in addition, private DNS for my website and blog domain names. I will be employing other (legal) techniques that prevent to much info from being revealed in my email headers without getting my email sent to spam. In some case, I use encrypted email.

If I'm taking those steps, so, doesn't make sense to implement a strategy that prevents as many people as possible from physically locating my servers in the first place--to force them to spend significant time (and money if they're serious) trying to figure out where my IP addresses goes by using some kind of stealth DNS?

The analogy that comes to mind is using a correctly configured, encrypted and anonymous VPN, SSH tunnel or proxy server to mask the IP address that leads to your home ISP and, ultimately, to your house. Not to protect yourself from law enforcement because if you're doing illegal stuff online, you SHOULD be caught. But to protect myself from nefarious individuals, nosy neighbors, stalkers or ISPs logging your every internet move. Is there a way to do this with my dedi and VPSes, prevent unnecessary location thus targeting, logging, sniffing, etc?

What other things should I be thinking about? Tell me what I'm missing but please don't just share potential nightmare scenarios without telling me HOW to avoid them.

Again, the advice that's most helpful to me focuses on constructive, actionable solutions; what I CAN do, use, implement, deploy, etc. to develop and execute a strong security strategy for my servers. Again, if you share a negative scenario, please share a positive, effective solution. Tell me how I CAN effectively implement best security practices, even as a noob (since we ALL start as noobs, right?),

I already know this won't be easy but I'm up for the challenge and like the control I'll have managing my own servers. So, I'm also not looking to pay anyone else to manage my digital assets (including my DNS) or for average end-user (retail) solutions designed for truly non-technical folks but ineffective for power users. Been there, done that, lost a lot of data, especially lately.

Finally, though I won't totally cheap out, I don't have thousands of dollars to invest in enterprise level services I don't need for just one dedi and two small VPSes. To me, in terms of scale, this is not unlike securing my home network of a couple of laptops and a desktop workstation from drive by hacking and other threats. In addition to open source software, if I can do something myself, I'd rather, than paying someone else.

If I can rebuild my Windows desktop from bare metal (more than once, in fact) and install a home network and secure both as well as any service can, I can do this.

View 6 Replies


ADVERTISEMENT

How To CHMOD? Sever Security Best Practices

Jan 3, 2007

I have my web server hacked several times and I am beating my head against the wall trying to find the problem(s).

Way back when my sites have been defaced and CHMODing my *.html files to 744 seemed to have done the trick

Now someone has put a phishing site somehow, which by the way I'm not able to remove still, I can't help but to think that I may have more CHMODing to do, I have recursevly set my site to 755, shoud this do the trick? I know I need to chmod .htaccess and alike files to 644, but what about...imagesCGI/PHP?cssetc?

What other steps can I take to secure this thing?

it's a shared host, limited access, but I do have SHELL.

View 6 Replies View Related

Security Risk To Share Phpinfo File

Mar 10, 2007

There are always people who would like to know what the php settings are on the server. Is it a security risk to share the phpinfo.php file on a website, with anybody who visits that website, able to view it?

View 4 Replies View Related

Company Exchange Server & Linux Exim Best Practices

Apr 3, 2009

On of our clients use an MS Exchange 2003 SBS server, with exchange for their internal email. We provide them with a domain, ADSL (which uses dynamic DNS) and POP3 email. They don't have an spam filter program on the exchange server itself due to costs, so I have setup each user on the Exim server, which runs ASSPX for anti-virus / spam filter / etc.

Then I setup the SBS 2003 server to pull the email via POP3, but this doesn't seem to work too well, cause the exchange server doesn't always download the POP3 email, and then the users often sit without email until I go there to manually download the mail again.

I have tried changing the MX record to point to their DynDNS address, and it works well, but then they get a lot of spam. And the cost of a server-side spam solution is just too expensive, and they also pay for the bandwidth uses when spam comes in. So, I moved their MX record back to the Linux server. But now I sit with the problem of the POP3 connector failing from time to time.

So, I would like to know, is there a way to "push" (not forward) mail from the Linux server, after it has arrived and spam been blocked, to another domain, but with the same email address? i.e. the domain in question is attorneys.co.za and I've setup attorneys.dyndns.net as the dynamic domain, but the exchange serves email for attorneys.co.za Forwarding email doesn't work, since there's no such user as bob@attorneys.dyndns.net, but rather bob@attorneys.co.za.

View 0 Replies View Related

Does Apple Have Any Server Market Share

Oct 16, 2009

I couldn't find any info on it so I thought I would ask. Does Apple have any sort of market share for production web servers? Or any other types of servers?

View 10 Replies View Related

Script To Limit File Size On Video Share Server

May 29, 2008

We have found that we need to limit the amount of cpu uage by users on our video share server. On this server we currently have 20 users on a sharred plan. Thought that the obvious BW usage would be the biggest challenge, as it turns out we havent gone over the 2 TB that we have.

We have come up with an encoding process that uses the 264 codec and gives us excellent results in terms of quality but is very cpu intensive to the point of really slowing down the server when 10 or more users simutaneously are encoding their videos.

Can someone suggest a script that would allows us to limit the file size in terms of MB/GB that each user could upload per month.

So for example a client pays 10.00 per month and we wanted to limit their uploads to a total of 900 MB per month vs the client that is paying 50.00 per month who would have the ability to upload say 8 GB per month.

Cento 5
c-panel
Dual Quad Core 2.0 ghz
6Mb Ram
1TB HDD
2 TB of BW

View 2 Replies View Related

Plesk 12.x / Linux :: Setup VPM Tunneling - Access Samba Share From Server

Aug 18, 2014

I have a rented VPS with 2TB of disk space and a plesk license in order to host the sites that i develop and my sites, and found myself with around 1.8TB of free space, plesk samba management and plesk vpn management but with few missing pieces for my idea. My idea was to setup vpn tunneling between my laptop and desktop to plesk server and access samba share from the server like they were in my LAN.In the firewall I have opened only the classic mail and web ports (obviously plesk access too).

View 2 Replies View Related

DNS Best Practices For HSP

Feb 7, 2008

We are starting a new hosting infrastructure.

Starting with:

1 - Linux Plesk server
1 - Windows Plesk server

Each of the above should be a primary DNS server so that customers can use Plesk to manage their DNS settings.

The 'easy button' seems to be to add another IP to each server above and let each also be the secondary.

My understanding is secondary DNS should definitely be on a separate server.

With that said, I was thinking we should have a 3rd server that could be the secondary for either of the above.

The KEY is AUTOMATION. I want it so if someone adds a domain to either of the Plesk servers, the secondary DNS is AUTOMATICALLY added as a secondary to the 3rd server.

I found this tool:

[url]

I think it might work, but we can't be the only HSP using Plesk wanting to keep DNS split across two servers.

What would the best approach be? Seeking something clean and reliable.

View 1 Replies View Related

Logwatch Best Practices

Apr 3, 2009

I've been tasked with developing a default Logwatch configuration for a few dozen servers that will email their findings to a ticketing system. I was hoping to find insight here from users who are using Logwatch similarly. If you have Logwatch emailing a ticket system, I'd love to hear about your custom configs...

View 4 Replies View Related

Best Practices For My SQL5

Feb 5, 2008

Nowadays My SQL5 installation in Windows seemed a breeze do not even need to edit the my.cnf files etc. But is there anything we can do to optimize MySQL inside a Windows 2003 environment?

View 0 Replies View Related

Backup & Best Practices

May 10, 2008

A couple of years ago I was brought on as co owner and admin of a website. Since then we have grown and moved from shared hosting, to a VPS, to a Dedicated Server. Now we are preparing our new website and have a new server configuration chosen.

Currently we run our backups to BQ Internet, who have been fantastic. However the new website will have a lot of videos, currently we have about 14,000 photos at extremely high res (6mb). We have opted for two 500gb HDDs mirrored / raid to ensure we have space for these files and they are backed up.

Now my concern is bandwidth and backing up large amounts of data offsite, would it be beneficial in our case to get a second server locally in the same DC where bandwidth between servers is unmetered?

Is this what most people do? Is it a "safe" option?

What other measures can we take to ensure the integrity of our data, should the server be compromised? Do you on a 3 month or quarterly basis receive backups of your data to your own premesis, or do you just trust it all with your host ?

I'm a bit of a sceptic, so at the moment I have a 150gb per month plan and do a once a month backup locally to my home external HDD, archaic way of thinking yeah?

View 7 Replies View Related

Datacenter Best Practices

Jun 14, 2007

Does anyone have any links to best practice papers or whitepapers on datacenter PHYSICAL construction? I am most interested in rack layout, switch positioning and cable runs etc.

View 6 Replies View Related

Stay Away From 1 & 1 - Bad Billing Practices

Apr 3, 2008

Last year I tested out 1&1 for registering two domains. What a mistake.

DNS propagation takes forever. Namecheap and godaddy propagate within minutes.

My experience with billing has been unnerving.

I moved my domains away from 1&1 before the year was up. I was still billed for the renewal. I phoned 1&1 and received an email that my account was canceled & credited.

Low and behold today I received a notice from NCO Financial Systems, a collection agency that 1&1 uses, stating I owe $6.99 plus $18.95 in fees.

Going back over my records (I save everything) I see that the Credit memo I received (as an email attachment) was for only one of the domains. Yes they had billed me for the two domains even though they had been transfered away.

Thus the $6.99 allegedly still owed them.

Today I phoned customer service and explained the situation. The rep seen the invoice (on my account) for the two domains and only the one credit memo yet could not figure out what to do. I explained the situation to him three times clearly and he would take no action. I asked for a supervisor and none could be found. I will have to call back or have them call me.

He said they would not be able to credit my account for the NCO fees of $18.95 for the $6.99 they BILLED ME IN ERROR!

I am waiting to call back to speak with a supervisor.

In my eleven years of hosting this the lamest company I have dealt with. Even dreamhost had better customer service.

View 8 Replies View Related

Buyer? Seller? How Can To Do Fair Practices?

Apr 12, 2009

Buyer? Seller? How can to do fair practise?

I often sees that when a buyer want to buy something or hire someone, they will be asked to deposited certain amount prior to the work started. I know that this is one way of insurance against scammers and fraud and I have no problem with that.

BUT, what about the buyers? What if they committed to hire a company, given a timeline and when the time comes, the work is still long way to finish or worst, getting a full refund just because the provider decided that they can't deliver the results as promised.

Let's say a buyer hire a company to do custom work. I am pretty much sure that he will not hire another developer as a backup in case the work he's currently outsourced failed. BUT, what if the developer decide to backed out from the deal? What will happened to the buyer's time? He will have to start searching for someone else and start over again. So, by the time he got the job done, he already wasted huge amount of time.

So, I think it would be fair to both parties that a provider should place a TOS stating what will they do if they decided to back off from an ongoing deal.

Yes, this rant came from disatisfaction of my recent fallen deal. I am now way behind my schedule. This is me sharing what I felt right now and no pun intended.

View 13 Replies View Related

Buyavps.com Shady Business Practices

Jun 2, 2008

Last September, I subscribed to a VPS from buyavps.com to test how WHM and some of our accounts behave if we upgrade from PHP 4 to PHP 5. This was concluded towards early November, but I left the VPS subscription active, thinking later on we might have other cases where I would rather test a server-wide software upgrade in a VPS first.

A couple of months later, in January of this year, I indeed had such a case where I wanted to test something again. After a couple of unsuccessful tries, I opened a support ticket about accessing my VPS, thinking maybe I wrote down a wrong password or whatever.

Imagine my surprise when support told me my VPS account does not exist and asked me whether I have been actually paying for one, then asked me for a transaction ID. This although I had an active subscription at that time, paying monthly for the service.

Actually the subscription just billed again right while support sat on the ticket, writing me this response. After that shock, I went and cancelled the subscription, but I already lost another month's payment. I demanded the money back for a period I was charged for at a time when there was clearly no service any more, plus the period before at the end of which there clearly was no service any more either. Support said they'll forward my ticket to billing, and that was the last I heard.

Still having faith in the company, since it was to my knowledge Tina's company (she was the reason I went with buyavps.com in the first place), I decided to wait for a few weeks for the refund.

After that came months where I forgot about this issue, recently noticing only the e-mails again. Still having faith in Tina, I sent her a PM here on WHT so that she could look into this issue. To which she answered that she sold her part in buyavps.com to another company months ago.

At that point, I sent off another support ticket to buyavps.com, where several people asked the same questions all over again, just to say in the end I am not entitled to any kind of refund. At which I got pissed and told them they stole my money and do I really have to come to a public place to tell the story?

Well here I am - knowing the industry I am not very surprised at how they took my money and provided no service for it. For this, they deserve to be named here and serve as a warning for potential new customers of buyavps.com.

However, I am extremely disappointed in how you can't trust even prominent people of this industry with good reputation any more. I signed up to this service because I trusted the person who ran the company, all payments went to her Paypal account, and at the time this whole fiasco happened she was still (part-)owner of the company. Shrugging it all off is not what I expected.

p.s. I have a number of e-mails for proof and further details if desired, just wanted to keep the size of this post within limits.

View 13 Replies View Related

ThePlanet / Other Hosting Providers - Unethical Practices

Nov 11, 2008

I am posting here my experience with Theplanet and also looking to gain insights into unethical practices by hosting providers who are turning into practices of utility and credicard companies. I have been a loyal customer of Serverbeach for 4 years, I have been a loyal customer of Theplanet for more than a year .. I outsource my server administration to admins who setup , configure and manage my servers. Recently Theplanet disconnected our server as our credit card on file expired which I beleive is the right thing to do .. What ticks me off is the fact that they are charging a reconnect fee - FOR WHAT - to click a button? Just Ridiculous. THese dedicated companies are following the path of utility companies and credit card companies which slap various fees on their customers and milking customers .. sure a reconnect fee is understood if the account is not in good standing and such incidents are common on the account . What surprises me is this is the first time in 1+ year and they refuse to waive the fee , it is not the question of fee but the ethics and practices is what I am concerned about. NOw a reconnect fee , what next ? a server restart fee ? which direction are these hosting companies moving towards?

Well I explained the situation and that email is not always the best communication a phone call could have helped. Who would not agree that that single email might have stuck in a junk folder? THey had my full contact information if only they are genuine , they would call and understand what is the issue , have at risk management practices in place so their sales rep could contact me right after 3 days of non payment. But NO they rather wanted me to contact them as they take it for granted that I have been their customer for more than a year and It is not easy for me to move out to a different provider I would not have any option but to pay considering the time and effort involved in migrating to other hosting provider.

ThePlanet - Sorry but on the ethics issue I would not mind spending 100 x the reconnect fee to move to other provider who understands customers.

I am reaching out to all the individuals who sign up with these companies and respond to this post any such experiences.. HIdden fees charged by these companies ? Have you noticed how credit card companies change their billing cycles and you received the bill only to know you missed the payment due date .. ..

That said please let me know which is the best dedicated server company which I can sign up with which does not enforce hidden fees such as these and is ethical and understands and listens to customers.

View 14 Replies View Related

Possible For Multiple Sites On Same Server To "share" One .htpasswd File

May 3, 2007

the subject pretty much sums it up, is there a method or solution for multiple websites (whic reside on the same dedicated server) to share just one .htpasswd, or automate the mirroring of said .htpasswd file?

if so any suggestions for methodology or products that would facilitate this action would be most welcome, thx in advance friends..!

View 10 Replies View Related

Cpu Share On VPS

Dec 5, 2007

My VPS show > Server Load - 1.33 (1 cpu)

But my hosting company saying i have 4 cpu.

then why does it show only 1 cpu?

isnt it suppose to show 4cpu......

View 2 Replies View Related

Change From Share To VPS

Oct 28, 2009

I am teetering on the edge of over using my shared account and have decided it is time to move on to a VPS. This has been a long time coming, but the economy has held me back and now I am running out of options. I have looked at several hosts and just wanted some recommendations. Since this is the first time to run a VPS, I assume a managed VPS is better for me. I am currently looking at KnownHost.com and VPS.net since they are both well reviewed here. I would just like recommendation on what to consider based on my wants.

I do not need much horse power behind the server as I have just pushed passed 20meg of ram at my current host; about max for them. I need a LAMP setup (PHP5, MySQL 5) for 4-5 sites of which only two get any real traffic, the others are just family blogs.

So this is what I think I need, please feel free to make suggestions on hosts or other considerations.

1. 256meg of RAM.

2. 5-10 gig of space

3. CentOS

4. Control Panel - Have used CPanel

5. Less than 200 gig of bandwidth.

6. 2 IPs.

7. Can use Wordpress MU

View 14 Replies View Related

Share Hosting

Apr 8, 2009

I wish to share my hosting, if I make a FTP account specific for a directory, user will access only that directory or he can hack/access something from main directory (mysql/directories etc)

View 8 Replies View Related

Two Different Domains And Share One Vps?

Oct 20, 2008

is it possible to use two different domains and share one vps? If so, how would I go about configuring it?

View 5 Replies View Related

Do VPSs Share The Same IP

Aug 10, 2007

Do VPSs on the same physical server share the same IP?

View 4 Replies View Related

Server Security

May 21, 2009

I'm running CentOS 5.x and DirectAdmin and wondering how to do the following:

- Disable compilers and other known binaries. Should I chown WGET 550?

- Prevent Shell Fork Bombs

- Best way to create partitions for tmpfs, tmp since my host forgot them?

- Any other tips on securing a DA based server? (I already have taken care of the whole SSH side of things)

View 3 Replies View Related

Server / PHP Security

Feb 27, 2007

One one of our (linux) servers spammers are king. they apparently can control anything and place spam links throughout the files.

For example spammer inserts Iframes either above or below HTML tags. (some step57 related type of virus/trojan as it seems)

Our programmer did not find where the problem is in our applications, yet he is not a security expert.

Our server admin company made us install phpuexec, we apparently have been checked on the server end and have mod_security, but we still don't know what's going on...spam continues.

View 6 Replies View Related

Server Security

Oct 9, 2007

Trying to determine what I want to put on my server for security. I have secured my /tmp, /var/tmp, and /dev/shm. I am now contemplating mod_evasive, mod_security, and/or APF Firewall.

1.) Should I install all three, or will APF Firewall, provide the same or similar security as mod_security, or vice versa?

2.) Will they all work together without conflicts?

3.) Does installing these services have any affect on overall server performance?

4.) Any other services you might recommend installing and why?

View 7 Replies View Related

What Do You Think Of My Server Security

Aug 26, 2007

I have recently installed and configured my webserver. Since I think security is very important I am curious for recommendations, tips, etc.

My server:
-CentOS 4.4 (installed by provider)
-Apache 2.0.52
-Php 4.3.9
-MySql 4.1.20
-No FTP
-Mod_security is running

The firewall that comes with CentOS is switched on and allows the following ports: http, ssh, smtp.

I have installed sendmail, but it is turned off by default. I need it approx. 3 times a week for 15 minutes or so and will turn it on then.

I have barely any budget so hardware firewalls etc. aren't an option.

Furthermore it's a basic server, just like my knowledge, so advanced things like IDS aren't an option.

View 14 Replies View Related

Server's Security...

May 8, 2007

i want to know how can they make the directory ( u--------- )

take a look on this php shell

[url]

what i mean is they make the directory secure against any phpshell with that trick and they hide the hard disk space

how can i make this

my apache is 1.3.37 and i using fc5 and i have mod_security and cfs

View 6 Replies View Related

Server Security For Unmanaged Root Server

Aug 31, 2008

I am considering renting a server, but got one question first.

If I sign up for one unmanaged root server with a control panel, from a provider. And just put my website on the server, and let it run there.

Is that a security risk? Is it easy for people to hack into my server, or anything like that?

View 5 Replies View Related

Setting Up A File Share In A VPS

Jan 9, 2009

I'm sure you all may have heard this question before, so I'm sorry if I'm beating a dead horse...just can't seem to find a good answer. I am interested in setting up a fileserver / fileshare on a VPS so that I can create a mapped drive on a windows PC which points to the fileshare on the VPS. I have a client who currently uses a physical server to perform this task, however this physical server is under-utilized and somewhat unnecessary. I mentioned the possibility of moving to a VPS and he seemed interested.
I decided to purchase an entry-level account from VPSLAND to use for testing purposes prior to moving forward with the project. I can't seem to get anything to work so I'm looking for ideas.

I purchased a VPSLAND Windows-based EZ-series VPS with Plesk and all the other bundled goodies.

View 2 Replies View Related

Does Anyone Can Share Experience With Serverboost

Jan 14, 2009

I found dedicated server in NL, serverboost [url], but I didn't find many experience sharing with this provider article.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved