• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1iptables-translate -A OUTPUT -m statistic --mode nth --every 10 --packet 1
2nft add rule ip filter OUTPUT numgen inc mod 10 1 counter
3
4iptables-translate -A OUTPUT -m statistic --mode nth ! --every 10 --packet 5
5nft add rule ip filter OUTPUT numgen inc mod 10 != 5 counter
6
7iptables-translate -A OUTPUT -m statistic --mode random --probability 0.1
8nft # -A OUTPUT -m statistic --mode random --probability 0.1
9