Re: [nft PATCH v2] src: add redirect support

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

 



On 4 November 2014 15:44, Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote:
> On Tue, Nov 04, 2014 at 02:56:58PM +0100, Arturo Borrero Gonzalez wrote:
>> On 4 November 2014 14:37, Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote:
>> >
>> > I think this needs to be:
>> >
>> > % nft add rule nat prerouting redirect [port] [nat_flags]
>> >
>>
>> The port and nat_flags arguments are mutually exclusives. That's why I
>> used the [port|nat_flags] syntax.
>
> iptables allows this:
>
> -j REDIRECT --to-ports 8000-8010 --random

Then, should I change the behaviour of the nft redirect parser?
The code in my patch doesn't allow that.

I think it makes no sense: "redirect to this port; no sorry, redirect
to a random one."

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




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux