If you purchased a fully managed hosting service, the expert from the hosting company will handle all server configuration including firewall. But for self-managed server, properly setting up a firewall is one of the essential and important things for server security.
In this How-to guide, we are going to show you how to set up a firewall with iptables on VPSrobots.
Step 1. Sign in VPSrobots and connect to your server. Then click login icon to access your server.
Step 2. After accessing your server, you are taken to server status page. Click Security option on the left side navigation menu. If it is your first time to enable iptables, a pop-up window tells you VPSrobots will create a new iptables rules to replace the current one. Click Accept button to next page.
Step 3. The security page consists of Iptables Configuring and Login Details sections. The iptables configuring section includes two tables for Port rules and IP rules. If you allow a certain port to access, insert a port rules in port rule table.
- To insert a port rule, choose a desired protocol from the predefined protocol options, and enter a port number, then click Insert a rule button. The port will be immediately added in the table.
- To delete a port rule, click Remove icon to block the access to the port.
Step 4. Click IP rules tab to switch to IP rules table. If you want to block a certain IP or IP segment, add the IP rules on this page.
- To block a certain IP or IP segment, enter it in the table and click Block the IP (Segment) button.
- To unblock a certain IP or IP segment, click Remove icon.
It’s done. Although setting up iptables can be done on the terminal client by coding, but doing it on a GUI dashboard is more user friendly, especially for a novice. Additionally, in order to monitor the access to server, a Login Details table is designed and located below iptables section. Click Reload button on the top of the right side of Login Details section to scan server and load the recent user information including login name, home directory, permissions, login data&time, and IP address, these mentioned infromation will help you to identify the unauthorized access in time so that you can protect your server from the hacker attack.
Please check the hand-picked articles below to know more VPSrobots feartures: