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
ADVERTISEMENT
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
View Related
Dec 4, 2008
On one of my servers i can't CHMOD 777 Files, but i can CHMOD 777 Folders.
Files are chmod 777 but on scripts installation... It's Said Please Chmod Example.php to 777
Centos 5
PHP 5
Apache 2.2.3
View 11 Replies
View Related
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
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
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
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
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
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
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
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
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
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
Nov 8, 2009
is this a good deal for a sever for $69 a month
320GB STORAGE
3,000GB MONTHLY TRAFFIC
2.6Ghz AMD PHENOM II X3
2GB RAM MEMORY
how do i prevent the hosting company from significantly raising my monthly cost?
View 3 Replies
View Related
Apr 15, 2008
What type of server and connection I need to handle more than 50.000 visits per day in a Webserver Front-End / Database Back-End.
View 5 Replies
View Related
Mar 11, 2008
i have VPS CentOs5 running 2.6.9-023stab044.11-entnosplit with Plesk 8.3 Panel ..
last nigth when i was talking with the support center and i past my root passwd ..
after 10-15 mnts some attacker has change my page (index.html)
the server is new .. i just take VPS server before 3 days .. so there is no way to upload or run any php script ( worm ) in my server kz i didn't install anything there else (.html) pages ..
so i stop my VPS tell today and now i change my password and run the command to find any php files in my Vhosts folder wich content my sites directory...
i didn't find anything there and everything looking as a Defualt..
now the question is there anyway for the attacker to hack NixCore V1.5.0 Support Center ...?
and if there any way to check my server if there any uploading new files? whatever is .php ; .pl ; .rar ; .gif ; etc ...
and what command to show what the user group have the root permission?
View 4 Replies
View Related
Jul 26, 2008
firewall for my new server. I will be running cpanel 11 on it... so i was looking into configserver.com . Are they good? Is there any other firewall software's you can recommend besides configserver?
View 3 Replies
View Related
Mar 2, 2007
Is this possible we can scan virus on the account on server?
View 1 Replies
View Related
Mar 23, 2009
I'm wondering what the benefits are from switching a hosting server's nameservers to OpenDNS's.
Will this be better for the server or will it cause issues?
View 4 Replies
View Related
Nov 16, 2008
I rented out a server from leaseweb for 6 months (prepaying) before doing any real researching.. the price was great but the support apparently sucks. Now that I found this out, and my server hasn't been setup yet, I want a full refund. I've contacted them via email, but yet to recieve a response; who should I contact or what should I do.
View 12 Replies
View Related
Mar 27, 2008
This weird issue has poped up only this weekend , when csf blocks all ips and even ssh, email and all services are not accesible, even though server is working, but firewall puts a block on everyone, and appears offline to others, any ideas why csf and iptables are not responding and acting in this behavior, i asked jonesolutions.com last time it happened i got no reason/response which could be the culprit.
Could it be the kernel update/upgrade that was done, to optimize load which broke csf and its working?
as this is 2nd incident over last 2 days , and i had thought my management had fixed it. Upset here over the unwanted for no reason downtimes!
Here is the output for this command after i restart csf again, and thats like average too i get over the entire day.
root@webhosting1 [~]# netstat -an |grep :80 |wc -l
188
root@webhosting1 [~]# netstat -an |grep :80 |wc -l
168
Connections to server dont seem to be high enough to pooch the firewall.
View 14 Replies
View Related
Oct 12, 2008
With increased traffic lately I'm trying to plan my next move so I was hoping for some kind recommendation from you guys.
My current setup is 1 VPS from knownhost (managed) where i have my wordpress sites and 1 VDS at FDC (unmannged) for static content like images and zip files but i would like to have everything in one place because it would work out cheaper.
So the question is would i be risking too much if I moved my whole site to a unmanaged dedicated sever without having any expreice other than very basic stuff like intalling afp/ddos deflate?
Right now it seems like their isn't anything to it except upgrading the OS or mysql and things like that in the future...
View 11 Replies
View Related
Dec 3, 2008
to put together a file server. This server will only accept SFTP connections and send/receive data. Also, planning to use RAID 10 with a hardware controller. Just looking to get a feel for the CPU and RAM. While the server load will not be much, scalability is a factor when considering hardware.
View 7 Replies
View Related
Dec 7, 2008
I am looking for a dedicated server for my flash games site. I am currently using 1and1.com for a Titan 16gb ram, 6gb monthly transfer(bandwidth) but not enough. I end up paid almost $2k last month. So I am need is at least 15-20gb bandwidth monthly transfer and about 8gb ram....
View 7 Replies
View Related
Jul 14, 2009
We want to build a file server in our office - either Windows or Linux (doesn't make a difference to us).
We have a lot of satellite offices, and want to have certain computers have access to specific files/folders on the fileserver.
The catch is this... we would like some of our satellite computers to "sync" with the files/folders on the fileserver.
For example, a developer who is constantly working with a particular client, will always want his/her files to sync up with what is on the server.
The developer will want to work with a local copy of the files, and once finished, will upload them to the file server.
A few days go by, and there is a possibility the fileserver has additional information for that client. The developer would then want to download the changed files from the fileserver.
The benefit of working with local files, is that it is quicker to make changes. We can always leave the desktop on overnight to sync between the fileserver and the desktop.
Any suggestions what to look into here?
All of our desktops are on Windows, so we would need a windows application that has this functionality.
Rsync seems to be the closest thing I've found so far.
View 14 Replies
View Related
Jul 10, 2009
I will buy a new Dell server to stream webcasts and also do live streaming.
I will buy a PowerEdge 2950 III with 2 CPU's 2.5 GHZ and 8MB Ram.
View 13 Replies
View Related
Jun 16, 2007
I have set up a HA network.
Web Servers #1 and #2 have their own IPS, but share a dedicated load balanced IP via the H5 Load Balancer.
We have our domain name registered with Yahoo!
How do we point the domain name at Yahoo! to the load balanced IP?
View 3 Replies
View Related
Jul 3, 2007
I've just moved from a reseller account with ResellerZoom, so a VPS with SolarVPS.
When I was with RZ all my scripts could write to folder with the 755 permissions. On the vps I have to alter the folder I want the script to write to to be 777.
Which the is best and most secure?
I think I understand that if a folder is 777 then anyone on the server can write to that folder. So I assume some sort of thing that stops users being able to access folders outside of their own folders is needed? is that right?
View 3 Replies
View Related
Oct 2, 2007
I have a server running php 5.2.4 with CGI as Server API and suexec, but I cant create dirs in php with chmod 755. When I use mkdir("/home/user/public_html/$dirname", 0755); it creates the dir with chmod 744. Why?
I can change later this chmod to 755 in php with the chmod function. But why my server doesnt allow the directory to be created as 755? Where can I configure it?
View 5 Replies
View Related
Jul 16, 2007
How change CHMOD for all files *.php on account /home/user/publc_html?
I user chmod -R *.php
but this does not work for subfolders /home/user/public_html/subfolder1
View 3 Replies
View Related
Jun 7, 2009
we are expanding to offer vps. i have seen diferent servers config. but am not sure what to choose in terms of hardware
View 14 Replies
View Related