{"id":2685,"date":"2025-06-07T20:38:57","date_gmt":"2025-06-07T17:38:57","guid":{"rendered":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/"},"modified":"2025-06-07T20:38:57","modified_gmt":"2025-06-07T17:38:57","slug":"configuring-a-host-based-firewall-on-your-linux-server","status":"publish","type":"post","link":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/","title":{"rendered":"Configuring a Host-Based Firewall on Your Linux Server"},"content":{"rendered":"<p><br \/>\n<\/p>\n<p>In today&#8217;s digital landscape, securing your server is paramount. One effective way to enhance your Linux server\u2019s security is by configuring a host-based firewall. Firewalls act as a barrier between your server and potential threats from the outside world, allowing you to control incoming and outgoing traffic based on predetermined security rules.<\/p>\n<p><\/p>\n<p>In this article, we will guide you through the process of configuring a host-based firewall on your Linux server using <strong>ufw (Uncomplicated Firewall)<\/strong>, which is user-friendly and designed for simplicity.<\/p>\n<p><\/p>\n<h2>What is UFW?<\/h2>\n<p><\/p>\n<p><strong>UFW<\/strong> stands for Uncomplicated Firewall and is a front-end for iptables, making it easier to configure as a host-based firewall. While iptables provides more advanced features and capabilities, UFW focuses on ease of use, making it suitable for beginners or those who prefer straightforward commands.<\/p>\n<p><\/p>\n<h2>Installing UFW<\/h2>\n<p><\/p>\n<p>Before we begin, ensure that UFW is installed on your system. Most modern Linux distributions come with UFW pre-installed. You can check if it&#8217;s available by running:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw status<\/p>\n<p><\/p>\n<p>If UFW is not installed, you can install it using the package manager of your distribution. For Ubuntu\/Debian, you can run:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo apt update<br \/>\nsudo apt install ufw<\/p>\n<p><\/p>\n<p>For CentOS\/RHEL, UFW is not typically available by default, so you may want to switch to a different firewall solution like <code>firewalld<\/code> or install UFW from EPEL (Extra Packages for Enterprise Linux). <\/p>\n<p><\/p>\n<h2>Enabling UFW<\/h2>\n<p><\/p>\n<p>To enable UFW, run the following command:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw enable<\/p>\n<p><\/p>\n<p>This command will activate the UFW service, and from this point forward, all incoming traffic will be denied unless explicitly allowed.<\/p>\n<p><\/p>\n<p>To check the status of UFW after activation, execute the command:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw status verbose<\/p>\n<p><\/p>\n<h2>Basic UFW Commands<\/h2>\n<p><\/p>\n<p>UFW uses a simple command structure. Here are some of the basic commands to manage your firewall:<\/p>\n<p><\/p>\n<h3>Allowing and Denying Ports<\/h3>\n<p><\/p>\n<p>To allow specific incoming traffic, you can use the following command format:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw allow <port><\/p>\n<p><\/p>\n<p>For instance, to allow HTTP traffic (port 80):<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw allow 80\/tcp<\/p>\n<p><\/p>\n<p>Similarly, to deny traffic, use:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw deny <port><\/p>\n<p><\/p>\n<h3>Allowing Services<\/h3>\n<p><\/p>\n<p>Instead of specifying ports, you can also allow predefined services. For example:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw allow ssh<br \/>\nsudo ufw allow http<br \/>\nsudo ufw allow https<\/p>\n<p><\/p>\n<p>To see a list of available application profiles:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw app list<\/p>\n<p><\/p>\n<h3>Checking the Status of UFW<\/h3>\n<p><\/p>\n<p>To view the currently active UFW rules, you can run:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw status<\/p>\n<p><\/p>\n<p>For a more detailed view, use:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw status numbered<\/p>\n<p><\/p>\n<p>This command provides numbered rules, making it easier to manage them.<\/p>\n<p><\/p>\n<h3>Deleting Rules<\/h3>\n<p><\/p>\n<p>If you need to remove specific rules, you can either refer to the rule number or port:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw delete <rule_number><\/p>\n<p><\/p>\n<p>or:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw delete allow 80\/tcp<\/p>\n<p><\/p>\n<h2>Logging with UFW<\/h2>\n<p><\/p>\n<p>UFW also offers logging capabilities to keep track of firewall events. You can enable logging with the following command:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw logging on<\/p>\n<p><\/p>\n<p>Logs can usually be found in <code>\/var\/log\/ufw.log<\/code>. <\/p>\n<p><\/p>\n<h2>Advanced Configurations<\/h2>\n<p><\/p>\n<p>While UFW provides an excellent way to get started with firewall management, you can also add more advanced rules:<\/p>\n<p><\/p>\n<ul><\/p>\n<li>\n<p><strong>Allowing specific IPs:<\/strong> To allow traffic from a specific IP, use:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw allow from <IP_ADDRESS><\/p>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p><strong>Allowing subnets:<\/strong><\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo ufw allow from &lt;SUBNET\/CIDR&gt;<\/p>\n<p>\n<\/li>\n<p>\n<\/ul>\n<p><\/p>\n<h2>Additional Security Measures<\/h2>\n<p><\/p>\n<p>While UFW helps enforce network security, consider combining it with other security measures:<\/p>\n<p><\/p>\n<ul><\/p>\n<li>Keep your system and software updated.<\/li>\n<p><\/p>\n<li>Use strong passwords and SSH keys for authentication.<\/li>\n<p><\/p>\n<li>Regularly review your UFW configurations and logs.<\/li>\n<p>\n<\/ul>\n<p><\/p>\n<h2>Conclusion<\/h2>\n<p><\/p>\n<p>Configuring a host-based firewall like UFW on your Linux server is a critical step toward enhancing your security posture. By controlling which services and ports are accessible, you can significantly reduce your exposure to potential threats. <\/p>\n<p><\/p>\n<p>With the simple commands provided, managing your firewall should be straightforward, allowing you to focus more on serving your application effectively while keeping security at the forefront.<\/p>\n<p><\/p>\n<p>For more insights and tips about Linux server management and security practices, stay tuned to WafaTech Blog!<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>In today&#8217;s digital landscape, securing your server is paramount. One effective way to enhance your Linux server\u2019s security is by configuring a host-based firewall. Firewalls act as a barrier between your server and potential threats from the outside world, allowing you to control incoming and outgoing traffic based on predetermined security rules. In this article, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2686,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22],"tags":[391,408,1493,265,266],"class_list":["post-2685","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-security","tag-configuring","tag-firewall","tag-hostbased","tag-linux","tag-server","et-has-post-format-content","et_post_format-et-post-format-standard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.5 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Configuring a Host-Based Firewall on Your Linux Server - WafaTech Blogs<\/title>\n<meta name=\"description\" content=\"Configuring a Host-Based Firewall on Your Linux Server %\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring a Host-Based Firewall on Your Linux Server\" \/>\n<meta property=\"og:description\" content=\"Configuring a Host-Based Firewall on Your Linux Server %\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/\" \/>\n<meta property=\"og:site_name\" content=\"WafaTech Blogs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-07T17:38:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2221\" \/>\n\t<meta property=\"og:image:height\" content=\"482\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"WafaTech SA\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wafatech_sa\" \/>\n<meta name=\"twitter:site\" content=\"@wafatech_sa\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"WafaTech SA\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/\"},\"author\":{\"name\":\"WafaTech SA\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\"},\"headline\":\"Configuring a Host-Based Firewall on Your Linux Server\",\"datePublished\":\"2025-06-07T17:38:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/\"},\"wordCount\":659,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Configuring-a-Host-Based-Firewall-on-Your-Linux-Server.png\",\"keywords\":[\"Configuring\",\"Firewall\",\"HostBased\",\"Linux\",\"Server\"],\"articleSection\":[\"Linux Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/\",\"name\":\"Configuring a Host-Based Firewall on Your Linux Server - WafaTech Blogs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Configuring-a-Host-Based-Firewall-on-Your-Linux-Server.png\",\"datePublished\":\"2025-06-07T17:38:57+00:00\",\"description\":\"Configuring a Host-Based Firewall on Your Linux Server %\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Configuring-a-Host-Based-Firewall-on-Your-Linux-Server.png\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Configuring-a-Host-Based-Firewall-on-Your-Linux-Server.png\",\"width\":1024,\"height\":1024,\"caption\":\"linux server implementing host-based firewalls\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-a-host-based-firewall-on-your-linux-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring a Host-Based Firewall on Your Linux Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\",\"name\":\"WafaTech Blogs\",\"description\":\"Smart Technologies\",\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"alternateName\":\"WafaTech\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\",\"name\":\"WafaTech Blogs\",\"alternateName\":\"WafaTech\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/logo_big.webp\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/logo_big.webp\",\"width\":2221,\"height\":482,\"caption\":\"WafaTech Blogs\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/WafaTech\\\/61560546351289\\\/\",\"https:\\\/\\\/x.com\\\/wafatech_sa\",\"https:\\\/\\\/www.youtube.com\\\/@wafatech-sa\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wafatech\\\/\"],\"description\":\"WafaTech, a leading Saudi IT services provider, specializes in cloud solutions, connectivity, and ICT services. Offering secure cloud infrastructure, high-speed internet, and ICT solutions like hosting, backup, and disaster recovery, WafaTech operates a Tier 3 data center at KAUST with ISO certifications. Regulated by CST, the company is committed to innovation, security, and customer satisfaction, empowering businesses in the digital age.\",\"email\":\"sales@wafatech.sa\",\"legalName\":\"Al-Wafa Al-Dhakia For Information Technology LLC\",\"foundingDate\":\"2013-01-08\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\",\"name\":\"WafaTech SA\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"caption\":\"WafaTech SA\"},\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/author\\\/omer-yaseen\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Configuring a Host-Based Firewall on Your Linux Server - WafaTech Blogs","description":"Configuring a Host-Based Firewall on Your Linux Server %","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:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/","og_locale":"en_US","og_type":"article","og_title":"Configuring a Host-Based Firewall on Your Linux Server","og_description":"Configuring a Host-Based Firewall on Your Linux Server %","og_url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/","og_site_name":"WafaTech Blogs","article_publisher":"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","article_published_time":"2025-06-07T17:38:57+00:00","og_image":[{"width":2221,"height":482,"url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","type":"image\/webp"}],"author":"WafaTech SA","twitter_card":"summary_large_image","twitter_creator":"@wafatech_sa","twitter_site":"@wafatech_sa","twitter_misc":{"Written by":"WafaTech SA","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/#article","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/"},"author":{"name":"WafaTech SA","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06"},"headline":"Configuring a Host-Based Firewall on Your Linux Server","datePublished":"2025-06-07T17:38:57+00:00","mainEntityOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/"},"wordCount":659,"commentCount":0,"publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/06\/Configuring-a-Host-Based-Firewall-on-Your-Linux-Server.png","keywords":["Configuring","Firewall","HostBased","Linux","Server"],"articleSection":["Linux Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/","url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/","name":"Configuring a Host-Based Firewall on Your Linux Server - WafaTech Blogs","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/#primaryimage"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/06\/Configuring-a-Host-Based-Firewall-on-Your-Linux-Server.png","datePublished":"2025-06-07T17:38:57+00:00","description":"Configuring a Host-Based Firewall on Your Linux Server %","breadcrumb":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/#primaryimage","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/06\/Configuring-a-Host-Based-Firewall-on-Your-Linux-Server.png","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/06\/Configuring-a-Host-Based-Firewall-on-Your-Linux-Server.png","width":1024,"height":1024,"caption":"linux server implementing host-based firewalls"},{"@type":"BreadcrumbList","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-a-host-based-firewall-on-your-linux-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wafatech.sa\/blog\/"},{"@type":"ListItem","position":2,"name":"Configuring a Host-Based Firewall on Your Linux Server"}]},{"@type":"WebSite","@id":"https:\/\/wafatech.sa\/blog\/#website","url":"https:\/\/wafatech.sa\/blog\/","name":"WafaTech Blogs","description":"Smart Technologies","publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"alternateName":"WafaTech","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wafatech.sa\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wafatech.sa\/blog\/#organization","name":"WafaTech Blogs","alternateName":"WafaTech","url":"https:\/\/wafatech.sa\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","width":2221,"height":482,"caption":"WafaTech Blogs"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","https:\/\/x.com\/wafatech_sa","https:\/\/www.youtube.com\/@wafatech-sa","https:\/\/www.linkedin.com\/company\/wafatech\/"],"description":"WafaTech, a leading Saudi IT services provider, specializes in cloud solutions, connectivity, and ICT services. Offering secure cloud infrastructure, high-speed internet, and ICT solutions like hosting, backup, and disaster recovery, WafaTech operates a Tier 3 data center at KAUST with ISO certifications. Regulated by CST, the company is committed to innovation, security, and customer satisfaction, empowering businesses in the digital age.","email":"sales@wafatech.sa","legalName":"Al-Wafa Al-Dhakia For Information Technology LLC","foundingDate":"2013-01-08","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06","name":"WafaTech SA","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","caption":"WafaTech SA"},"url":"https:\/\/wafatech.sa\/blog\/author\/omer-yaseen\/"}]}},"jetpack_featured_media_url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/06\/Configuring-a-Host-Based-Firewall-on-Your-Linux-Server.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/2685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/comments?post=2685"}],"version-history":[{"count":0,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/2685\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media\/2686"}],"wp:attachment":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media?parent=2685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/categories?post=2685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/tags?post=2685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}