diff options
author | Florian Westphal <fw@strlen.de> | 2018-04-18 00:09:05 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-04-19 10:18:18 +0200 |
commit | f38ed1e59f8d3b62e322563401cabc6dbac5fca5 (patch) | |
tree | cfeca465d8c624b0c2361e10703796d5e4967138 /extensions/libxt_esp.txlate | |
parent | 71a6e372f82b6c50c14c8034a974f3ad5983314d (diff) |
xt-translate: quote interface names in translated output
it its good practice as interface names can be virtually any
identifier and could clash with nft keywords.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libxt_esp.txlate')
-rw-r--r-- | extensions/libxt_esp.txlate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_esp.txlate b/extensions/libxt_esp.txlate index a67c6f0e..5e2f18fa 100644 --- a/extensions/libxt_esp.txlate +++ b/extensions/libxt_esp.txlate @@ -2,7 +2,7 @@ iptables-translate -A FORWARD -p esp -j ACCEPT nft add rule ip filter FORWARD ip protocol esp counter accept iptables-translate -A INPUT --in-interface wan --protocol esp -j ACCEPT -nft add rule ip filter INPUT iifname wan ip protocol esp counter accept +nft add rule ip filter INPUT iifname "wan" ip protocol esp counter accept iptables-translate -A INPUT -p 50 -m esp --espspi 500 -j DROP nft add rule ip filter INPUT esp spi 500 counter drop |