LinuxQuestions.org
Visit Jeremy's Blog.
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 10-18-2005, 12:18 PM   #1
azcoder2
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Rep: Reputation: 0
ISP Traffic for other hosts


I have a dedicated host at a local ISP. They are charging me for more than 20gb of traffic a day. I am sure that the box is not getting that much traffic - I have even limited all traffic by using iptables to filter only to my address.

TCPDump reveals a ton of traffic that is not destined for my host. I see http, ms-sql, etc.. traffic destined for other hosts.


Just to verify - This should not happen if they gave me a dedicated server on a switch correct? I should only see traffic destined for my host or broadcst traffic, correct?

Thanks for any reply....
 
Old 10-18-2005, 12:36 PM   #2
zymurgist
Member
 
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
You're going to get hit with random traffic. Even with iptable, it still has to process that traffic to make sure its not a trusted host. Just make sure you are dropping packets with iptables and not rejecting them, which will double your I/O. The best way to avoid processing them at all is to turn off all daemons that you're not using and close those ports completely. Use tcpwrappers when possible, too.
 
Old 10-18-2005, 01:01 PM   #3
azcoder2
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I have shutdown all external services except Tomcat and SSH. Netstat shows only ports from those services as listening. I have temporarily set iptables to filter only to my client IP.


Still - I am getting tons of traffic for other hosts.


Should'nt the switch only be routing to my host broadcast traffic and traffic destined for my host? I should not see traffic destined for another host connected to a different port on the switch, correct?


Thanks again for your help
 
Old 10-18-2005, 01:11 PM   #4
zymurgist
Member
 
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
Yes, you shouldn't see traffic for other hosts, but you may be getting port scanned. Its all too common and it will jack up your numbers.
 
Old 10-18-2005, 01:35 PM   #5
azcoder2
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your help zymurgist.

I am seeing tons of traffic with src AND destination for other hosts. I even changed the primary bound ip on eth0 to a non-routable 192.168 address, and I still see tons of traffic with src and destination for other hosts.

I have sent a tcpdump to the isp. This time they are saying "we are looking into it and will get back to you" instead of the standard "check your logs" reply I received twice before.

I can't believe how much time and frustration this has caused me - at first I was worried my box had been comprimised.

Again, thanks for your help......
 
Old 10-18-2005, 01:40 PM   #6
zymurgist
Member
 
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
Is your NIC in promiscuous mode? It shouldn't be reading all traffic on the LAN.
 
Old 10-18-2005, 04:18 PM   #7
azcoder2
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I believe TCPDUMP puts it into promiscuous mode.

But my understanding is that, even in promiscuous mode, the switch should not be routing any packets to that host that are not destined for the host. In other words, if you put a sniffer between the host and a port on the switch, the only traffic sent to that port on the switch is traffic destined for that mac address(and broadcast traffic). And the only traffic destined for that mac should be traffic for the ip(s) of the host.

The host cannot see all traffic on the switch, only traffic routed to it.


Does that sound correct?


Thanks again for any help....
 
Old 10-19-2005, 02:21 AM   #8
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
There are a few things I can think that may be going on..

They may have you plugged into a hub.

They have you plugged into a swicth, but it is acting like a hub possibly because of another user that is plugged into it is using some ARP spoofing/poisoning attacks, and basically turning it into a hub.

They may also have the port your server is plugged into set to a monitor mode for some reason. That mode is normally used for IDS sensors so they can see all traffic that passes through the switch.

If you are plugged into a switch you should not see any http, or any other non broadcast traffic on your interface that does not have your IP in the destination field of the IP packet.
 
Old 10-22-2005, 09:42 AM   #9
azcoder2
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I thought some you might enjoy this. The ISP did finally assume accountability:


"Our engineers have discovered that there was a faulty switch that was flooding multiple servers. You bandwidth figures along with other affected customers will be recalculated and corrected. Attached are the comments from the engineer.
"Its a resultant of faulty cisco switch, MIS is deploying a patch to fix this.
Submitted a DBA request to reset the bandwidth for all the affected customers from 10/10/05."

We apologize for the confusion and inconvenience this has caused you, but we will definately correct our error and work to ensure that it will not happen again. Thank you for your patience."


Of course, this was after they told me to "check the logs" and that "administration of a dedicated box is my responsibility" several times.
 
Old 10-24-2005, 01:22 PM   #10
zymurgist
Member
 
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
Nice work. you should get a kick-back from all of the other co-lo'ers that you just saved a ton of money for.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Can I route web traffic to 2 different hosts based on URL under 1 IP Address? Marshalle Linux - Networking 5 05-14-2005 03:02 AM
Traffic shaping on small ISP Ghitza Linux - Networking 0 11-26-2004 01:28 AM
Wireless traffic stomps isdn traffic on gateway machine Radix999 Linux - Wireless Networking 0 11-14-2003 12:54 AM
xinetd, X traffic, hosts.allow fgeter Linux - Security 3 01-16-2003 08:58 AM

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

All times are GMT -5. The time now is 12:06 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