From: "Kevin P. Fleming" <kpfleming@starnetworks.us>
Cc: netfilter@lists.netfilter.org
Subject: Re: Bizarre rule requirement
Date: Fri, 31 Dec 2004 15:43:57 -0700 [thread overview]
Message-ID: <41D5D62D.5060906@starnetworks.us> (raw)
In-Reply-To: <20041231204004.GA7810@bender.817west.com>
Jason Opperisano wrote:
> free, seems current, not sure if it meets your requirements:
>
> http://siproxd.sourceforge.net/index.php
It very well could... I've been playing with it, but my ultimate goal
for this is to put the result onto a Linksys WRT54G/GS running the
Sveasoft customized firmware. There are versions of siproxd built for
that box, but I am not yet comfortable that it's reliable enough to
deploy to client sites (siproxd, that is).
> explain to me how the above rules would not successfully forward the UDP
> traffic to your server, because i must be missing something. whether or
> not it's how you would *like to do it* is immaterial.
Well, unless I'm misunderstanding, the rules you posted will not work in
this application because:
1) You are forwarding all inbound UDP traffic to a single device. My
example was simplified; the final application for this technique could
have tens of phones behind the NAT, each needing to work this way.
That's why I phrased my original request the way I did; it was
predicated on learning the outbound port number and other bits related
to a specific "connection" (even though this is UDP) and basing the
inbound rules on those details.
2) You assume that the port number assigned when the phone sends out its
first UDP packet (from port 4000) by the NAT will also be 4000... it
very well may not be, if that port is already in use on the public side
of the NAT for another user. In that case, the FORWARD rule can't work,
because it doesn't know what port number the conntrack code assigned for
this specific connection (and it could be different for the next
connection).
I'll spend some more time working with siproxd to see if it can do what
I need. If not, I suppose it would be possible to create a netfilter
module that watched for the outbound UDP and created a RELATED
connection with the appropriate inbound rule. It wouldn't have to peek
into the packets at all, just use the information already present in the
conntrack structures.
next prev parent reply other threads:[~2004-12-31 22:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-31 19:29 Bizarre rule requirement Kevin P. Fleming
2004-12-31 19:54 ` Jason Opperisano
2004-12-31 20:05 ` Kevin P. Fleming
2004-12-31 20:40 ` Jason Opperisano
2004-12-31 22:43 ` Kevin P. Fleming [this message]
2004-12-31 22:51 ` Jason Opperisano
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=41D5D62D.5060906@starnetworks.us \
--to=kpfleming@starnetworks.us \
--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 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.