LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2004, 09:26 AM   #1
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
My logs are being flooded from pings from my router(i think)!!!


hey,
I am running Debian Sid.My netowrk setup is not complicated at all...i am behind a router whose address is 192.168.0.1 and my address is 192.168.0.2
Now i keep getting logs of pings/probes sent by my router to my machine.the look like this:
Code:
IN=eth0 OUT= MAC=00:c0:a8:8d:cf:d9:00:09:5b:4e:66:52:08:00 SRC=192.168.0.1 DST=192.168.0.2 LEN=78 TOS=0x00 PREC=0x00 TTL=64 ID=18262 PROTO=UDP SPT=13635 DPT=137 LEN=58
I dont exactly know what this is but i am guessing these are pings from the router to my machine.
MY log files in /var/log are flooded with these messages including dmesg and messages.
Also when i go into console mode after turning off X i keep getting these messages almost every minute and like 5 at a time.Even if i am editing a file in vi i get this message and it becmes very irritating since i have to clse that file and open it again after these have stopped.
I have been having this problem since the last month or so.
Oh and if it matters i run kernel 2.4.24
i would really appreciate it if someone could point me in the right direction to stopping these messages from being logged/displayed.
thanks
 
Old 03-11-2004, 10:17 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
UDP port 137 (and TCP 137 for that matter) is used by the NetBIOS Name Service.

Does your router have any kind of firewall, or is it forwarding any/all traffic to your machine? It sounds to me like you are getting lots of Windows orientated traffic from the web. Although they look like they are from your router this may not be the case - will your router NAT incomming (read new connections) traffic? If it will then these could infact be from any external IP address.

Are there any NetBIOS related settings on your router? What model is it?

cheers

Jamie...
 
Old 03-11-2004, 10:21 AM   #3
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
i have a netgear router.I have opened up ports 22 and 80 and forwarded them to my machine since i access my computer from school and work.My roomate is running win XP and i think he does have netbios running.I also think that my router does try to determine my machine name since when i go onto my router page and click on attached devices...it shows my roomates machine name and mine s unknown...so maybe it is trying to determine the name of my machine?
or should i ask my roomate to turn off netbios...since he does not use it at all.
 
Old 03-11-2004, 10:24 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
As that port probably isn't open on your box I probably wouldn't worry about it. I would simply stop iptables from logging those packets, perhaps put a rule is to "-j REJECT" those packets?

cheers

Jamie..
 
Old 03-11-2004, 10:46 AM   #5
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
well i havent really ever tried setting upiptables by hand.I use firestarter to do the job.
It has ports 22,80,25 and a couple others open for my p2p netowrk.
could u tell me how i can tell firestarter to tell iptables to reject these.
or where i might find the script that is run for the firewall and where i shud put in that particular line?
thanks a lot.
 
Old 03-11-2004, 10:53 AM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Sorry, whilst I could tell you the syntax of the iptables rule to reject the packets, or to disable logging I've got no idea where you'd put them in Debian, or how you would do this via firerstarter.

I'm sure someone knows will fill in the blanks.

Jamie...
 
Old 03-11-2004, 12:06 PM   #7
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
well i switched off my roomates netbios service but i still am getting those pings.
i will look into here to find the scrips but once i do ...all i have to do is a add "-j REJECT" to the file?do i not have to tell it which port this is coming from or what kind of packets to not log?
thanks a lot for your help.
 
Old 03-11-2004, 12:09 PM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
You'll need to add something like
Code:
iptables -A INPUT -i eth0 -p tcp --dport 137 -j REJECT
iptables -A INPUT -i eth0 -p udp --dport 137 -j REJECT
to your script(s).

cheers

Jamie...
 
Old 03-11-2004, 01:42 PM   #9
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
well i did put those two lines in my firestartr script which is the script that is run for my firewall.
i hope this will solve the issue but i cant really check it since i am not at home right now.
I will let you know as soon as i get back there.
thanks for all the help though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
router: inconsistent pings messiahnet Linux - Networking 1 06-21-2005 07:01 AM
Flooded with keepalives lantern Linux - Networking 2 03-31-2005 08:27 AM
Router Logs sent to Syslog - Can I change the location Gnarg Linux - Networking 4 08-10-2004 09:24 AM
Network card pings ok, but can't access web via router BeerMonster Linux - Networking 7 11-09-2003 10:46 AM
snort logs get flooded iceman47 Linux - Security 2 06-04-2003 04:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration