Reading logwatch for my little Linux server
I usually go through the logwatch e-mail every day, usually just to see if the brute force SSH attempts have startet to guess the allowed usernamed (so far they haven't), and who uses the email server (usually just my family). But today I got this on top:
Quote:
Redhat has been on that list before (usually starts something at 4 am each night, but thought it might have been daily yum or something (got Fedora 1 installed), so I have not worried about this top section of the logwatch (mostly because I have no clue how to read it). But should I worry about above? Any tips what I should look for in this list, when looking for compromise of security? Hope u can help. |
Do you have any log rules in you're firewall? Is the log martians or rp_filter set to "1" ? (check /proc/sys/net/ipv4/conf/default/)
Also remember that logwatch simply provides summaries of the notable events. Check the normal system logs for the full entries (for Redhat-ish systems this will be /var/log/messages and /var/log/secure). Post any that aren't clear. |
/proc/sys/net/ipv4/conf/default/rp_filter is 1
/proc/sys/net/ipv4/conf/default/log_martians is 0 (martians...?) cat /var/log/messages | grep 72.21.45.194 gives (3 out of many entries) Quote:
Problem is I am to green to make anything sensible out of the above. My best bet i that some Texan search engine indexed my webpages. |
Quote:
Could you describe your network layout and which IPs belong to which hosts? Also what type of firewall are you using? |
Got a very simple layout. ADSL modem (192.168.1.254), Windows machine .100, Linux 3 server 192.168.1.102 and Linux 2 server 192.168.1.103 (Which is where this log is taken from. The webserver at port 80 is Apache 1.3.28.)
I use the default iptables firewall, but it has been configured using webmin and firestarter, and /etc/sysconfig/iptables looks like this: Quote:
|
Quote:
I use the default iptables firewall, but it has been configured using webmin and firestarter In that case it's likely that the firewall is different from what's in /etc/sysconfig/iptables. Could you post the output of /sbin/iptables-save > firewall and post the contents of "firewall". |
Ah. The ADSL modem is actually a combined box having 4 ethernet ports, wireless, firewall all inn the same box . All machines are connected directly up to the box using ethernet ports. Then I use the adsl modem / router / wireless / firewall webpage settings to redirect ports. For example, Port 80 and 22 goes to the Linux 2 machine, port 2222 to the Linux 3 machine, port 21 (ftp) goes to Windows machine and so forth.
I have an older version of this ADSL modem. |
Ok that makes more sense, could you post the content of firewall.txt after doing this:
/sbin/iptables-save > firewall.txt |
All times are GMT -5. The time now is 08:31 PM. |