{"id":1101,"date":"2021-01-18T15:43:18","date_gmt":"2021-01-18T15:43:18","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2021\/01\/18\/4805502-how-to-set-up-a-firewall-at-vps\/"},"modified":"2026-06-26T14:30:41","modified_gmt":"2026-06-26T14:30:41","slug":"4805502-how-to-set-up-a-firewall-at-vps","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4805502-how-to-set-up-a-firewall-at-vps\/","title":{"rendered":"How to set up a firewall at VPS"},"content":{"rendered":"<h2 data-path-to-node=\"4\" id=\"h-understanding-server-firewalls\">Understanding server firewalls<\/h2><p data-path-to-node=\"5\">A firewall is a network security system that monitors and controls inbound and outbound server traffic. It establishes a barrier between a trusted internal network and untrusted external traffic, making it an essential security layer for any server connected to the internet.<\/p><h2 data-path-to-node=\"6\" id=\"h-setting-up-a-server-firewall\">Setting up a server firewall<\/h2><p data-path-to-node=\"7\">You can configure a firewall using built-in Hostinger tools or set it up manually depending on your operating system or control panel.<\/p><ul data-path-to-node=\"8\">\n<li>\n<p data-path-to-node=\"8,0,0\"><b data-path-to-node=\"8,0,0\" data-index-in-node=\"0\">Hostinger Managed VPS Firewall:<\/b> For an automated setup, you can manage traffic rules directly from your account. Follow the instructions in the guide on <a class=\"ng-star-inserted\" href=\"https:\/\/www.hostinger.com\/support\/8172641-how-to-use-a-managed-vps-firewall-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">How to use a managed VPS firewall at Hostinger<\/a>.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"8,0,0\"><b data-path-to-node=\"8,1,0\" data-index-in-node=\"0\">Manual Setup:<\/b> If you prefer configuring rules yourself, refer to the official documentation for your specific setup:<\/p>\n<\/li>\n<\/ul><ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>\n<p class=\"no-margin\"><a class=\"intercom-content-link\" href=\"https:\/\/cyberpanel.net\/docs\/1-firewall\/\" target=\"_blank\" rel=\"noopener\">Setting up a firewall on CyberPanel<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/tutorials\/how-to-configure-firewall-on-ubuntu-using-ufw\/\" target=\"_blank\" rel=\"noopener\">How to configure a firewall on Ubuntu 18.04 with UFW<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/tutorials\/iptables-tutorial\/\" target=\"_blank\" rel=\"noopener\">Iptables Tutorial &ndash; securing Ubuntu VPS with Linux firewall<\/a><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul><h2 id=\"h_2a7483333c\">How to reset the firewall<\/h2><p class=\"no-margin\">If you have issues connecting to your server, and you have set up a firewall, you can regain access by resetting your firewall. Navigate to the <b><a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/servers\/\" target=\"_blank\" rel=\"noopener\">VPS dashboard<\/a><\/b> and click on <b>Manage <\/b>next to the desired server.<\/p><p class=\"no-margin\">Next, open the <b>Settings<\/b> page from the sidebar:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"aligncenter wp-image-11917 size-large\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_22-48-1024x541.png\" alt=\"\" width=\"1024\" height=\"541\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_22-48-1024x541.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_22-48-300x158.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_22-48-768x406.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-24_22-48.png 1378w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div><p class=\"no-margin\">On the <b>Main settings tab<\/b>, locate the <b>Reset firewall configuration <\/b>option and click on the <b>Reset <\/b>button:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"aligncenter wp-image-12047 size-large\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-26_22-22-1024x162.png\" alt=\"\" width=\"1024\" height=\"162\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-26_22-22-1024x162.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-26_22-22-300x48.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-26_22-22-768x122.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-26_22-22-1536x244.png 1536w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-26_22-22.png 1916w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div><p class=\"no-margin\">Wait a few moments for the process to complete and try connecting again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up a firewall with your VPS<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[199],"tags":[],"class_list":["post-1101","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4805502-how-to-set-up-a-firewall-at-vps\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/4805502-como-configurar-un-firewall-en-hostinger-vps\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4805502-comment-mettre-en-place-un-pare-feu-sur-un-vps-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4805502-bagaimana-cara-setup-firewall-di-vps-di-hostinger\/","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/4805502-como-configurar-um-firewall-no-vps-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1101"}],"version-history":[{"count":3,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1101\/revisions"}],"predecessor-version":[{"id":12049,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1101\/revisions\/12049"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}