• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1iptables-translate -t mangle -A OUTPUT -j MARK --set-mark 0
2nft add rule ip mangle OUTPUT counter meta mark set 0x0
3
4iptables-translate -t mangle -A OUTPUT -j MARK --set-mark 64
5nft add rule ip mangle OUTPUT counter meta mark set 0x40
6
7iptables-translate -t mangle -A OUTPUT -j MARK --set-xmark 0x40/0x32
8nft add rule ip mangle OUTPUT counter meta mark set mark and 0xffffffcd xor 0x40
9
10iptables-translate -t mangle -A OUTPUT -j MARK --or-mark 64
11nft add rule ip mangle OUTPUT counter meta mark set mark or 0x40
12
13iptables-translate -t mangle -A OUTPUT -j MARK --and-mark 64
14nft add rule ip mangle OUTPUT counter meta mark set mark and 0x40
15
16iptables-translate -t mangle -A OUTPUT -j MARK --xor-mark 64
17nft add rule ip mangle OUTPUT counter meta mark set mark xor 0x40
18
19iptables-translate -t mangle -A PREROUTING -j MARK --set-mark 0x64
20nft add rule ip mangle PREROUTING counter meta mark set 0x64
21
22iptables-translate -t mangle -A PREROUTING -j MARK --and-mark 0x64
23nft add rule ip mangle PREROUTING counter meta mark set mark and 0x64
24
25iptables-translate -t mangle -A PREROUTING -j MARK --or-mark 0x64
26nft add rule ip mangle PREROUTING counter meta mark set mark or 0x64
27