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.
|
 |
02-14-2006, 09:48 AM
|
#1
|
Member
Registered: Dec 2004
Distribution: Slackware
Posts: 104
Rep:
|
web server security
I've posted this problem in the slackware forum, but maybe I'll get some help here. I have a slackware 10 box set up at my house as my personal web/ftp/mysql/smtp/ssh server. I have noticed lots of traffic and that my site seems to be getting hit hard from spam to the guestbook and email form. How can I secure apache to not accept this kind of junk? It seems to be eating lots of bandwidth on my DSL connection.
|
|
|
02-14-2006, 11:25 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
This is generally handled with "captcha" software. It's the software that creates those barely readable graphics with text/numbers that people have to type in before an entry is accepted. Many popular web applications now have this type of facility. Do a Google search for captcha and the software you're using on your web site to see if a plug-in is available.
|
|
|
02-14-2006, 11:57 AM
|
#3
|
Member
Registered: Mar 2005
Distribution: FC4
Posts: 83
Rep:
|
Some Tips:
- Apache:
- Enable only needed modules in Apache.
- Install mod_security, and run apache in a jail with chroot.
- Fix all security bugs in Apache installation (see Bugtraq).
- See modules like mod_access, mod_auth, mod_rewrite and mod_ssl, may help.
- MySQL:
- Be carefull with the databases/tables permissions. If you run MySQL in the
same host than apache, you must run MySQL only in localhost.
- Use other user than root (Database Superuser), to
connect your applications in php.
Have a look @:
http://www.securityfocus.com/infocus/1694
http://www.securityfocus.com/infocus/1706
http://www.lamphowto.com/
|
|
|
02-14-2006, 01:36 PM
|
#4
|
Member
Registered: Dec 2004
Distribution: Slackware
Posts: 104
Original Poster
Rep:
|
Quote:
Originally Posted by Intimidator
Some Tips:
- Apache:
- Enable only needed modules in Apache.
- Install mod_security, and run apache in a jail with chroot.
- Fix all security bugs in Apache installation (see Bugtraq).
- See modules like mod_access, mod_auth, mod_rewrite and mod_ssl, may help.
- MySQL:
- Be carefull with the databases/tables permissions. If you run MySQL in the
same host than apache, you must run MySQL only in localhost.
- Use other user than root (Database Superuser), to
connect your applications in php.
Have a look @:
http://www.securityfocus.com/infocus/1694
http://www.securityfocus.com/infocus/1706
http://www.lamphowto.com/
|
Do you have more detailed info about mod_security and jail with chroot?
I'm don't really have any mysql problems, everything seems to root from my site getting constantly scanned for forms to post. I can secure the forms, but that isn't really what I was looking for.
|
|
|
02-14-2006, 03:02 PM
|
#5
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
If you're concerned about the (never ending) scans, then take a look at the source addresses. I find that the scans typically originate from one or two countries. If you don't have any need to interact with folks from those countries (e.g., no business requirement or personal relationships), you can look up their address ranges and simply block them at the firewall. This has the added advantage of reducing the resource requirements on your server, but it is a brute force method.
|
|
|
02-15-2006, 08:36 AM
|
#6
|
Member
Registered: Dec 2004
Distribution: Slackware
Posts: 104
Original Poster
Rep:
|
I let netwatch run on the box for a little while and noticed all kinds of strange connections.
http://www.jcombs.net/~jeff/netwatch.jpg
I don't know why hotmail would be connected so many times. Any advise from looking at the screen shot?
|
|
|
02-15-2006, 09:29 AM
|
#7
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
Well, it looks like a considerable number of packets are coming from Korea.
|
|
|
02-15-2006, 10:24 AM
|
#8
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
He these poor chineese people already have filtering done by their government but for the hackers that manage to go out of the chineese firewall they are blocked by our firewall. lol
Poor them...
I personnaly don't think its so nice to block a whole country just because some zombies or scriptkiddies are there.
|
|
|
02-15-2006, 10:54 AM
|
#9
|
Member
Registered: Dec 2004
Distribution: Slackware
Posts: 104
Original Poster
Rep:
|
Quote:
Originally Posted by macemoneta
Well, it looks like a considerable number of packets are coming from Korea.
|
How do you know? I'm intersted in knowing more details.
|
|
|
All times are GMT -5. The time now is 05:05 AM.
|
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
|
|