From: Andrew Beverley <andy@andybev.com>
To: Pete Kay <petedao@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: newbie question on netfilter-conntrack
Date: Sun, 20 Jun 2010 12:56:51 +0100 [thread overview]
Message-ID: <1277035011.1476.100.camel@andybev> (raw)
In-Reply-To: <AANLkTil9wrgMngn6vFqKeh-WNKkEmwCXYJx-lGI5RAu5@mail.gmail.com>
Pete,
> I am trying to set up a rule such that any UDP packet coming from a
> specific IP:port will be redirected to another IP:port. Could someone
> please give me an example how this can be done?
You'll need something like:
iptables -t nat -A PREROUTING -p udp --sport 1234 --source 1.2.3.4 \
-j DNAT --to-destination 4.3.2.1:4321
If you do 'man iptables' you will see details of all these options. You
may also find that this simple kernel routing diagram helps:
http://www.docum.org/docum.org/kptd/
> Also, I would like to know if it is possible to monitor the proxying
> of the UDP packet to obtain information such as jitter and packet
> lost. How can I do that?
Not sure about that I'm afraid; maybe somebody else can help.
Andy
next prev parent reply other threads:[~2010-06-20 11:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-20 11:41 newbie question on netfilter-conntrack Pete Kay
2010-06-20 11:56 ` Andrew Beverley [this message]
2010-06-20 12:15 ` Jan Engelhardt
2010-06-21 2:53 ` Pete Kay
2010-06-21 7:49 ` Pete Kay
2010-06-21 9:20 ` Pete Kay
2010-06-21 9:50 ` Pablo Neira Ayuso
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=1277035011.1476.100.camel@andybev \
--to=andy@andybev.com \
--cc=netfilter@vger.kernel.org \
--cc=petedao@gmail.com \
/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.