0

I have two nft rules:

iifname $lan ip protocol tcp ip saddr $lan_addresses tcp dport {3128, 22} accept
iifname $vpn ip protocol tcp ip saddr $vpn_addresses tcp dport {3128, 22} accept

I was wondering if I could fuse them together using map concatenations. Something like this (following does not work):

iifname . ip protocol tcp tcp dport {3128, 22} ip saddr vmap {$vpn . $vpn_addresses : accept, $lan . $lan_addresses : accept}                

Is it possible?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.