Re: newbie question on netfilter-conntrack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux