diff options
author | Gargi Sharma <gs051095@gmail.com> | 2017-03-29 00:20:18 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-04-07 00:46:40 +0200 |
commit | b669e18489709d5fb96011329937362fd5aedec5 (patch) | |
tree | 0affe781462975551ef9256f2e73d02888a9f5d0 /extensions/libxt_comment.txlate | |
parent | b2a844760ec534e75bcc2dc513275cf0fed11468 (diff) |
extensions: libxt_TOS: Add translation to nft
Add translation for TOS to nftables. TOS is deprecated
ans DSCP is ued in place of it. The first 6 bits of
TOS specify the DSCP value.
Examples:
$ iptables-translate -t mangle -A PREROUTING -p TCP --dport 22 -j TOS --set-tos 0x10
nft add rule ip mangle PREROUTING tcp dport 22 counter ip6 dscp set 0x04
Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libxt_comment.txlate')
0 files changed, 0 insertions, 0 deletions