For your VPS Leaseweb offers free Basic Firewall functionality which you can enable to restrict and control access to the VPS.
By default the Firewall is turned Off when a new VPS is delivered. You will need to turn on the Firewall to block ingress traffic to your VPS. Make sure to create firewall rules, allowing specific traffic to your VPS when you turn on the Firewall.
Creating firewall rules
In order to selectively grant access for traffic from certain IP addresses to reach a few selected ports of your VPS, you will need to create firewall rules. Based on these rules, traffic from specified IP address ranges is allowed to reach your VPS using the specified protocol and to the specified ports.
Information
Note: you can create firewall rules before turning the firewall on. Those rules will be applied immediately when you do turn On the firewall, which should prevent unnecessary down time for your services.
The firewall functionality works only with IPv4 addresses.
- To create a new ingress firewall rule, login to the Customer Portal and choose VPS.
- Click on a VPS and click on Manage VPS, to go to the management page.
- On the Overview page, select Networking tab and click Add rule.
- The Create firewall rule pop-up window displays. Enter the following values:
Field Name | Description |
---|---|
Name | Enter a name for this firewall rule. It will help you to identify the type of rule you have created when applying it to a VPS. |
Protocol | You can allow ingress traffic for TCP, UDP and ICMP protocols. |
Source | Enter a range of IP addresses (in CIDR notation) from which traffic is allowed to reach certain ports of your VPS. To allow public access to a service use the IP-address range 0.0.0.0/0 which will match all IPv4 IP-addresses and network ranges.A single IP-address in CIDR notation is the IP-address followed by the /32 prefix e.g. 192.0.2.17/32 |
Startport | Enter the port number of the VPS through which you allow external traffic to reach the VPS (by by-passing the firewall). For example, Port 80. However, if there are multiple ports through which you want external traffic to reach the server, you can enter the start (first) port number here. In the “Endport” field name, you can enter the end (last) port number. For example, if you want port numbers 50-60 to allow traffic into the virtual machine, you need to enter 50 here. |
Endport (optional) | If there are multiple ports through which you want external traffic to reach the VPS, you can enter the end (last) port number here. For example, if you want port numbers 50-60 to allow traffic into the server, you need to enter 60 here. |
- Click Submit to save the firewall rule.
Turning on Firewall for a VPS
- To turn on the Firewall, login to the Customer Portal and choose VPS.
- Click on a VPS and click on Manage VPS, to go to the management page.
- On the Overview page, select Networking tab and click Turn on Firewall.