ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
    • Content Delivery Network
    • Colocation
    • Firewalls
      • Accessing your firewall configuration through MyUKFast
      • Enabling ICMP traffic to UKFast servers
      • Managing ports on your shared firewall
      • How to secure your shared firewall
      • Managing ports your dedicated firewall
      • The Access List - Single VLAN
      • The Access List - Multi VLAN
      • How to secure your dedicated firewall
      • Scheduling a dedicated firewall reboot
      • UKFast-supported VPNs
      • VPN Dashboard
      • Remote Access VPN Dashboard
      • Site To Site VPN Dashboard
      • User Administration For AnyConnect VPN
      • Two factor authentication (2FA) VPNs
      • VPN capacity on UKFast dedicated firewalls
    • Classic Load Balancers
    • Load Balancers
    • Policy
    • How to set up a Multi-Protocol VPN Server using SoftEther
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • Cloud >
  • eCloud Public >
  • Firewalls >
  • How to secure your dedicated firewall

How to secure your dedicated firewall¶

Your firewall is your first line of defence against malicious actors on the public internet. The best way to keep your server secure from attackers is to make sure they get blocked by your firewall.

Locking down vital services to Admin IPs only¶

There are often services that you as the server owner will want to control access too. Common examples are SSH, RDP, MySQL, or even your control panels like Plesk or cPanel/WHM. While you and your authorised contacts need to access these, in general the rest of the internet does not. Leaving them open to the world allows attackers to attempt to exploit them.

Fortunately, there is an easy way to stop this. If you know the IPs you want to authorise, you can lock down these admin services on your firewall so only your authorised admin IPs are able to see these vital services. Lets say you want only your office IP to be able to access MySQL on your Linux servers on port 3306.

To start, you’ll want to create a new IP Group and select “External” and provide a name for the group (e.g. “Admin”):

New IP Group

Then create an admin port group:

New Port Group

Add the 3306 port to the group:

New Port Group

Then we go to our Access list and create the rule:

New Access rule

Now for any new Admin IPs or services, you can add them to the existing groups.

Blocking an IP¶

There are some situations where the best solution is to block an IP entirely. The best way to do this is to create a blocked IPs group, just as we did for the admin group:

New IP Group

Then we need to define all the ports we want to block. We can define a group of TCP or UDP ports or simply use the IP option in the Access List editor to block all ports.

New Access rule

You can drag and drop an access-list entry in the tab to move its position within the list. Make sure this block rule is first in your list by dragging it to the top. This ensures it’s the first rule to be processed.

Our interface also allows you to add subnet ranges. If you are not familiar with how subnets work, they basically allow you to block a number of IPs in the same subnet range, by using a subnet mask. While it’s possible to learn how to these ranges by hand, it is easy to use the many online tools, like this one from MXtoolbox.

Warning

UKFast is not responsible for the performance of 3rd party software or testing tools.

Next Article > Scheduling a dedicated firewall reboot

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ