Networking :: Settings Up IpTables To Log Bandwidth On Ubuntu
Mar 1, 2010
I would like to set up a logging system for rtorrent, the only way that i could think of this would be to set up bandwidth moniters in the ip tables but im not sure how to go around this.
View 1 Replies
ADVERTISEMENT
May 14, 2010
I am trying to limit bandwidth of certain ip addresses on my server. I have been doing hours of reading and not getting very far...
So far I believe the iptables command is:
And now I just need the tc command to read those marks and limit bandwidth, I have a gigabit connection and would like to limit each of these ip addresses to 10mbit in and out.
View 1 Replies
View Related
Jan 1, 2011
i wanted to do bandwidth management/traffic shaping on my Internet link(have two internet connections), but i have some questions to ask: I want to know how could i for example filter some traffics using tc and iptables (e.g Peer-to-Peer,IM,Download Managers,Flash videos..) i can do filtering for known services like http,ssh,... but since these applications doesn't use one port, i am confused a little bit. I also want to do some bandwidth allocations (based on protocol) thats why i need filtering.
The other question is that currently i am using tc for bandwidth allocation and iptables for marking packets to send to these classes, am i doing it right? I mean it does work, but is it better to use for example "U32" filters for filtering? P.S: i tried to use ClearOS in gateway mode, but it doesn't have bandwidth allocation functionality. Does anyone know if i could do bandwidth allocation in ClearOS/Endian.
View 1 Replies
View Related
Oct 31, 2009
Im new to fedora 11 and iptables, and i need to set the following set of instruction so VirtuaBox can accept request from lan, to the mailServer in the guest os, but after restart fedora i have to input it all again.How can it become permanent entry in iptables.
View 2 Replies
View Related
Nov 18, 2010
I created a the class like this for shaping the packets with a specified bandwidth rate.....
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 15
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 750kbit ceil 750kbit
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 600kbit ceil 750kbit prio 0
For Our Requirement:-
I dont want to specify the bandwidth rate strictly like this rate750kbit ceil 750kbit,based on whatever speed is coming which should allocate the bandwidth rate for particular class...I need one application for finding the upcoming bandwidth & Is any other method is there for specify the bandwidth rate in a classes.
View 1 Replies
View Related
Apr 26, 2011
My server has been the repeated victim of bandwidth attacks: any large file on the server is downloaded repeatedly, with the goal of pushing the server over the provider's bandwidth limit. How can I lessen the effect of these kinds of attacks with IPTables or APF? For example, can I set the server to: Is this possible? Is there a more effective way, and can a firewall even do this? My web server is Lighttpd, perhaps I can place such a rule directly in its config?
View 1 Replies
View Related
Apr 5, 2011
Can I, with only the use of IPTABLES, limit the incoming bandwith for a protocol? We have for example servers that have a FTP and HTTP server running and whenever HTTP has a lot of connections open, the other uploads/downloads get a timeout. I know I can limit the number of connections but prefer to limit on protocol level. Is this possible using IPTABLES and if so, can someone indicate how to proceed or provide a link? If it's not possible can someone point me to the right tool for the job?
View 6 Replies
View Related
May 27, 2009
We have a sipmle office network set up that we also use use to connect to the internet, however of late the number of users has increased thus slowing internet access. Bandwidth upgrade is not an option thus i have to do bandwidth shaping on our linux router. The question is how do set the squid configs to allow certain IP's range a certain percentage bandwidtheg 60% and furthe divide the rest. Alternatively how can allow certain IPs to have higher bandwidth access.
View 1 Replies
View Related
Sep 1, 2011
I am currently trying to best configure my Natty Narwal linux distro. At boot, the system is configured to automatically connect last Wifi network. When I connect to the WIFI however a whole bunch of instructions are loaded in the IPTABLES.
View 1 Replies
View Related
Aug 16, 2009
I'm running Ubuntu 9.04 and started messing around with my firewall, it got a little too complecated for me, so I just would like to be able to somehow restore the default iptables setting. Any idea how I can do this?
View 7 Replies
View Related
Apr 15, 2010
So I know Linux has iptables, I'm rather new to linux, and I'm wondering, are the stock settings with Ubuntu/Kubuntu safe? Is there anything I need to do make them more secure? I tried adding rules myself for some things but ended up just not being able to do anything so I had to reset back to stock with iptables -F. Should I be safe running as-is?
View 4 Replies
View Related
Aug 12, 2010
I have a server with 14 IP's on eth0. I'm using virtual interfaces to handle the IP's, but the iptables don't seem to work on the virtual interface. It blocks ports that I want open. I'm not that great with iptables, I use what I have because it works for me, but as far as tweaking it, I'm pretty lost.
My iptables:
# Simple Firewall configuration
#
# Set default policies --------
*filter
:INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
#
# Internal Networks -----------
#-A INPUT -s <private.class.C>/24 -d <private.class.C>/24 -i eth1 -j ACCEPT
#
# Loopback --------------------
-A INPUT -s 0/0 -d 0/0 -i lo -j ACCEPT
#
# Accept established connections
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
#
# Services --------------------
#
# For SSH gateway
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 22 -m state --state NEW -j ACCEPT
#
# For SMTP gateway
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 25 -m state --state NEW -j ACCEPT
#
# For FTP server
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 20 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 21 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 53 -m state --state NEW -j ACCEPT
#
# HTTP services
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 80 -m state --state NEW -j ACCEPT
#
# HTTPS services
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 443 -m state --state NEW -j ACCEPT
#
# POP-3 services
#-A INPUT -p tcp -s 0/0 -d 0/0 --dport 110 -m state --state NEW -j ACCEPT
#
# IMAP services
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 143 -m state --state NEW -j ACCEPT
#
#PLESK
#-A INPUT -p tcp -s 0/0 -d 0/0 --dport 8443 -m state --state NEW -j ACCEPT
#
#Games
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 28960 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 28960 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27666 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27666 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 28961 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 28961 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 28962 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 28962 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27015 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27015 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27016 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27016 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27017 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27017 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27020 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27020 -m state --state NEW -j ACCEPT
# Disallow fragmented packets
-A INPUT -f -j DROP
#
# Log & Block broadcast packets
-A INPUT -d 255.255.255.255/0.0.0.255 -j LOG
-A INPUT -d 255.255.255.255/0.0.0.255 -j DROP
# Log & Block multicast packets
-A INPUT -d 224.0.0.1 -j LOG
-A INPUT -d 224.0.0.1 -j DROP
#
# Log and drop all other incoming packets
-A INPUT -j LOG
-A INPUT -j DROP
#
COMMIT
View 18 Replies
View Related
Jan 25, 2011
In my server the iptables and ip6tables services are not running. But still i am getting some iptables and ip6tables related alerts on my /var/log/messages. My technical leader told me that there might be some mis-configuration in iptables configuration file. But i didnt see anything wrong.
Quote:
Quote:
What does it mean "Jan 25 11:01:32 beteduibsrv3 avahi-daemon[3308]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::226:b9ff:fefc:6ec4."
View 2 Replies
View Related
Apr 12, 2010
You may have seen some other posts by me about my final year college project. Im implementing a web based network management website. Iv got a lot of the functionality working at this stage but one part is allocating bandwidth.
Iv got an eircom 3mb broadband connection and I want to be able to split this between users. At the moment I only have my desktop and laptop on the network. Im looking for advice on how i can allocate bandwidth with iptables and/or the tc tool in ubuntu.
My website is on an ubuntu virtual machine and written in php. Whatever about running the iptables and tc commands from php I still need to figure out the actual commands i need to use in the first place.
View 14 Replies
View Related
May 3, 2010
Hey when i am downloading any thing using firefox or torrent, the downloading application eats up all the bandwidth, meaning i cannot browse the web simultaneously downloading anything , even Gwibber does not get updated...
View 4 Replies
View Related
Jul 6, 2011
Since this is my number 1 place for asking questions, I figured I would go here first. So I live in New Zealand where good internet doesn't exist yet, and I'm in a flat with 3 other people and we get 40gb a month which hasn't been lasting more than 2 weeks. It is somewhat of a mystery where all our data has gone, so I need a way to monitor usage. We use a variety of operating systems including linux, xp & windows 7 on my pc, and xbox 360. Is there any kind of integrated solution I can use to monitor everything with password protection so it can't be disabled? I have tried looking in the router, but it doesn't give me many statistics, and I think it combines lan with wan usage. At this stage I don't have the money to make a linux box to put between the router and the switch that can monitor everything, but if it comes to it, I will shell out for one.
View 3 Replies
View Related
Jan 12, 2010
What are the commands available in ubuntu to share & divide the incoming Bandwidth in Ubuntu? I am developing a Network management application for ubuntu in java. I am going to use it in server.Also I want to know about the networking commands available in Ubuntu.
View 3 Replies
View Related
Oct 5, 2009
I am renting a VPS from[URL].They do not supply a webhosting panel for restarting/shutting down or for seeing monthly bandwidth consumtion. I am running CentOS 5.3. I was wondering if theres any programs that you can install to view monthly/daily bandwidth consumption on our server?
View 2 Replies
View Related
Jan 18, 2010
How to share bandwidth by means of commands in Ubuntu Linux?
View 3 Replies
View Related
Jan 28, 2010
I wish to setup my spare PC as a router. I was wondering what programs, in ubuntu, I can use to monitor and change settings concerning bandwidth usage. I want to throttle down a computer in my network so what program would be good for this?
View 1 Replies
View Related
Mar 6, 2010
I'm having problems with squid, and i don't know how to solve them because I'm new to linux. a. Why squid in my computer often does not work? The process has already started (using the command sudo squid start), but the Internet on client computers can not connect. This can be be resolved if the proxy server computer is restarted. Anybody know why is this happen?
b. How do I set the client bandwidth limitation using squid? I want the client computers can only use maximum 60-70 KB / s. Do I need another additional software package?
View 1 Replies
View Related
May 16, 2011
I have an Ubuntu box, and there are two another PCs with Windows XP at my home.There is a TP-Link WR340GD wireless broadband router, and a Motorola SB5101E cable modem. Maximum download speed of the Internet connection is about 6 Mbit/sec.While I'm starting some download processes on the Ubuntu box, the other two PCs get only small bandwidth according to their users, although download speed on my computer does not often exceed its maximum.
More precisely: I usually download files at approx. 1 Mbit. The other users complain about that I slow down the Internet connection at their computers, and tell me to stop using the Internet.Is it possible to improve the usage of internet bandwidth, and share the connection fairly between computers
View 1 Replies
View Related
Jun 10, 2011
I have an ubuntu machine connected to my network which is used as a Minecraft server, storage, and a subsonic server for music. For the most part, the only person using these services, especially during downtime, is just me at home. Which is why I'm surprised that 2-days ago I detected that my network was being slowed to a crawl. There I found that the ip connected to my ubuntu was moving around 170,000 kb on my Netlimiter 3 program.
I have no idea why that is, I closed my ports that were forward for the ubuntu servers, but the bandwidth keeps leaking. Disconnecting the network from the ubuntu computer or turning off the computer stops the odd downloading and uploading. If anybody would have any information of what I can check or shut down in Ubuntu, please let me know. I'm fairly a beginner to the OS, but haven't been able to find a similar problem on this forum.
View 6 Replies
View Related
Aug 3, 2011
very slow internet connection with a download speed of only five kbps and my problem is i have many softwares installed which startup during my boot and i can see network activity in the system monitor that some software is using my internet speed and all other important downloads run slow...Can anybody tell me some softwares which tell me which software is using my internet bandwidth, I tried iftop and it shows only the connection between client and server with ip address ...I need softwares which tell the software using the internet bandwidth
View 2 Replies
View Related
Dec 18, 2009
Im looking for a program to monitor the ammount of bandwidth usage per network. Ex: I have lots of networks connected to one server, and i would like to know for example how much is the average bandwitdh usage for network 172.16.2.0/24 and 172.16.5.0/24 for one hour, for example.
View 1 Replies
View Related
Mar 22, 2010
I'm doing some simulations (using Iperf) to obtain throughputs values of a link between two gigabit ethernet cards for different delays and different drop probability (using netem) .... Now I have to do a 3minute long simulation in which during the firstnute the bandwidth is 1000Mbit/s, 500Mbit/s during the second minute and 1000Mbit/s during ththird one....Does anybody know how can i do this type simulation
View 4 Replies
View Related
Nov 26, 2010
Calculating the available bandwidth methods IGI/PTR,PATHLOAD,SLOPS,PACKET PAIR...
I gone through above methodogies ,when i finish one methods(IGI/PTR) i came to know,one application should run in client side and another application should run in server side (i.e,) Internet Service Provider side,
In IGI/PTR method ./ptr-client.c & ./ptr-server.c is there .,if we want available bandwidth,I Should run ./ptr-client.c (in myside)correspondingly ./ptr-server.c then only we wil get a availble bandwidth...
My need is without run any application on the server side ./ptr-server.c like that,but I should develop the application only on client side (in my routerside based on linux)..
1:whether it is possible to get the available bandwidth run application in client side only?.if possible. how i implement the code in client side( only )for getting the available bandwidth ...whether any source code is available?...
I dont want to test the speedtest.in (in GUI )
View 1 Replies
View Related
Sep 25, 2010
I am Network Administrator in a Degree College managing around 2500 Comps. My ISP has terminated its Internet link (15 Mbps) to our Linux Server (Installed 2 NIC) from where Internet connection is extended to rest of the machines in network. I am supposed to send different bandwidth to different departments say 5 Mbps to Hostel, 2 Mbps to Staff room etc. I am new to linux and don't know anything about Bandwidth Management in linux.
View 2 Replies
View Related
May 1, 2010
I am connected with LAN. We have many computers with different OS viz.linux, windows etc. Now I want to know the bandwidth every computer is getting and using. Is there any Ubuntu packages to monitor this?
View 1 Replies
View Related
Mar 7, 2011
I am using SQUID 2.6 on cent os. Squid as a proxy server is working fine. I want to manage my bandwidth according to my office staff.Like for top management users may allocate 1 MB and rest of the users as 256 kb.Kindly guide me that how can I do it ?
View 1 Replies
View Related