{"action":"opened","issue":{"url":"https://api.github.com/repos/quattor/configuration-modules-core/issues/575","labels_url":"https://api.github.com/repos/quattor/configuration-modules-core/issues/575/labels{/name}","comments_url":"https://api.github.com/repos/quattor/configuration-modules-core/issues/575/comments","events_url":"https://api.github.com/repos/quattor/configuration-modules-core/issues/575/events","html_url":"https://github.com/quattor/configuration-modules-core/issues/575","id":105636560,"number":575,"title":"ncm-iptables: Does not generate correct iptables line for dst_ports ","user":{"login":"drossy","id":923739,"avatar_url":"https://avatars.githubusercontent.com/u/923739?v=3","gravatar_id":"","url":"https://api.github.com/users/drossy","html_url":"https://github.com/drossy","followers_url":"https://api.github.com/users/drossy/followers","following_url":"https://api.github.com/users/drossy/following{/other_user}","gists_url":"https://api.github.com/users/drossy/gists{/gist_id}","starred_url":"https://api.github.com/users/drossy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drossy/subscriptions","organizations_url":"https://api.github.com/users/drossy/orgs","repos_url":"https://api.github.com/users/drossy/repos","events_url":"https://api.github.com/users/drossy/events{/privacy}","received_events_url":"https://api.github.com/users/drossy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-09T16:42:48Z","updated_at":"2015-09-09T16:42:48Z","closed_at":null,"body":"I was trying to use the dst_ports option in ncm_iptables to cut down the number of rules I'd need, but it doesn't generate a valid iptables line.\r\n\r\n    '/software/components/iptables/filter/rules' = {\r\n        append(\r\n            dict(\r\n            'command', '-A',\r\n            'chain', 'INPUT',\r\n            'protocol', 'tcp',\r\n            'match', 'tcp',\r\n            'dst_ports', '6883,6884,6885,6886',\r\n            'target', 'ACCEPT',\r\n        ))\r\n    };\r\n\r\ngenerates a line like\r\n\r\n    -A INPUT  -p tcp --match tcp --dports 6883,6884,6885,6886 -j ACCEPT\r\n\r\nbut to work it needs to be \r\n\r\n    -A INPUT  -p tcp --match tcp -m multiport --dports 6883,6884,6885,6886 -j ACCEPT\r\n\r\n\r\n"}}