{"id":49,"date":"2020-08-11T01:01:09","date_gmt":"2020-08-11T01:01:09","guid":{"rendered":"https:\/\/truxgoservers.com\/blog\/?p=49"},"modified":"2020-08-11T18:06:00","modified_gmt":"2020-08-11T18:06:00","slug":"ports-in-linux-how-can-you-open-them","status":"publish","type":"post","link":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/","title":{"rendered":"Ports in Linux, How can you open them"},"content":{"rendered":"\n<p>Many people asked us, how to open ports in Linux?, is it difficult?<\/p>\n\n\n\n<p>In this post we will help you to open the ports without any problems and some tricks for this.<\/p>\n\n\n\n<p>First is the command to&nbsp;open all port&#8217;s<\/p>\n\n\n\n<p>iptables -I ENTRY -j ACCEPT<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/iStock-507473994-1024x683-1.jpg\" alt=\"\" class=\"wp-image-71\" width=\"284\" height=\"189\" srcset=\"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/iStock-507473994-1024x683-1.jpg 1024w, https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/iStock-507473994-1024x683-1-300x200.jpg 300w, https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/iStock-507473994-1024x683-1-768x512.jpg 768w\" sizes=\"auto, (max-width: 284px) 100vw, 284px\" \/><\/figure><\/div>\n\n\n\n<p>Now we will tell you how to&nbsp;open a port or several at the same time with different formats.<\/p>\n\n\n\n<p>\u25b8Only 1 TCP port<\/p>\n\n\n\n<p>sudo iptables -I INPUT -p tcp &#8211;dport 8765 -j ACCEPT<\/p>\n\n\n\n<p>\u25b8Only 1 UDP port<\/p>\n\n\n\n<p><em>s<\/em>udo iptables -I INPUT -p UDP &#8211;dport 8765 -j ACCEPT<\/p>\n\n\n\n<p>Now how to&nbsp;open several port&#8217;s at the same time.<\/p>\n\n\n\n<p>\u25b8TCP<\/p>\n\n\n\n<p>sudo iptables -I INPUT -p UDP &#8211;dport 7000: 8000 -j ACCEPT<\/p>\n\n\n\n<p>\u25b8UDP<\/p>\n\n\n\n<p>sudo iptables -I INPUT -p UDP &#8211;dport 7000: 8000 -j ACCEPT<\/p>\n\n\n\n<p>This way the ports from 7000 to 8000 are open.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>What is a port and more info: <a href=\"https:\/\/www.journaldev.com\/34113\/opening-a-port-on-linux\">https:\/\/www.journaldev.com\/34113\/opening-a-port-on-linux<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many people asked us, how to open ports in Linux?, is it difficult? In this post we will help you to open the ports without any problems and some tricks for this. First is the command to&nbsp;open all port&#8217;s iptables -I ENTRY -j ACCEPT Now we will tell you how to&nbsp;open a port or several [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":50,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[27,26],"class_list":["post-49","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-tutorial","tag-linux","tag-ports"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ports in Linux, How can you open them - Truxgo Server Blog<\/title>\n<meta name=\"description\" content=\"Ports in linux and how to open it, All the information you need, commands that you will use and more information about those Ports.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ports in Linux, How can you open them - Truxgo Server Blog\" \/>\n<meta property=\"og:description\" content=\"Ports in linux and how to open it, All the information you need, commands that you will use and more information about those Ports.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/\" \/>\n<meta property=\"og:site_name\" content=\"Truxgo Server Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-11T01:01:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-11T18:06:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/Ports.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Truxgo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Truxgo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/\"},\"author\":{\"name\":\"Truxgo\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/8b409c26449db6aa09724b45331e333e\"},\"headline\":\"Ports in Linux, How can you open them\",\"datePublished\":\"2020-08-11T01:01:09+00:00\",\"dateModified\":\"2020-08-11T18:06:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/\"},\"wordCount\":151,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Ports.jpg\",\"keywords\":[\"Linux\",\"Ports\"],\"articleSection\":[\"Linux\",\"Tutorial\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/\",\"name\":\"Ports in Linux, How can you open them - Truxgo Server Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Ports.jpg\",\"datePublished\":\"2020-08-11T01:01:09+00:00\",\"dateModified\":\"2020-08-11T18:06:00+00:00\",\"description\":\"Ports in linux and how to open it, All the information you need, commands that you will use and more information about those Ports.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Ports.jpg\",\"contentUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Ports.jpg\",\"width\":800,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/ports-in-linux-how-can-you-open-them\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ports in Linux, How can you open them\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\",\"name\":\"Truxgo Server Blog\",\"description\":\"Cloud Server and Hosting Tutorials.\",\"publisher\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\",\"name\":\"Truxgo Server Blog\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/cropped-truxgo-logo-blanco.png\",\"contentUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/cropped-truxgo-logo-blanco.png\",\"width\":1250,\"height\":278,\"caption\":\"Truxgo Server Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/8b409c26449db6aa09724b45331e333e\",\"name\":\"Truxgo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"caption\":\"Truxgo\"},\"sameAs\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\"],\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/author\\\/truxgo\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ports in Linux, How can you open them - Truxgo Server Blog","description":"Ports in linux and how to open it, All the information you need, commands that you will use and more information about those Ports.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/","og_locale":"es_MX","og_type":"article","og_title":"Ports in Linux, How can you open them - Truxgo Server Blog","og_description":"Ports in linux and how to open it, All the information you need, commands that you will use and more information about those Ports.","og_url":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/","og_site_name":"Truxgo Server Blog","article_published_time":"2020-08-11T01:01:09+00:00","article_modified_time":"2020-08-11T18:06:00+00:00","og_image":[{"width":800,"height":400,"url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/Ports.jpg","type":"image\/jpeg"}],"author":"Truxgo","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Truxgo","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/#article","isPartOf":{"@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/"},"author":{"name":"Truxgo","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/person\/8b409c26449db6aa09724b45331e333e"},"headline":"Ports in Linux, How can you open them","datePublished":"2020-08-11T01:01:09+00:00","dateModified":"2020-08-11T18:06:00+00:00","mainEntityOfPage":{"@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/"},"wordCount":151,"commentCount":0,"publisher":{"@id":"https:\/\/truxgoservers.com\/blog\/#organization"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/#primaryimage"},"thumbnailUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/Ports.jpg","keywords":["Linux","Ports"],"articleSection":["Linux","Tutorial"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/","url":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/","name":"Ports in Linux, How can you open them - Truxgo Server Blog","isPartOf":{"@id":"https:\/\/truxgoservers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/#primaryimage"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/#primaryimage"},"thumbnailUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/Ports.jpg","datePublished":"2020-08-11T01:01:09+00:00","dateModified":"2020-08-11T18:06:00+00:00","description":"Ports in linux and how to open it, All the information you need, commands that you will use and more information about those Ports.","breadcrumb":{"@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/#primaryimage","url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/Ports.jpg","contentUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/Ports.jpg","width":800,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/truxgoservers.com\/blog\/ports-in-linux-how-can-you-open-them\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truxgoservers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Ports in Linux, How can you open them"}]},{"@type":"WebSite","@id":"https:\/\/truxgoservers.com\/blog\/#website","url":"https:\/\/truxgoservers.com\/blog\/","name":"Truxgo Server Blog","description":"Cloud Server and Hosting Tutorials.","publisher":{"@id":"https:\/\/truxgoservers.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truxgoservers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/truxgoservers.com\/blog\/#organization","name":"Truxgo Server Blog","url":"https:\/\/truxgoservers.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/cropped-truxgo-logo-blanco.png","contentUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/cropped-truxgo-logo-blanco.png","width":1250,"height":278,"caption":"Truxgo Server Blog"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/person\/8b409c26449db6aa09724b45331e333e","name":"Truxgo","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","caption":"Truxgo"},"sameAs":["https:\/\/truxgoservers.com\/blog"],"url":"https:\/\/truxgoservers.com\/blog\/author\/truxgo\/"}]}},"_links":{"self":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":6,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions\/78"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/media\/50"}],"wp:attachment":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}