{"action":"closed","issue":{"url":"https://api.github.com/repos/ldx/python-iptables/issues/196","repository_url":"https://api.github.com/repos/ldx/python-iptables","labels_url":"https://api.github.com/repos/ldx/python-iptables/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/ldx/python-iptables/issues/196/comments","events_url":"https://api.github.com/repos/ldx/python-iptables/issues/196/events","html_url":"https://github.com/ldx/python-iptables/issues/196","id":193515278,"number":196,"title":"Problem when reading and writing goto targets","user":{"login":"jllorente","id":1442953,"avatar_url":"https://avatars.githubusercontent.com/u/1442953?v=3","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},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-05T14:41:45Z","updated_at":"2017-01-03T05:11:27Z","closed_at":"2017-01-03T05:11:27Z","body":"Hi,\r\nI wanted to create a goto target but I couldn't figure out how, so I created the rule directly in iptables first:\r\n\r\n```\r\n# iptables -t nat -A PREROUTING -g test\r\n```\r\n\r\nThen I read it with iptc, but I couldn't see any differences with the normal target jump, so I inserted it again to see what that did. To my surprise, it generates a faulty rule :/ To my  surprise, it adds an output field to the rule and transforms the goto in jump.\r\n\r\n```\r\n-A PREROUTING -g test #inserted manually as mentioned above\r\n-A PREROUTING -o  -j test #inserted as a rule cloned with iptc from above\r\n```\r\n\r\nI'm running Ubuntu 16, if that helps :)"}}
{"actor":{"display_login":"ldx"}}