LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-10-2013, 09:47 AM   #1
l0pht
Member
 
Registered: Sep 2008
Posts: 79

Rep: Reputation: 1
my web server have too large bandwidth


Hi,
i have a web sever
i configure iptables like:
Code:
# Generated by iptables-save v1.4.7 on Tue Jan 15 11:05:21 2013
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 667 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20:21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 143 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8443 -j ACCEPT
-A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 53 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 667 -j ACCEPT
#-A OUTPUT -p udp -m udp --dport 123 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 43 -j ACCEPT
#-A OUTPUT -p tcp -m tcp --dport 20:21 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 143 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 8443 -j ACCEPT
COMMIT
# Completed on Tue Jan 15 11:05:21 2013

but i have a large traffic around : 100 GiB in month
i do not know how can i check it? which generate this traffic?
i install ossec and configure iptables
please guide me.
thanks
 
Old 02-10-2013, 10:57 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by l0pht View Post
Hi,
i have a web sever i configure iptables like:

but i have a large traffic around : 100 GiB in month i do not know how can i check it? which generate this traffic? i install ossec and configure iptables
There's nothing we can tell you based on what you posted. You have a web server, and see outgoing traffic...yep, sounds about right. But you haven't said if that's unusual for your website, what changes have happened recently, version/distro of Linux, or ANYTHING about what your server does. Have you checked the system logs? Apache logs?? Is this the same server you posted about before, that was your mail server?

Without details, we can't help.
 
1 members found this post helpful.
Old 02-10-2013, 12:48 PM   #3
l0pht
Member
 
Registered: Sep 2008
Posts: 79

Original Poster
Rep: Reputation: 1
sorry for unperfect post.
OS is : centos 6.3
mail server installed with plesk : postfix
for web manager plesk has been installed and 4 website hosted.
in plesk traffice analyze just 2 or 3 gig displayed but in RX and TX in ifconfig for eth0 65 gig for this month showed and i should pay for this additional bandwidth.
i installed monitorix : http://130.185.72.199/monitorix/
in apache and messages log nothing is terrible.
what can i do ? how to see what is create this traffic?
thanks
 
Old 02-10-2013, 02:08 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by l0pht View Post
sorry for unperfect post.
OS is : centos 6.3
mail server installed with plesk : postfix
for web manager plesk has been installed and 4 website hosted.
in plesk traffice analyze just 2 or 3 gig displayed but in RX and TX in ifconfig for eth0 65 gig for this month showed and i should pay for this additional bandwidth. i installed monitorix : in apache and messages log nothing is terrible.
what can i do ? how to see what is create this traffic?
Think about what you posted.
  • You have a server running postfix, plesk, and you're hosting 4 websites
  • You posted before about your mail server being blacklisted for spam
Do you not see a potential issue? Your mail server may be churning it out, and for your plesk panel, is that showing your traffic for ONE website, or all of them? Again, if this just started happening, what has changed?

You need to examine all of the services running on that server, not just your apache logs. What does your mail server show? You haven't had monitorix running for very long, but you have activity on several ports; SMTP, POP3, HTTP, and MySQL. All of these services report to different logs.
 
Old 02-10-2013, 07:31 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by l0pht View Post
i installed monitorix
On a side note you may want to restrict access to that. No need to share that kind of nfo with the whole world.
 
  


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
Free webhosting with large bandwidth ylang Linux - General 4 09-24-2012 09:03 PM
LXer: This week at LWN: Large pages, large blocks, and large problems LXer Syndicated Linux News 0 09-27-2007 11:40 AM
web based bandwidth monitoring like cPanel markg85 Linux - Software 2 01-26-2007 11:11 AM
Web Application to grab large files from web addresses farmerjoe Programming 3 10-16-2005 08:49 AM
Enough bandwidth for web/mail hosting? scarr3d Linux - Networking 3 12-12-2003 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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