{"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-05-08T13:02:34","modified_gmt":"2026-05-08T13:02:34","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 id=\"h_d95b99d31a\">What is a firewall?<\/h2><p class=\"no-margin\">A firewall is a network security system that controls the <b>inbound <\/b>and <b>outbound traffic <\/b>of a server. In other words, it is a fairly important element of server security. If we have a server that connects to the internet, it is a good idea to set up a Firewall for it.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_b57a81b6ed\">How to set up a firewall<\/h2><p class=\"no-margin\">You can set up a firewall <b>manually <\/b>on your server, by following the official documentation of your operating system or control panel. Here are some useful guides for more details:<\/p><ul>\n<li>\n<p class=\"no-margin\"><a href=\"https:\/\/cyberpanel.net\/docs\/1-firewall\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Setting up a firewall on CyberPanel<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/how-to-configure-firewall-on-ubuntu-using-ufw\/\" target=\"_blank\" class=\"intercom-content-link\">How to configure a firewall on Ubuntu 18.04 with UFW<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/iptables-tutorial\" target=\"_blank\" class=\"intercom-content-link\">Iptables Tutorial &ndash; securing Ubuntu VPS with Linux firewall<\/a><\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">\n<\/p><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 href=\"https:\/\/hpanel.hostinger.com\/servers\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">VPS dashboard<\/a><\/b> and click on <b>Manage <\/b>next to the desired server.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Next, open the <b>Settings<\/b> page from the sidebar:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2021\/01\/25cd964d-957f-415e-9f4b-ec75cb800ef1.jpg\" data-media-id=\"4396\" alt=\"VPS dashboard sidebar with Settings highlighted\"><\/div><p class=\"no-margin\">\n<\/p><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><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2021\/01\/e4ada024-4064-4543-9061-583c6de8c825.jpg\" data-media-id=\"4398\" alt=\"VPS configurations page showing Reset firewall configuration button\"><\/div><p class=\"no-margin\">\n<\/p><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-PT","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":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1101\/revisions"}],"predecessor-version":[{"id":4401,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1101\/revisions\/4401"}],"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}]}}