From: "Kevin P. Fleming" <kpfleming@starnetworks.us>
To: netfilter@lists.netfilter.org
Subject: Re: Bizarre rule requirement
Date: Fri, 31 Dec 2004 13:05:48 -0700 [thread overview]
Message-ID: <41D5B11C.9060303@starnetworks.us> (raw)
In-Reply-To: <20041231195406.GA7578@bender.817west.com>
Jason Opperisano wrote:
> here's a thought: fix your fscking application.
A working SIP ALG would be the fix for my fscking application... but so
far there isn't one available. What's really happening here is that the
far end of the "connection" is being moved to a different IP and port;
the local end is notified of that before it happens, but conntrack has
no idea it is occurring.
> # DNAT all UDP ports to 10.1.1.2 port 4000
> iptables -t nat -A PREROUTING -i $EXT_IF -p udp \
> -j DNAT --to-destination 10.1.1.2:4000
>
> # accept all udp port 4000 packets to 10.1.1.2
> iptables -A FORWARD -i $EXT_IF -p udp -d 10.1.1.2 --dport 4000 \
> -j ACCEPT
Even that won't quite do it; I don't want to accept all destination UDP
ports to DNAT to the inside device. I want to accept all _source_ UDP
ports (from any IP address) as long as they are addressed to the
randomly-assigned outbound UDP port that my inside device got when it
sent out the first packet. Yeah, I know, it's screwy and funky.
If I could do it, though, it would allow me to redirect traffic around
with aplomb, without having to wait for (or try to implement) a SIP ALG.
next prev parent reply other threads:[~2004-12-31 20:05 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 [this message]
2004-12-31 20:40 ` Jason Opperisano
2004-12-31 22:43 ` Kevin P. Fleming
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=41D5B11C.9060303@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.