* [LARTC] limit number of TCP connections.
@ 2004-10-25 6:05 Cristiano Soares
2004-10-25 10:52 ` Rio Martin.
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Cristiano Soares @ 2004-10-25 6:05 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 502 bytes --]
Hi all. I have a simple question. Is that a way to limit the number os TCP or UDP connection of a single HOST in my network?
For exemple:
I have a host with IP 192.168.1.202 and he is using edonkey, Kazaa, and Bittorrent at the same time, and he also is infected by a virus that opens more than 500 TCP ports at the same time. So, i want to limit that host to be able to open no more then 30 TCP connections at once, so he wouldnt hurt the other users.
Thanks in advance,
Cristiano Soares
[-- Attachment #2: Type: text/html, Size: 1154 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] limit number of TCP connections.
2004-10-25 6:05 [LARTC] limit number of TCP connections Cristiano Soares
@ 2004-10-25 10:52 ` Rio Martin.
2004-10-25 15:12 ` George Alexandru Dragoi
2004-10-26 5:39 ` Rio Martin.
2 siblings, 0 replies; 4+ messages in thread
From: Rio Martin. @ 2004-10-25 10:52 UTC (permalink / raw)
To: lartc
On 25 October 2004 am 06:05, Cristiano Soares wrote:
> Hi all. I have a simple question. Is that a way to limit the number os TCP
> or UDP connection of a single HOST in my network? For exemple:
> I have a host with IP 192.168.1.202 and he is using edonkey, Kazaa, and
> Bittorrent at the same time, and he also is infected by a virus that opens
> more than 500 TCP ports at the same time. So, i want to limit that host to
> be able to open no more then 30 TCP connections at once, so he wouldnt hurt
> the other users.
> Thanks in advance,
> Cristiano Soares
Try connlimit patches from Iptables POM
www.netfilter.org
- Rio.Martin -
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] limit number of TCP connections.
2004-10-25 6:05 [LARTC] limit number of TCP connections Cristiano Soares
2004-10-25 10:52 ` Rio Martin.
@ 2004-10-25 15:12 ` George Alexandru Dragoi
2004-10-26 5:39 ` Rio Martin.
2 siblings, 0 replies; 4+ messages in thread
From: George Alexandru Dragoi @ 2004-10-25 15:12 UTC (permalink / raw)
To: lartc
iptables -I FORWARD -s 192.168.1.202 -p tcp --syn -m state --state NEW
-m limit --limit 50/s --limit-burst 100 -j ACCEPT
iptables -I FORWARD 2 -s 192.168.1.202 -p tcp --syn -m state --state NEW -j DROP
with udps things are a bit simmilar, except you dont need the --syn
On Mon, 25 Oct 2004 17:45:14 +0000, Rio Martin. <rio@martin.mu> wrote:
> On 25 October 2004 am 06:05, Cristiano Soares wrote:
>
>
> > Hi all. I have a simple question. Is that a way to limit the number os TCP
> > or UDP connection of a single HOST in my network? For exemple:
> > I have a host with IP 192.168.1.202 and he is using edonkey, Kazaa, and
> > Bittorrent at the same time, and he also is infected by a virus that opens
> > more than 500 TCP ports at the same time. So, i want to limit that host to
> > be able to open no more then 30 TCP connections at once, so he wouldnt hurt
> > the other users.
> > Thanks in advance,
> > Cristiano Soares
>
>
> Try connlimit patches from Iptables POM
> www.netfilter.org
>
> - Rio.Martin -
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
--
Bla bla
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] limit number of TCP connections.
2004-10-25 6:05 [LARTC] limit number of TCP connections Cristiano Soares
2004-10-25 10:52 ` Rio Martin.
2004-10-25 15:12 ` George Alexandru Dragoi
@ 2004-10-26 5:39 ` Rio Martin.
2 siblings, 0 replies; 4+ messages in thread
From: Rio Martin. @ 2004-10-26 5:39 UTC (permalink / raw)
To: lartc
Hello George,
Thanks for adding some more infos related to this question.
- Rio.Martin -
On Monday 25 October 2004 15:12, George Alexandru Dragoi wrote:
> iptables -I FORWARD -s 192.168.1.202 -p tcp --syn -m state --state NEW
> -m limit --limit 50/s --limit-burst 100 -j ACCEPT
> iptables -I FORWARD 2 -s 192.168.1.202 -p tcp --syn -m state --state NEW -j
> DROP
>
> with udps things are a bit simmilar, except you dont need the --syn
>
> On Mon, 25 Oct 2004 17:45:14 +0000, Rio Martin. <rio@martin.mu> wrote:
> > On 25 October 2004 am 06:05, Cristiano Soares wrote:
> > > Hi all. I have a simple question. Is that a way to limit the number os
> > > TCP or UDP connection of a single HOST in my network? For exemple: I
> > > have a host with IP 192.168.1.202 and he is using edonkey, Kazaa, and
> > > Bittorrent at the same time, and he also is infected by a virus that
> > > opens more than 500 TCP ports at the same time. So, i want to limit
> > > that host to be able to open no more then 30 TCP connections at once,
> > > so he wouldnt hurt the other users.
> > > Thanks in advance,
> > > Cristiano Soares
> >
> > Try connlimit patches from Iptables POM
> > www.netfilter.org
> >
> > - Rio.Martin -
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-26 5:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25 6:05 [LARTC] limit number of TCP connections Cristiano Soares
2004-10-25 10:52 ` Rio Martin.
2004-10-25 15:12 ` George Alexandru Dragoi
2004-10-26 5:39 ` Rio Martin.
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.