payload: {"action":"created","issue":{"url":"https://api.github.com/repos/ldx/python-iptables/issues/261","repository_url":"https://api.github.com/repos/ldx/python-iptables","labels_url":"https://api.github.com/repos/ldx/python-iptables/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/ldx/python-iptables/issues/261/comments","events_url":"https://api.github.com/repos/ldx/python-iptables/issues/261/events","html_url":"https://github.com/ldx/python-iptables/issues/261","id":387436568,"node_id":"MDU6SXNzdWUzODc0MzY1Njg=","number":261,"title":"Can't delete rule with IPSec policy match","user":{"login":"TearsDontFalls","id":1379201,"node_id":"MDQ6VXNlcjEzNzkyMDE=","avatar_url":"https://avatars3.githubusercontent.com/u/1379201?v=4","gravatar_id":"","url":"https://api.github.com/users/TearsDontFalls","html_url":"https://github.com/TearsDontFalls","followers_url":"https://api.github.com/users/TearsDontFalls/followers","following_url":"https://api.github.com/users/TearsDontFalls/following{/other_user}","gists_url":"https://api.github.com/users/TearsDontFalls/gists{/gist_id}","starred_url":"https://api.github.com/users/TearsDontFalls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TearsDontFalls/subscriptions","organizations_url":"https://api.github.com/users/TearsDontFalls/orgs","repos_url":"https://api.github.com/users/TearsDontFalls/repos","events_url":"https://api.github.com/users/TearsDontFalls/events{/privacy}","received_events_url":"https://api.github.com/users/TearsDontFalls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-04T19:08:56Z","updated_at":"2019-05-18T20:00:39Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nloving the lib, but I noticed one bug: When using IPsec/IKEv2 with strongswan, you should create an iptables rule for forwarding/NATing the traffic like this ( https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-16-04#step-6-%E2%80%94-configuring-the-firewall-&-kernel-ip-forwarding )\r\n\r\n`iptables -A FORWARD -s 10.8.6.0/24 -p esp -m policy --dir in --pol ipsec -j ACCEPT`\r\n\r\nCreating this rule with the lib works just fine, but it cannot be deleted once inserted. Tried e.g. with this code (the indexes are correct ofc for FORWARD chain/rule above)\r\n```\r\nimport iptc\r\nfilt = iptc.Table(\"filter\")\r\nfilt.refresh()\r\nfilt.chains[1].delete_rule(filt.chains[1].rules[0])\r\n\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python3.5/dist-packages/iptc/ip4tc.py\", line 1489, in delete_rule\r\n    self.table.delete_entry(self.name, rbuf, rule.mask)\r\n  File \"/usr/local/lib/python3.5/dist-packages/iptc/ip4tc.py\", line 1519, in new\r\n    ret = fn(*args)\r\n  File \"/usr/local/lib/python3.5/dist-packages/iptc/ip4tc.py\", line 1776, in delete_entry\r\n    (chain, self.strerror()))\r\niptc.ip4tc.IPTCError: can't delete entry from chain FORWARD: b'Bad rule (does a matching rule exist in that chain?)'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ldx/python-iptables/issues/comments/493703328","html_url":"https://github.com/ldx/python-iptables/issues/261#issuecomment-493703328","issue_url":"https://api.github.com/repos/ldx/python-iptables/issues/261","id":493703328,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MzcwMzMyOA==","user":{"login":"jllorente","id":1442953,"node_id":"MDQ6VXNlcjE0NDI5NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1442953?v=4","gravatar_id":"","url":"https://api.github.com/users/jllorente","html_url":"https://github.com/jllorente","followers_url":"https://api.github.com/users/jllorente/followers","following_url":"https://api.github.com/users/jllorente/following{/other_user}","gists_url":"https://api.github.com/users/jllorente/gists{/gist_id}","starred_url":"https://api.github.com/users/jllorente/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jllorente/subscriptions","organizations_url":"https://api.github.com/users/jllorente/orgs","repos_url":"https://api.github.com/users/jllorente/repos","events_url":"https://api.github.com/users/jllorente/events{/privacy}","received_events_url":"https://api.github.com/users/jllorente/received_events","type":"User","site_admin":false},"created_at":"2019-05-18T20:00:39Z","updated_at":"2019-05-18T20:00:39Z","author_association":"COLLABORATOR","body":"I can't reproduce the issue either.\r\n@TearsDontFalls what version were you using?"}}
other: {"actor":{"display_login":"jllorente"}}