* Doubt in linux quota management @ 2016-03-28 7:34 Arunsundar 2016-03-29 5:57 ` AW: " Stefan Bauer 0 siblings, 1 reply; 2+ messages in thread From: Arunsundar @ 2016-03-28 7:34 UTC (permalink / raw) To: lartc Hi All, I am new to Traffic control module. I have a requirement to do Quota management on Ingress and Egress traffic based on 5 tuple information. For example, if 100MB is allocated for a flow/connection in both direction, then I have to count Ingress and Egress traffic packets for that connection and if it exceeds 100MB then i have to take certain action. As per my understanding, with TC module we can calculate on Ingress and Egress separately. Is there any other way or any other module, where we can do quota management effectively in linux. Thanks in advance. -- Regards, Arunsundar. ^ permalink raw reply [flat|nested] 2+ messages in thread
* AW: Doubt in linux quota management 2016-03-28 7:34 Doubt in linux quota management Arunsundar @ 2016-03-29 5:57 ` Stefan Bauer 0 siblings, 0 replies; 2+ messages in thread From: Stefan Bauer @ 2016-03-29 5:57 UTC (permalink / raw) To: lartc [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset="utf-8-sig", Size: 1046 bytes --] Just my 5 cent: i would use the quota module with iptables. # iptables -A INPUT -p tcp --dport 80 -m quota --quota 52428800 -j ACCEPT # iptables -A INPUT -p tcp --dport 80 -j DROP # iptables --list Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:http <dpt:http> quota: 52428800 bytes DROP tcp -- anywhere anywhere tcp dpt:http <dpt:http> Source: http://www.netfilter.org/documentation/HOWTO/de/netfilter-extensions-HOWTO-3.html Additonally i would monitor the rules with some monitoring systems like zabbix. You can trigger a script with zabbix if a special event occurs. Furthermore you could also just monitor the counters in iptables with a plain iptables rule without any quota support. Stefan -- To unsubscribe from this list: send the line "unsubscribe lartc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-29 5:57 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-03-28 7:34 Doubt in linux quota management Arunsundar 2016-03-29 5:57 ` AW: " Stefan Bauer
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.