Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Joel Newkirk <netfilter@newkirk.us>
To: "Ing. CIP Alejandro Celi  Mariategui" <alex@linux.org.pe>,
	netfilter@lists.netfilter.org
Subject: Re: IPLIMIT Patch UDP
Date: Fri, 21 Feb 2003 03:22:31 -0500	[thread overview]
Message-ID: <200302210322.31461.netfilter@newkirk.us> (raw)
In-Reply-To: <1045785009.1014.74.camel@alex.pcprices.com.pe>

On Thursday 20 February 2003 06:50 pm, "Ing. CIP Alejandro Celi " 
Mariategui wrote:
> (Sorry, but my english is very bad)
>
> Hi,
>
> I compile with p-o-m the server kernel with IPLIMIT Patch by Gerd
> Knorr <kraxel@bytesex.org>
>
> It work fine, i can limit ex: max 10 TCP connections on the server,
> but i want to limit the UDP connections to 10 (max).
>
> How I can do it?
>
> Alex

The IPLIMIT patch is limited to only work with TCP.  You'd likely need to 
write your own changes to the kernel.  At a VERY quick glance, this:

+	/* refuse anything but tcp */
+	if (ip->proto != IPPROTO_TCP)
+		return 0;

in the IPLIMIT patch (in iplimit.c) MIGHT provide the solution if it 
accomodated IPPROTO_UPD as well as, or instead of, IPPROTO_TCP.

j



  parent reply	other threads:[~2003-02-21  8:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-30 20:48 Looking for Log Analyzer Susan Sagan
2003-02-19 16:26 ` Hervé Eychenne
2003-02-20 23:50   ` IPLIMIT Patch UDP Ing. CIP Alejandro Celi  Mariategui
2003-02-21  8:12     ` Jan Du Caju
2003-02-21  8:22     ` Joel Newkirk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-21 21:41 Jan Du Caju
2003-02-24 20:41 ` Ing. CIP Alejandro Celi  Mariategui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200302210322.31461.netfilter@newkirk.us \
    --to=netfilter@newkirk.us \
    --cc=alex@linux.org.pe \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox