RE: How to do NAT for an udp reply packet?

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

 



В Срд, 17/08/2011 в 15:38 -0400, Calin Onofrei пишет:
> I need to change the source port for the udp reply packet.

You can try act_pedit and "tc action" for that. I did not use it, but
looks like it can do exactly what you want without messing with
conntrack

> 
> 
> 
> -----Original Message-----
> From: Jan Engelhardt [mailto:jengelh@xxxxxxxxxx] 
> Sent: August 17, 2011 15:36 PM
> To: Calin Onofrei
> Cc: netfilter@xxxxxxxxxxxxxxx
> Subject: Re: How to do NAT for an udp reply packet?
> 
> On Wednesday 2011-08-17 15:48, Calin Onofrei wrote:
> 
> >Hi netfilter list,
> >I want to do NAT with specific rules for an udp reply packet.
> 
> nf_nat works on entire NFCT connections only.
> It eludes me why you would want to merely change one reply packet, but 
> you would need xt_RAW[S|D]NAT for that.
> --
> 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