Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
|
|
04-06-2010, 06:23 PM
|
#1
|
Member
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361
Rep:
|
iptables log to MySQL
Hi all,
Does anyone know how to make iptables log to a MySQL database?
If you do, can you tell me where I can find a good tutorial?
I hope that I didn't ask a question that I could have found easily using Google. I didn't find much or at least not very recent.
I am using CentOS 5.4, iptabels 1.3.5 and MySQL 5.0.77.
TIA,
Arjan.
|
|
|
04-06-2010, 06:53 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,326
|
Quote:
Originally Posted by Blue_Ice
Hi all,
Does anyone know how to make iptables log to a MySQL database?
If you do, can you tell me where I can find a good tutorial?
I hope that I didn't ask a question that I could have found easily using Google. I didn't find much or at least not very recent.
I am using CentOS 5.4, iptabels 1.3.5 and MySQL 5.0.77.
|
Try this:
http://linuxgazette.net/121/anonymous.html
A bit older, but still relevant. The ulogd daemon is what you're after. Once that's done, a small bit of configuring can send anything that 'logs' to the daemon, and from there, into MySQL
|
|
|
04-19-2010, 04:56 AM
|
#3
|
Member
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361
Original Poster
Rep:
|
Thnx for your help.
A friend suggested to use syslog-ng, which works just fine.
|
|
|
All times are GMT -5. The time now is 07:40 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
|
|