{"id":160,"date":"2009-10-03T17:08:13","date_gmt":"2009-10-03T21:08:13","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=160"},"modified":"2013-03-20T08:40:11","modified_gmt":"2013-03-20T12:40:11","slug":"howto-open-port-using-iptables","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/howto-open-port-using-iptables","title":{"rendered":"Howto: Open port using IPtables"},"content":{"rendered":"<p>Howto <strong>open ports using iptables<\/strong>, see the following examples:<\/p>\n<p><strong>Open port 25 (SMTP)<\/strong> for the SOURCE_IP address:<\/p>\n<blockquote><p><span style=\"color: #993300;\"><strong>iptables -A INPUT -p tcp -s SOURCE_IP\u00a0 &#8211;dport 25\u00a0 -j ACCEPT<\/strong><\/span>\n<\/p><\/blockquote>\n<p><strong>Open port 22 (SSH)<\/strong> for the SOURCE_IP address to a specific DESTINATION_IP address<\/p>\n<blockquote><p><strong><span style=\"color: #993300;\">iptables -A INPUT -p tcp -s SOURCE_IP &#8211;dport 22 -d <\/span><span style=\"color: #993300;\">DESTINATION_IP<\/span><\/strong><strong><span style=\"color: #993300;\"> -j ACCEPT<\/span><\/strong><\/p><\/blockquote>\n<p><strong>More to come&#8230;<br \/>\n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Howto open ports using iptables, see the following examples:<br \/>\nOpen port 25 (SMTP) for the SOURCE_IP address:<br \/>\niptables -A INPUT -p tcp -s SOURCE_IP\u00a0 &#8211;dport 25\u00a0 -j ACCEPT<\/p>\n<p>Open port 22 (SSH) for the SOURCE_IP address to a specific DESTINATION_IP address<br \/>\niptables -A INPUT -p tcp -s SOURCE_IP &#8211;dport 22 -d DESTINATION_IP -j ACCEPT<br \/>\nMore to come&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[184,187,186,185],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/160"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":4,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":164,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions\/164"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}