Linux - SecurityThis 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.
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.
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:
--------------------- Kernel Begin ------------------------
---------------------- Kernel End -------------------------
But I am not sure if I should worry or not. I saw the word netbios-ns in the list above, and instantly thought about netbios attacks (I have heard of em, but know very little else about em), and started to wonder what service 36217 etc was. I can't remember ever installing any service that could be useful for Layered Technologies in Dallas / Texas. I just dobblechecked the firewall too. Only had 8 ports open for web, mail and amule.
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?
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.
My best bet i that some Texan search engine indexed my webpages.
I don't believe so. The traffic is inbound with a source port of 80, which would suggest either it's a reply from some webserver you were contacting (there is an Apache server running on that IP) or it's a scan of some type (many poorly constructed firewalls will blindly allow all traffic with a source of 80 to allow outgoing web access). Layered Technologies (Layer3) is a general hosting and ISP, so any IPs in that netblock could be residential users as well.
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:
# Firewall configuration written by redhat-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
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.)
But how are they connected together? Is one of those systems acting as a router or are all 3 plugged into the ADSL modem somehow?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.