How to configure the IP Firewall

Procédure

The IP Firewall for your LWS Panel hosting is configured in the “Security” section, “Web IP Firewall” tool: you add IP addresses to a list there, then choose a mode, either block the addresses on the list or allow only them. It filters access to your website only (ports 80 and 443), and each change takes effect in about 3 minutes.

What is an IP Firewall?

A firewall is a computer (and a program) that filters what passes from one network to another. You can block or allow external connections by IP.

The LWS Panel Web IP Firewall offers three operating modes:

  • “Disable the web firewall”: no filtering, the list is ignored;
  • “Allow everything except the IP list”: the addresses on the list are blocked, everyone else can access the site (to block a bot or an attacker);
  • “Deny everything except the IP list”: only the addresses on the list can access the site (for a site under construction or reserved for your office).

How do you configure the IP Firewall?

  1. Open the Web IP Firewall

    Open your hosting management from your customer area, then click “Web IP Firewall” in the “Security” section. The page displays the firewall status, its mode with the “Edit” link (1), the “Add an IP address” button (2) and the list of saved addresses.

    How to configure the IP Firewall

  2. Add an IP address or IP range to the list

    Click “Add an IP address”. In the “IP address or IP range:” field, enter an address (for example 8.9.9.9) or a range of addresses (for example 8.9.9.1/24), then click “Validate”. Repeat for each address to add.

    The message “The request has been taken into account.” appears, with a “Firewall configuration” bar and the remaining time (about 3 minutes). The address appears in the list with “80 and 443” in the “TCP Port” column.

    How to configure the IP Firewall

  3. Choose the operating mode

    Click “Edit” next to the mode. In the “Web firewall (Access to your site)” window, choose “Allow everything except the IP list” to block the addresses on the list, or “Deny everything except the IP list” to allow only them, then click “Validate”.

    How to configure the IP Firewall

Check that filtering is working

Wait for the configuration to finish (about 3 minutes), then check on the Web IP Firewall page that the displayed mode is indeed the one you chose and that your addresses are listed. Filtering applies only to the website (ports 80 and 443): it does not block FTP or emails.

Remove an address or disable the IP Firewall

To remove an address, click the red trash icon on its line, then click “Confirm” in the “Confirm this choice?” window. To stop all filtering, click “Edit” and choose “Disable the web firewall”. As with adding an address, the change takes effect in about 3 minutes.

Common problems

I added an IP address, but it still accesses the site

Check that the mode is not “Disabled”: the list only has an effect with “Allow everything except the IP list” (blocking) or “Deny everything except the IP list” (restricted access). Also wait the about 3 minutes of configuration after each change.

I can no longer access my site after activating the IP Firewall

The “Deny everything except the IP list” mode is probably active without your IP address in the list. Add your address, or switch the mode back to “Disable the web firewall”.

Conclusion

You are now able to configure the IP Firewall on your shared hosting with LWS. The IP Firewall will allow you to authorize or deny connections to your site from certain IPs.

Feel free to share your feedback and questions!

help.lws.net/a/99
Was this article helpful?

Yes

No

Read 29 056 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.