Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-23-2006, 08:41 PM
|
#1
|
Member
Registered: Mar 2004
Posts: 31
Rep:
|
web server build howto
Hey, I have to rebuild a web server that will act as a web server, DNS server, email server, ftp server, samba server and possibly some other web related servers. I would like to use CentOS but what security measuers should I install/run to prevent hacking. I had one running fedora core 2 and it got hacked and bad. I need to prevent this. I will be running two NIC cards for an interna and external IP. The external will be a 66.224.xx.xx and serve websites on the same. The internal will be a 10.10.10.x network. A breif walkthrough and hints/ideas are helpful. I recall in the past that I had difficulty with the internal network getting out to the internet. I would also like to be able to VPN into it from home.
Thank you in advance!!
|
|
|
07-23-2006, 09:09 PM
|
#2
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
A good link for firewalls for this situation is
http://iptables-tutorial.frozentux.net/
|
|
|
07-24-2006, 04:07 AM
|
#3
|
Moderator
Registered: May 2001
Posts: 29,415
|
I have to rebuild a web server that will act as a web server, DNS server, email server, ftp server, samba server and possibly some other web related servers.
With all due respect but this sounds like a typical "all eggs in one basket" solution. Services have different requirements and impact wrt users, risk and performance. So first thing IMHO would be to give a thought or two to the design of it all. One way could be to make a list of information that must be secure and services that must be accessable only to LAN (that is, if you can trust your users) users and put those services on a separate box. Split off publicly accessable services that present a risk (or will likely be abused) like FTP, HTTP and any PHP-based apps and confine them to a separate box. Another way, if you have only one box to work on and it isn't underspecced, could be to look into virtualisation (I know, it's a buzzword) as a means of separating services. Whatever way you choose, please make a choice based on objective, measurable criteria. If you're using CentOS-4 I would definately get a grip on SELinux. It may seem a bit of a burden but if you look back at the latest 2.6 kernel /proc exploit you see SELinux did stop that. Also have a look at the LQ FAQ: Security references, next to the section on system hardening there's (a budding one) on hardening services.
|
|
|
07-24-2006, 02:42 PM
|
#4
|
Member
Registered: Mar 2004
Posts: 31
Original Poster
Rep:
|
thank you
I will give the IP tables a good look over. I can't quite get my brain around it though. Seems I fix one problem with it and create another problem.
The two machine method is fabulous! I never even gave that a thought! I have several free IP's available so I can put one for a firewall and another for the server.
Thank you for your help
|
|
|
07-24-2006, 08:29 PM
|
#5
|
Member
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132
Rep:
|
Quote:
The two machine method is fabulous! I never even gave that a thought!
|
Two machines? With all those services I would be trying to get my hands on more than two.
|
|
|
All times are GMT -5. The time now is 01:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|