Add iptables to ubuntu docker

Run docker with capabilities

docker run --cap-add=NET_ADMIN -it ubuntu bash

install some packages if not already in the container:

apt install iptables kmod nftables

iptables -A OUTPUT -m statistic --mode nth --every 10 --packet 0 -j DROP

Everything about developing code, running CI stacks, whatever can be programmed at all.

  • 0 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 month
  • 1 subscriber
  • 28 Post
  • 5 Comment
  • Modlog