All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] htb/iptables for ISP
@ 2006-10-25  9:24 plugthebox.net /dev/null
  0 siblings, 0 replies; 2+ messages in thread
From: plugthebox.net /dev/null @ 2006-10-25  9:24 UTC (permalink / raw)
  To: lartc

Hello,
I'm working on a customized Linux firewall/router for a small/medium ISP
(1200 users) we have almost 4 ranges of internal IPs and i want to limit
each IP to a certain speed.

The problem is that i'm storing all info about the user including IP and
bandwidth rates on a MySQL server, then dump all the htb/sfq lines on a
file (which takes 3 minutes) and then i run these files. This process
kills my machine for 3-4 minutes until dumping all htb/sqf/iptables into
files and running these files (remember that i almost have 1200 IPs, and
each IP has 6 HTB+SFQ line with 2 iptables)

Is there another method more efficient than re-running my files every
time i add/edit/del a user?

Sincerely,







_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] htb/iptables for ISP
@ 2006-11-04 10:00 Peter Surda
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Surda @ 2006-11-04 10:00 UTC (permalink / raw)
  To: lartc

plugthebox.net /dev/null wrote:
> Hello,
hi

> This process
> kills my machine for 3-4 minutes until dumping all htb/sqf/iptables into
> files and running these files (remember that i almost have 1200 IPs, and
> each IP has 6 HTB+SFQ line with 2 iptables)
both iptables and tc have a batch mode, and both support changing 
instead of deleting/creating.

Yours sincerely,
Peter

-- 
http://www.shurdix.org - Linux distribution for routers and firewalls
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-04 10:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-04 10:00 [LARTC] htb/iptables for ISP Peter Surda
  -- strict thread matches above, loose matches on Subject: below --
2006-10-25  9:24 plugthebox.net /dev/null

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.