{"id":4068,"date":"2018-12-30T19:09:34","date_gmt":"2018-12-30T15:09:34","guid":{"rendered":"https:\/\/nayarweb.com\/blog\/?p=4068"},"modified":"2018-12-30T19:09:34","modified_gmt":"2018-12-30T15:09:34","slug":"basic-security-with-asterisk-freeswitch","status":"publish","type":"post","link":"https:\/\/nayarweb.com\/blog\/2018\/basic-security-with-asterisk-freeswitch\/","title":{"rendered":"Basic Security with Asterisk\/Freeswitch"},"content":{"rendered":"<p>This post is not exhaustive. These are the minimum security measures.<\/p>\n<ol>\n<li>Block all access to port 5060 and 5080\n<ol>\n<li>\/sbin\/iptables -A INPUT -p udp &#8211;destination-port 5080 -j DROP<\/li>\n<li>\/sbin\/iptables -A INPUT -p udp &#8211;destination-port 5080 -j DROP<\/li>\n<\/ol>\n<\/li>\n<li>Allow only specific IPs to connect\n<ol>\n<li>\/sbin\/iptables -I INPUT -p udp -s {IP} &#8211;destination-port 5060 -j ACCEPT<\/li>\n<li>\/sbin\/iptables -I INPUT -p udp -s {IP} &#8211;destination-port 5080 -j ACCEPT<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This post is not exhaustive. These are the minimum security measures. Block all access to port 5060 and 5080 \/sbin\/iptables -A INPUT -p udp &#8211;destination-port 5080 -j DROP \/sbin\/iptables -A INPUT -p udp &#8211;destination-port 5080 -j DROP Allow only specific IPs to connect \/sbin\/iptables -I INPUT -p udp -s {IP} &#8211;destination-port 5060 -j ACCEPT \/sbin\/iptables &hellip; <a href=\"https:\/\/nayarweb.com\/blog\/2018\/basic-security-with-asterisk-freeswitch\/\" class=\"continue-reading\">Continue reading <span class=\"screen-reader-text\">Basic Security with Asterisk\/Freeswitch<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4068","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/4068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/comments?post=4068"}],"version-history":[{"count":2,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/4068\/revisions"}],"predecessor-version":[{"id":4070,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/4068\/revisions\/4070"}],"wp:attachment":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/media?parent=4068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/categories?post=4068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/tags?post=4068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}