LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-28-2004, 05:57 PM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
Cutting arp requests to my box


My PC is connected to ISP via cable mode. I've been seriously flooded with arp requests. Here is a little log from tcpdump to see what I mean:
Code:
01:37:23 root@skynet:~# tcpdump -vv -i eth0 host 192.168.192.1
tcpdump: listening on eth0
01:37:26.446680 arp who-has 192.168.195.181 tell 192.168.192.1
01:37:26.459501 arp who-has 192.168.201.74 tell 192.168.192.1
01:37:26.461011 arp who-has 192.168.206.245 tell 192.168.192.1
01:37:26.481737 arp who-has 192.168.205.176 tell 192.168.192.1
01:37:26.529708 arp who-has 192.168.194.235 tell 192.168.192.1
01:37:26.541266 arp who-has 192.168.207.250 tell 192.168.192.1
01:37:26.568725 arp who-has 192.168.202.236 tell 192.168.192.1
01:37:26.573056 arp who-has 192.168.204.230 tell 192.168.192.1
01:37:26.587006 arp who-has 192.168.195.252 tell 192.168.192.1
01:37:26.608921 arp who-has 192.168.200.175 tell 192.168.192.1
01:37:26.653748 arp who-has 192.168.204.141 tell 192.168.192.1
01:37:26.677884
161 packets received by filter
0 packets dropped by kernel
01:37:28 root@skynet:~#
I tried a lot of stuff to do with iptables to reject or drop this incoming thing, some of them succeeded, but completely disconected me from the outer world Others didn't do anything. I tried to restrict incoming connections via their mac address (-m mac --mac-address...) and put a reject all rule before these rules but that stopped all incoming conns. If I put the reject all rule after the others that arp flood didn't get stopped at all.
I tried with "-m state --state" and different states - INVALID, NEW, ESTABLISHED and rejected them, but that didn't help. Well, rejecting NEW conns actually DID help, but I don't want to cut off my connection at all
Someone have an different idea?

Errr.. I forgot to mention. 192.168.192.1 is my gateway It's kinda stupid to be flooded from it's own gateway :/ I can't drop it, becouse it will f*ck up my net totaly. Does anyone have an idea how to cut ONLY these arp things? Can this wierd stuff be provoked from my box? I mean, not remote PC's fault, but mine?

Last edited by ivanatora; 08-28-2004 at 06:09 PM.
 
Old 08-28-2004, 06:58 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Might make more sense to figure out why your gateway is generating so much ARP traffic. Is the gateway yours (part of your LAN) or does it belong to your ISP (is part of the ISPs cable network infrastructure)?
 
Old 08-28-2004, 10:47 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
ARP traffic is always broadcast to the local segment. It's the only way to tell where to send packets for a particular IP. If your gateway cannot send ARP requests to you, then you have no way of telling it where you are and thus no traffic will get forwarded to you. It looks like your Internet provider is using a gigantic LAN rather than properly segmenting it. It seems that the entire 192.168.0.0/16 is one huge subnet.
 
Old 08-29-2004, 03:29 AM   #4
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
It is part of my ISP gigantic cable network (/22 mask, i dunno why they have done that) and it is behind my cable modem.
If I can't reject that fully, can I put a limit rate of 2-3/s (for example) requests to me? That would seriously stop the flood.
Btw, I wrote an e-mail to my ISP telling them the problem, but I know the competency of their work and don't expect answer or something be done on the trouble soon.
 
Old 08-29-2004, 06:18 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
That's bigger than a /22. It goes as low as .195 and as high as .207. That's at least a /20 (unless I'm bad at math again, which is quite possible). You don't really want to rate limit those ARP requests because you might end up rate-limiting one to you (unless there's some way you can filter based on ARP content with iptables, but I really doubt that).

The good news is that they don't require any response by your machine, so there's really very little difference between accepting them and dropping them. It's not like TCP or UDP where you have to generate a response packet back even if the port is closed, because ARP doesn't work that way.
 
Old 08-30-2004, 02:46 PM   #6
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Rep: Reputation: 30
yeah, i also have this problem. the ip of my eth0 (interface which is facing the internet) is 82.38.x.x.

20:31:54.354636 arp who-has 82.38.43.24 tell 82.38.40.1
20:31:54.365234 arp who-has 82.38.43.26 tell 82.38.40.1
20:31:54.373088 arp who-has 82.38.43.33 tell 82.38.40.1
20:31:54.379446 arp who-has 82.38.44.145 tell 82.38.40.1
20:31:54.383702 arp who-has 82.47.163.194 tell 82.47.162.1
20:31:54.385327 arp who-has 82.38.43.37 tell 82.38.40.1
20:31:54.401013 arp who-has 82.38.43.251 tell 82.38.40.1
20:31:54.431703 arp who-has 82.38.43.64 tell 82.38.40.1
20:31:54.437526 arp who-has 82.38.43.65 tell 82.38.40.1
20:31:54.444977 arp who-has 82.38.42.66 tell 82.38.40.1
20:31:54.460424 arp who-has 82.38.43.96 tell 82.38.40.1
20:31:54.474147 arp who-has 82.38.42.115 tell 82.38.40.1
20:31:54.474595 arp who-has 82.38.43.98 tell 82.38.40.1
20:31:54.476170 arp who-has 82.38.43.99 tell 82.38.40.1
20:31:54.477372 arp who-has 82.38.43.100 tell 82.38.40.1
20:31:54.481648 arp who-has 82.38.46.18 tell 82.38.40.1

etc...

i must get about 100 requests a second. strange.
 
  


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
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 05:02 AM
a lot of ARP requests- why? zivota Linux - Networking 5 09-26-2005 08:06 AM
Many arp requests norman in tcpdump? af_dave Linux - Networking 0 08-21-2004 08:01 AM
Why am I flooding my network with ARP requests? DocKarl Linux - Networking 3 05-07-2004 11:50 AM
How to monitor the ARP requests from other than eth1 Bassam Linux - Networking 4 02-10-2004 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:05 AM.

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