Using protocol "all" causes a failure, with an error of "ValueError: invalid protocol all".
The problem is that in iptc/ip4tc.py the value of socket.IPPROTO_IP is 0, so the setting of protocols in that file of 0 to "all" is overwritten by socket.IPPROTO_IP and the value all will not match the checks in set_protocol.
This in iptc/ip4tc.py:
protocols = {0: "all",
socket.IPPROTO_AH: "ah",
...
socket.IPPROTO_IP: "ip",
...
}
Using protocol "all" causes a failure, with an error of "ValueError: invalid protocol all".
The problem is that in iptc/ip4tc.py the value of
socket.IPPROTO_IPis 0, so the setting ofprotocolsin that file of 0 to "all" is overwritten bysocket.IPPROTO_IPand the valueallwill not match the checks inset_protocol.This in iptc/ip4tc.py: