Nat redirect using map

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

 



Hi,

I have a map like this

map redirect_tcp {
                type inet_service : inet_service
                flags interval
                elements = { 12345 : 12345, 36025 : smtp }
        }

and want to use nat redirect but it fail with unexpecting to, expecting EOF or semicolon. Here is the rule

nft add rule ip nat prerouting iif eth0 tcp dport map @redirect_tcp redirect to @redirect_tcp

How can I get this working ?

Other: when using dnat for forwarding, should I take care of forward rules ?

Example for this kind of rule from wiki:

nft add rule nat prerouting iif eth0 tcp dport { 80, 443 } dnat 192.168.1.120

Thanks for any hint
--
TOOTAi Networks



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux