{"action":"created","issue":{"url":"https://api.github.com/repos/fail2ban/fail2ban/issues/798","labels_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/798/labels{/name}","comments_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/798/comments","events_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/798/events","html_url":"https://github.com/fail2ban/fail2ban/issues/798","id":41769419,"number":798,"title":"Enabling [asterisk] in 0.8.14 only creates fail2ban-asterisk-udp chain, not fail2ban-asterisk-tcp","user":{"login":"gebailey","id":6430187,"avatar_url":"https://avatars.githubusercontent.com/u/6430187?v=3","gravatar_id":"","url":"https://api.github.com/users/gebailey","html_url":"https://github.com/gebailey","followers_url":"https://api.github.com/users/gebailey/followers","following_url":"https://api.github.com/users/gebailey/following{/other_user}","gists_url":"https://api.github.com/users/gebailey/gists{/gist_id}","starred_url":"https://api.github.com/users/gebailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gebailey/subscriptions","organizations_url":"https://api.github.com/users/gebailey/orgs","repos_url":"https://api.github.com/users/gebailey/repos","events_url":"https://api.github.com/users/gebailey/events{/privacy}","received_events_url":"https://api.github.com/users/gebailey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-09-03T00:02:23Z","updated_at":"2015-04-29T14:37:38Z","closed_at":null,"body":"Tested with both EPEL (CentOS 6) build fail2ban-0.8.13-2.el6.noarch.rpm and with custom build 0.8.14 using latest 0.8 release:\r\n\r\nIn /etc/fail2ban/jail.local, I enable the [asterisk] jail:\r\n\r\n```\r\n[asterisk]\r\nenabled = true\r\n```\r\n\r\nMy understanding is that I should be able to do this judging by the comment in /etc/fail2ban/jail.conf:\r\n\r\n```\r\n#  Historical support (before https://github.com/fail2ban/fail2ban/issues/37 was fixed )\r\n#  use [asterisk] for new jails\r\n[asterisk-tcp]\r\n\r\nenabled  = false\r\nfilter   = asterisk\r\naction   = iptables-multiport[name=asterisk-tcp, port=\"5060,5061\", protocol=tcp]\r\n           sendmail-whois[name=Asterisk, dest=you@example.com, sender=fail2ban@example.com]\r\nlogpath  = /var/log/asterisk/messages\r\nmaxretry = 10\r\n\r\n\r\n#  Historical support (before https://github.com/fail2ban/fail2ban/issues/37 was fixed )\r\n#  use [asterisk] for new jails\r\n[asterisk-udp]\r\n\r\nenabled  = false\r\nfilter   = asterisk\r\naction   = iptables-multiport[name=asterisk-udp, port=\"5060,5061\", protocol=udp]\r\n           sendmail-whois[name=Asterisk, dest=you@example.com, sender=fail2ban@example.com]\r\nlogpath  = /var/log/asterisk/messages\r\nmaxretry = 10\r\n```\r\n\r\nBut after starting fail2ban, I only see one asterisk iptables rule added:\r\n\r\n```\r\n# iptables -L -v -n\r\nChain INPUT (policy ACCEPT 56 packets, 6730 bytes)\r\n pkts bytes target     prot opt in     out     source               destination         \r\n    0     0 fail2ban-asterisk-udp  udp  --  *      *       0.0.0.0/0            0.0.0.0/0           multiport dports 5060,5061 \r\n    9   660 fail2ban-SSH  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp dpt:22 \r\n\r\nChain FORWARD (policy ACCEPT 0 packets, 0 bytes)\r\n pkts bytes target     prot opt in     out     source               destination         \r\n\r\nChain OUTPUT (policy ACCEPT 4 packets, 496 bytes)\r\n pkts bytes target     prot opt in     out     source               destination         \r\n\r\nChain fail2ban-SSH (1 references)\r\n pkts bytes target     prot opt in     out     source               destination         \r\n    9   660 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0           \r\n\r\nChain fail2ban-asterisk-udp (1 references)\r\n pkts bytes target     prot opt in     out     source               destination         \r\n    0     0 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0           \r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/fail2ban/fail2ban/issues/comments/97451009","html_url":"https://github.com/fail2ban/fail2ban/issues/798#issuecomment-97451009","issue_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/798","id":97451009,"user":{"login":"lucasalvarez","id":11215281,"avatar_url":"https://avatars.githubusercontent.com/u/11215281?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasalvarez","html_url":"https://github.com/lucasalvarez","followers_url":"https://api.github.com/users/lucasalvarez/followers","following_url":"https://api.github.com/users/lucasalvarez/following{/other_user}","gists_url":"https://api.github.com/users/lucasalvarez/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasalvarez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasalvarez/subscriptions","organizations_url":"https://api.github.com/users/lucasalvarez/orgs","repos_url":"https://api.github.com/users/lucasalvarez/repos","events_url":"https://api.github.com/users/lucasalvarez/events{/privacy}","received_events_url":"https://api.github.com/users/lucasalvarez/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T14:37:38Z","updated_at":"2015-04-29T14:37:38Z","body":"I can't upgrade to 0.9.0, so how can I fix this?"}}