Re: nftables DNAT change destport

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

 



On Sun, Nov 15, 2015 at 04:16:06PM +0530, Pankaj Yadav wrote:
> I am trying to make a DNAT port map using nftables
> 
> flush table ip nat
> table ip nat {
>         chain prerouting {
>                 type nat hook prerouting priority 0; policy accept;
>                 dnat tcp dport map { 10737 : 62.210.105.235:8080,
> 10738 : 62.210.105.257:8081 }
>         }
> 
>         chain postrouting {
>                 type nat hook postrouting priority 0; policy accept;
>                 masquerade
>         }
> }
> 
> but this ruleset produces error: Error: syntax error, unexpected
> colon, expecting comma or '}'
> 
> What should be the correct syntax if i want to change destport also
> corresponding to IPTABLE's (-j DNAT --to 62.210.105.235:8080 ) ?
> I have tried several combinations but none works and Google also didnt
> help much.Please help me .

Have a look at:

http://wiki.nftables.org/wiki-nftables/index.php/Multiple_NATs_using_nftables_maps
--
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