]> git.ipfire.org Git - thirdparty/nftables.git/commit
doc: nft.8: Minor NAT STATEMENTS section review master
authorPhil Sutter <phil@nwl.cc>
Thu, 31 Jul 2025 10:40:11 +0000 (12:40 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 1 Aug 2025 11:49:08 +0000 (13:49 +0200)
commit9e1cbf667da2b9c30b41ff887de212b2c38b2eb7
tree379080f7a3c57616d617cc8d3484cc25bbd5bac5
parenta6717ae094db29d1f4607107a2be0fa8042f7fe6
doc: nft.8: Minor NAT STATEMENTS section review

Synopsis insinuates an IP address argument is mandatory in snat/dnat
statements although specifying ports alone is perfectly fine. Adjust it
accordingly and add a paragraph briefly describing the behaviour.

While at it, update the redirect statement description with more
relevant examples, the current one is wrong: To *only* alter the
destination port, dnat statement must be used, not redirect.

Fixes: 6908a677ba04c ("nft.8: Enhance NAT documentation")
Signed-off-by: Phil Sutter <phil@nwl.cc>
doc/statements.txt