Re: Problem with NAT rule

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

 



I think you should use IPROUTE2 instead of IPTABLES.


----- Original Message -----
From: "Pete Kay" <petedao@xxxxxxxxx>
To: "Jan Engelhardt" <jengelh@xxxxxxxxxx>
Cc: netfilter@xxxxxxxxxxxxxxx
Sent: 2010年 7 月 24日, 星期六 下午 10:09:46 GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi
Subject: Re: Problem with NAT rule

Hi Jan,

Sorry I am new to iptables setup.  Could you give me some insight as
to how I can configure iptables to achieve the packet forwarding
function?

thanks,
P

On Sat, Jul 24, 2010 at 9:51 PM, Jan Engelhardt <jengelh@xxxxxxxxxx> wrote:
> On Saturday 2010-07-24 15:41, Pete Kay wrote:
>
>>Hi,
>>
>>I would like to setup my iptable rules to forward udp packet from one
>>device to another:
>>
>>192.168.1.100:16385  <---------> 192.168.1.114:29848 :: 192.168.1.200
>>:29850  <----------> 192.168.1.300:10112
>>
>>What I want to do is forward all packets from 192.168.1.100:16385 to
>>192.168.1.300:10112 and all packets from 192.168.1.300:10112 to
>>192.168.1.100:16385
>>
>>Here is my iptables rule:
>
>
> Routing does forwarding; nf_nat does NAT, those are two separate things.
>
>
--
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


--
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