{"id":2617,"date":"2025-06-01T02:22:45","date_gmt":"2025-05-31T23:22:45","guid":{"rendered":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/"},"modified":"2025-06-01T02:22:45","modified_gmt":"2025-05-31T23:22:45","slug":"implementing-geo-blocking-for-ssh-on-linux-servers","status":"publish","type":"post","link":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/","title":{"rendered":"Implementing Geo-blocking for SSH on Linux Servers"},"content":{"rendered":"<p><br \/>\n<\/p>\n<p>In an increasingly interconnected world, securing servers against unauthorized access is more crucial than ever. One effective method to enhance security is through geo-blocking, which restricts access to SSH based on geographic location. In this article, we will explore how to implement geo-blocking for SSH on Linux servers to prevent unwanted access and reduce the risk of cyber threats.<\/p>\n<p><\/p>\n<h2>What is Geo-blocking?<\/h2>\n<p><\/p>\n<p>Geo-blocking is a security measure that involves restricting access to services based on the geographical location of the requesting IP address. By limiting SSH access to specific regions, organizations can significantly reduce their attack surface, as a substantial proportion of malicious activity originates from particular countries.<\/p>\n<p><\/p>\n<h2>Why Implement Geo-blocking for SSH?<\/h2>\n<p><\/p>\n<ol><\/p>\n<li>\n<p><strong>Enhanced Security<\/strong>: By limiting access to trusted geographic locations, you can reduce the likelihood of unauthorized access through brute-force attacks or other malicious activities.<\/p>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p><strong>Cost-effective<\/strong>: Implementing geo-blocking can be accomplished with minimal expenses, especially when using built-in Linux tools and configuration changes.<\/p>\n<p>\n<\/li>\n<p><\/p>\n<li><strong>Simplifies Monitoring<\/strong>: With restricted access points, monitoring server access becomes easier, allowing for more efficient incident response and analysis.<\/li>\n<p>\n<\/ol>\n<p><\/p>\n<h2>Prerequisites<\/h2>\n<p><\/p>\n<p>Before you begin, ensure you have:<\/p>\n<p><\/p>\n<ul><\/p>\n<li>Root access to your Linux server or the ability to use <code>sudo<\/code>.<\/li>\n<p><\/p>\n<li>Basic understanding of Linux commands and SSH configuration.<\/li>\n<p>\n<\/ul>\n<p><\/p>\n<h2>Step-by-Step Implementation of Geo-blocking for SSH<\/h2>\n<p><\/p>\n<h3>Step 1: Install <code>geoip-bin<\/code> and <code>iptables<\/code><\/h3>\n<p><\/p>\n<p>For geo-blocking, we will leverage the <code>geoip-bin<\/code> package to obtain the necessary country-based IP information, and <code>iptables<\/code> to implement the blocking rules.<\/p>\n<p><\/p>\n<p>To install the required packages, run:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo apt update<br \/>\nsudo apt install geoip-bin iptables<\/p>\n<p><\/p>\n<h3>Step 2: Download GeoIP Database<\/h3>\n<p><\/p>\n<p>GeoIP databases are necessary to map IP addresses to geographical locations. You can download a free GeoLite2 database from MaxMind.<\/p>\n<p><\/p>\n<p>bash<br \/>\nwget <a href=\"https:\/\/geolite.maxmind.com\/download\/geoip\/database\/GeoLite2-Country.tar.gz\">https:\/\/geolite.maxmind.com\/download\/geoip\/database\/GeoLite2-Country.tar.gz<\/a><br \/>\ntar -xzvf GeoLite2-Country.tar.gz<\/p>\n<p><\/p>\n<h3>Step 3: Configure <code>iptables<\/code> for Geo-blocking<\/h3>\n<p><\/p>\n<p>You can now use the <code>iptables<\/code> rules to block access based on the country.<\/p>\n<p><\/p>\n<h4>Identify the Country Codes<\/h4>\n<p><\/p>\n<p>Use the <code>geoiplookup<\/code> command to find the country codes that you need to block or allow. For instance:<\/p>\n<p><\/p>\n<p>bash<br \/>\ngeoiplookup <IP address><\/p>\n<p><\/p>\n<h4>Create <code>iptables<\/code> Rules<\/h4>\n<p><\/p>\n<p>For example, if you want to allow access from the United States (US) and block all other countries, you can use:<\/p>\n<p><\/p>\n<p>bash<\/p>\n<p>sudo iptables -A INPUT -p tcp &#8211;dport 22 -m geoip &#8211;src-cc US -j ACCEPT<\/p>\n<p>sudo iptables -A INPUT -p tcp &#8211;dport 22 -j DROP<\/p>\n<p><\/p>\n<h3>Step 4: Save Your <code>iptables<\/code> Configuration<\/h3>\n<p><\/p>\n<p>To ensure your <code>iptables<\/code> rules persist after a reboot, you need to save the configuration:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo iptables-save &gt; \/etc\/iptables\/rules.v4<\/p>\n<p><\/p>\n<h3>Step 5: Testing Your Configuration<\/h3>\n<p><\/p>\n<p>Before finalizing your setup, test the SSH access from both allowed and blocked IP addresses to confirm that the geo-blocking is working correctly. Use a VPN or proxy service to switch your IP location for testing purposes.<\/p>\n<p><\/p>\n<h3>Step 6: Regularly Update GeoIP Database<\/h3>\n<p><\/p>\n<p>GeoIP databases need to be updated regularly to reflect changes in IP allocations. You can set up a cron job to automate this process.<\/p>\n<p><\/p>\n<p>To open the crontab configuration, run:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo crontab -e<\/p>\n<p><\/p>\n<p>Add the following line to update the GeoIP database daily:<\/p>\n<p><\/p>\n<p>bash<br \/>\n0 0 <em> <\/em> * \/path\/to\/your\/update_script.sh<\/p>\n<p><\/p>\n<p>Here, <code>update_script.sh<\/code> should contain the commands to download and extract the latest GeoIP database.<\/p>\n<p><\/p>\n<h2>Conclusion<\/h2>\n<p><\/p>\n<p>Implementing geo-blocking for SSH on Linux servers is an effective strategy to enhance your system&#8217;s security. By restricting access to trusted geographic locations, you significantly reduce the chances of unauthorized access. Always remember to monitor and update your configurations regularly to adapt to changing network landscapes.<\/p>\n<p><\/p>\n<p>If you have any questions or need further assistance, feel free to reach out in the comments below!<\/p>\n<p><\/p>\n<h3>Additional Resources<\/h3>\n<p><\/p>\n<ul><\/p>\n<li><a href=\"https:\/\/www.maxmind.com\/\">MaxMind GeoIP Databases<\/a><\/li>\n<p><\/p>\n<li><a href=\"https:\/\/linux.die.net\/man\/8\/iptables\">iptables Documentation<\/a><\/li>\n<p>\n<\/ul>\n<p><\/p>\n<p>By employing practices like geo-blocking, you take a proactive step towards safeguarding your Linux servers against potential threats while gaining peace of mind.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>In an increasingly interconnected world, securing servers against unauthorized access is more crucial than ever. One effective method to enhance security is through geo-blocking, which restricts access to SSH based on geographic location. In this article, we will explore how to implement geo-blocking for SSH on Linux servers to prevent unwanted access and reduce the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2618,"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":[1463,208,265,302,770],"class_list":["post-2617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-security","tag-geoblocking","tag-implementing","tag-linux","tag-servers","tag-ssh","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>Implementing Geo-blocking for SSH on Linux Servers - WafaTech Blogs<\/title>\n<meta name=\"description\" content=\"Implementing Geo-blocking for SSH on Linux Servers %\" \/>\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\/implementing-geo-blocking-for-ssh-on-linux-servers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Implementing Geo-blocking for SSH on Linux Servers\" \/>\n<meta property=\"og:description\" content=\"Implementing Geo-blocking for SSH on Linux Servers %\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/\" \/>\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-05-31T23:22:45+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\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/\"},\"author\":{\"name\":\"WafaTech SA\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\"},\"headline\":\"Implementing Geo-blocking for SSH on Linux Servers\",\"datePublished\":\"2025-05-31T23:22:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/\"},\"wordCount\":614,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Implementing-Geo-blocking-for-SSH-on-Linux-Servers.png\",\"keywords\":[\"Geoblocking\",\"Implementing\",\"Linux\",\"Servers\",\"SSH\"],\"articleSection\":[\"Linux Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/\",\"name\":\"Implementing Geo-blocking for SSH on Linux Servers - WafaTech Blogs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Implementing-Geo-blocking-for-SSH-on-Linux-Servers.png\",\"datePublished\":\"2025-05-31T23:22:45+00:00\",\"description\":\"Implementing Geo-blocking for SSH on Linux Servers %\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Implementing-Geo-blocking-for-SSH-on-Linux-Servers.png\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Implementing-Geo-blocking-for-SSH-on-Linux-Servers.png\",\"width\":1024,\"height\":1024,\"caption\":\"linux server implementing geo-blocking for SSH\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/implementing-geo-blocking-for-ssh-on-linux-servers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Implementing Geo-blocking for SSH on Linux Servers\"}]},{\"@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":"Implementing Geo-blocking for SSH on Linux Servers - WafaTech Blogs","description":"Implementing Geo-blocking for SSH on Linux Servers %","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\/implementing-geo-blocking-for-ssh-on-linux-servers\/","og_locale":"en_US","og_type":"article","og_title":"Implementing Geo-blocking for SSH on Linux Servers","og_description":"Implementing Geo-blocking for SSH on Linux Servers %","og_url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/","og_site_name":"WafaTech Blogs","article_publisher":"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","article_published_time":"2025-05-31T23:22:45+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\/implementing-geo-blocking-for-ssh-on-linux-servers\/#article","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/"},"author":{"name":"WafaTech SA","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06"},"headline":"Implementing Geo-blocking for SSH on Linux Servers","datePublished":"2025-05-31T23:22:45+00:00","mainEntityOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/"},"wordCount":614,"commentCount":0,"publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/06\/Implementing-Geo-blocking-for-SSH-on-Linux-Servers.png","keywords":["Geoblocking","Implementing","Linux","Servers","SSH"],"articleSection":["Linux Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/","url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/","name":"Implementing Geo-blocking for SSH on Linux Servers - WafaTech Blogs","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/#primaryimage"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/06\/Implementing-Geo-blocking-for-SSH-on-Linux-Servers.png","datePublished":"2025-05-31T23:22:45+00:00","description":"Implementing Geo-blocking for SSH on Linux Servers %","breadcrumb":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/#primaryimage","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/06\/Implementing-Geo-blocking-for-SSH-on-Linux-Servers.png","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/06\/Implementing-Geo-blocking-for-SSH-on-Linux-Servers.png","width":1024,"height":1024,"caption":"linux server implementing geo-blocking for SSH"},{"@type":"BreadcrumbList","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/implementing-geo-blocking-for-ssh-on-linux-servers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wafatech.sa\/blog\/"},{"@type":"ListItem","position":2,"name":"Implementing Geo-blocking for SSH on Linux Servers"}]},{"@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\/Implementing-Geo-blocking-for-SSH-on-Linux-Servers.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/2617","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=2617"}],"version-history":[{"count":0,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/2617\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media\/2618"}],"wp:attachment":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media?parent=2617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/categories?post=2617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/tags?post=2617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}