I am trying to match packets by process name in iptabes. I was trying it with ping and an example I got from: https://www.frozentux.net/iptables-tutorial/iptables-tutorial.html#OWNERMATCH
The commands I entered were:
iptables -N mychain iptables -A OUTPUT -m owner --cmd -owner ping -j mychain
However, I get:
iptables v1.4.21: unknown option "--cmd-owner" Try 'iptables -h' or 'iptables --help' for more information.
When I do so, I can't see the "--cmd-owner" option. Is this because that option is no longer available in iptables v1.4.21? Can anyone tell me how I can math packets per process on my host if this option is no longer available?