If your website is inaccessible to users from specific Internet Service Providers (ISPs) while using VergeCloud's CDN, this guide provides solutions to common causes, such as firewall and rate-limiting configurations.
Users may face access issues due to improper configurations on the hosting server, such as firewall rules blocking VergeCloud’s IPs or restrictive rate-limiting settings. Addressing these problems ensures seamless access to your website across all ISPs.
To allow VergeCloud’s IP addresses through the server firewall using iptables, follow these steps:
Log in to your web hosting server using SSH. For example:
ssh user@yourserver.com
Obtain the list of VergeCloud IPs by visiting https://vergecloud.com/ips.txt.
Run the following command to allow a specific IP address:
sudo iptables -A INPUT -s [VergeCloud_IP] -j ACCEPT
Replace [VergeCloud_IP]
with the actual IP address (e.g., 192.0.2.1
).
Save the configuration to ensure the changes persist after a server reboot:
sudo iptables-save > /etc/iptables/rules.v4
List all rules to confirm that the IP has been added successfully:
sudo iptables -L
To whitelist VergeCloud’s IP addresses using an .htaccess file, follow these steps:
Log in to your web hosting server using an FTP client, cPanel, or SSH.
Navigate to the root directory of your website where the .htaccess file is located (usually the public_html
folder).
Open the .htaccess file in a text editor. If the file doesn’t exist, create one in the root directory.
Insert the following code to whitelist VergeCloud’s IP addresses:
# Whitelist VergeCloud IPs
order deny,allow
deny from all
allow from [VergeCloud_IP_1]
allow from [VergeCloud_IP_2]
...
Replace [VergeCloud_IP_1]
, [VergeCloud_IP_2]
, etc., with the actual IP addresses from https://vergecloud.com/ips.txt.
Save the file and upload it back to the server if you’re using an FTP client or cPanel.
Visit your website and check its accessibility to ensure the whitelist rules are working as expected.
To whitelist VergeCloud’s IP addresses in your Nginx configuration, follow these steps:
Log in to your server using SSH.
Locate your Nginx configuration file, usually found at /etc/nginx/nginx.conf
or in a site-specific file under /etc/nginx/sites-available/
.
Add the following code inside the server
block:
allow [VergeCloud_IP_1];
allow [VergeCloud_IP_2];
deny all;
Replace [VergeCloud_IP_1]
and [VergeCloud_IP_2]
with the actual IPs from https://vergecloud.com/ips.txt.
Save the configuration file and exit the editor.
Run the following command to ensure your Nginx configuration is valid:
sudo nginx -t
Apply the changes by restarting Nginx:
sudo systemctl restart nginx
To whitelist VergeCloud’s IP addresses in Microsoft IIS, follow these steps:
Log in to your Windows Server and open IIS Manager.
In the left-hand Connections pane, expand the Sites node and select your website.
Double-click on IP Address and Domain Restrictions in the IIS Manager Features View.
Click Add Allow Entry in the right-hand Actions pane. Enter each VergeCloud IP address from https://vergecloud.com/ips.txt and click OK.
Set the default behavior to deny all traffic except those explicitly allowed:
Restart IIS to apply the changes:
iisreset
Rate-limiting configurations on your hosting server may restrict the number of requests allowed per user, potentially blocking legitimate traffic. Follow these steps to resolve rate-limiting issues:
Log in to your hosting server control panel and locate the rate-limiting settings.
Ensure the request quota is set to a reasonable value to prevent legitimate users from being blocked.
Increase the request quota or whitelist VergeCloud’s IP addresses to ensure uninterrupted traffic flow.
Verify that users can access the website without encountering rate-limiting issues.