diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-07-03 17:24:05 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-07-07 20:53:11 +0200 |
commit | b0f6a45b25dd1b8e4ab0e3b2dd2a00d918ae29c0 (patch) | |
tree | d2d457d0b8384aee1f7a6d176c21ec9cf8814db6 /tests/shell/testcases/nft-f | |
parent | 1dc9be8445265498a2db534ae254260b6e7dd75b (diff) |
src: add --literal option
Default not to print the service name as we discussed during the NFWS.
# nft list ruleset
table ip x {
chain y {
tcp dport 22
ip saddr 1.1.1.1
}
}
# nft -l list ruleset
table ip x {
chain y {
tcp dport ssh
ip saddr 1.1.1.1
}
}
# nft -ll list ruleset
table ip x {
chain y {
tcp dport 22
ip saddr 1dot1dot1dot1.cloudflare-dns.com
}
}
Then, -ll displays FQDN. just like the (now deprecated) --ip2name (-N)
option.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/nft-f')
-rwxr-xr-x | tests/shell/testcases/nft-f/0008split_tables_0 | 2 | ||||
-rw-r--r-- | tests/shell/testcases/nft-f/dumps/0008split_tables_0.nft | 2 | ||||
-rw-r--r-- | tests/shell/testcases/nft-f/dumps/0009variable_0.nft | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/shell/testcases/nft-f/0008split_tables_0 b/tests/shell/testcases/nft-f/0008split_tables_0 index c4ca717f..2631aed4 100755 --- a/tests/shell/testcases/nft-f/0008split_tables_0 +++ b/tests/shell/testcases/nft-f/0008split_tables_0 @@ -5,7 +5,7 @@ set -e RULESET="table inet filter { chain ssh { type filter hook input priority 0; policy accept; - tcp dport ssh accept; + tcp dport 22 accept; } } diff --git a/tests/shell/testcases/nft-f/dumps/0008split_tables_0.nft b/tests/shell/testcases/nft-f/dumps/0008split_tables_0.nft index 1211411f..1ab6e864 100644 --- a/tests/shell/testcases/nft-f/dumps/0008split_tables_0.nft +++ b/tests/shell/testcases/nft-f/dumps/0008split_tables_0.nft @@ -1,7 +1,7 @@ table inet filter { chain ssh { type filter hook input priority 0; policy accept; - tcp dport ssh accept + tcp dport 22 accept } chain input { diff --git a/tests/shell/testcases/nft-f/dumps/0009variable_0.nft b/tests/shell/testcases/nft-f/dumps/0009variable_0.nft index a793751b..7f59a273 100644 --- a/tests/shell/testcases/nft-f/dumps/0009variable_0.nft +++ b/tests/shell/testcases/nft-f/dumps/0009variable_0.nft @@ -1,7 +1,7 @@ table inet forward { set concat-set-variable { type ipv4_addr . inet_service - elements = { 10.10.10.10 . smtp, - 10.10.10.10 . imap2 } + elements = { 10.10.10.10 . 25, + 10.10.10.10 . 143 } } } |