HiBlog VPS and Dedicated Servers

Blocked VPS IP: Why Servers Get Filtered and How to Fix It

  • Mina SeyfollahiAuthor
  • Last updated
  • 9 minutesReading time
  • 6,332Views
  • Mina Seyfollahi
  • Last updated:
  • 9 min read
  • 6,332 views
Blocked VPS IP: Why Servers Get Filtered and How to Fix It

When you open a website, API or service you run on a virtual server (VPS), you may find that nothing answers from inside Iran: the browser keeps loading and your users write that the site will not open. Yet the same service works perfectly from abroad! This is what people call a filtered or blocked server IP, and for any business it means lost users, lost income and lost trust.

This guide first shows how to tell whether your IP or domain is really blocked or the problem lies elsewhere. Then we go through the usual reasons a VPS gets filtered, give 7 ways to prevent it and explain what to do to get a blocked server IP working again.

Short answer: if the server opens from outside Iran but not from different networks inside it, the IP or the domain is probably blocked. First find and remove the cause; usually content that breaks the law, a tool for getting around filtering, or a hacked server. Then change the IP or ask for the domain to be unblocked. Changing the IP without removing the cause only postpones the problem by a few days.

Is the server IP blocked or just unreachable?

Not every server that fails to open is filtered. The service may have stopped, the firewall may be closed by mistake or the network may have a temporary problem. Run these three tests before anything else:

  • Test from inside and outside the country: enter the IP or domain on check-host.net and run a Ping or TCP port check. The site answers from several points inside Iran and from dozens of other countries. If the foreign points get replies and the Iranian ones do not, the route inside the country is closed.
  • Test the IP apart from the domain: if the IP itself opens from Iran but the domain does not, the domain is filtered, not the server.
  • Check the domain’s DNS answer: on Iranian networks a filtered domain usually resolves to the private IP 10.10.34.34 (or 10.10.34.35 and 10.10.34.36), and a filtering notice opens instead of the site. Ask for the domain from a connection inside Iran with this command:
nslookup example.com

If the server answers from nowhere, not even from abroad, filtering is not the problem. Log in through the console in the server panel and check that the server is on, the service is running and the firewall leaves its port open.

Why does a VPS get filtered?

A blocked VPS IP address

A server IP is not blocked for no reason. Knowing these reasons is the first step to a stable, trouble-free server.

1. Content against the country’s laws

The most common reason a domain or IP is filtered is hosting content that the country’s legal authorities consider criminal, such as gambling and betting sites or pornography. Monitoring bodies find such content and block its domain or IP. Keep in mind that content your site’s users upload counts against you too.

2. Tools for getting around filtering

Running, selling or advertising a VPN, proxy or tunnel on the server is one of the fastest ways to get its IP blocked. Even a page that only introduces or links to such tools puts the server at risk. On HiData’s Iran VPS and Iran hosting this is also forbidden by HiData’s terms.

3. A hacked or infected server

If the server IP sends spam, takes part in a DDoS attack or scans other systems, it makes no difference whether you did it or someone who hacked the server: the IP lands on global blacklists and the datacenter or host suspends the service. Weak SSH passwords, an operating system and software that are not updated, and panels left open to the internet without protection are attackers’ usual way in.

4. A bad IP history

IPs change hands. The IP you got today may have belonged to someone who put it on a blacklist or got it blocked. That is why checking the IP on the very first day matters so much.

7 ways to keep your VPS from being filtered

Ways to keep a VPS from being blocked

1. Check the IP on the first day

As soon as the server is delivered, check the IP on MXToolbox Blacklist Check to see whether it is on any blacklist, and use check-host.net to see that it is reachable from inside Iran. If you find a problem, ask for a new IP right away.

2. Keep the server secure

Use a strong password or log in to SSH with a key, change the SSH port, update the operating system and software regularly and stop repeated password guessing with a tool like Fail2Ban. Leave open only the ports you really need. For websites, putting the server’s real IP behind a reverse proxy or a CDN also keeps attacks and scans from reaching the server directly.

3. Do not run tools for getting around filtering

Do not run, sell or advertise a VPN, proxy or tunnel on the server. Uploading even one file or page related to these tools can get the whole IP blocked.

4. Keep an eye on your users’ content

If users upload files, images or posts to your site (a forum, a file-sharing service or classified ads, for example), have a plan for reviewing content and handling reports. One illegal file a user posted can take the whole domain offline.

5. Watch traffic and logs

A sudden jump in outgoing traffic or thousands of connections to the mail port is often the first sign of a hacked server. Tools like Netdata, Zabbix and Grafana show these changes before they lead to a block. Our article on website, hosting and network monitoring tools introduces several practical options.

6. Do not put all important services on one IP

A block applies to an IP, not to one site. If your shop, your app’s API and your admin panel all sit on one IP, a problem with one takes them all down. Move critical services to a separate IP or server.

7. For users inside Iran, get a server inside Iran

If most of your users are in Iran, a server inside the country has the shortest route to them, and their access to it is less affected by disruptions of the international internet than access to a foreign server. For users outside Iran, a server in a country close to them is better; see our guide to choosing a VPS location.

What to do if your VPS is filtered

1. Find and remove the cause first

Check the server’s logs, the list of processes and the open ports, and see whether a program you did not install is running. If the host sent you an abuse report, the cause is written there. Until the cause is removed, a new IP will sooner or later meet the same fate.

2. Change the server IP

Once the cause is removed, or if the IP had a problem from the start, ask your host for a new IP. At HiData, if the delivered IP is blocked or on a blacklist and you open a ticket within 3 hours of the service’s delivery, the IP is changed free of charge. After those 3 hours, or if the IP was blocked because of the buyer’s own use, an IP change is not free. If the block came from running a VPN or proxy on an Iran server, the terms suspend the service and no free replacement IP is given.

3. Ask for the domain to be unblocked

If only the domain is filtered and you are sure the site’s content is legal, you can ask for a review and unblocking through the portal of Iran’s Committee for Determining Instances of Criminal Content at internet.ir. Changing the IP does not help in this case, because the block is on the domain name.

4. Get off blacklists

If the IP is on an email blacklist (such as Spamhaus), remove the cause and then ask for delisting on that list’s own website. MXToolbox shows which lists the IP is on.

Frequently asked questions

What is the difference between a filtered IP and a blacklisted IP?

A filtered IP cannot be reached from inside the country’s network, so users in Iran do not see the server. A blacklisted IP still opens, but mail servers and some services do not trust it; your emails may go to spam or not arrive at all.

Does changing the IP solve the problem?

Only once the cause is removed. If the domain is filtered, a new IP does not help, and if the cause stays on the server, the new IP gets blocked again.

Can a server outside Iran be filtered too?

Yes. A foreign server’s IP can be blocked for users inside Iran while it opens normally from every other country. The check-host.net test shows exactly this case.

Is running a VPN on an Iran VPS allowed?

No. Setting up, running or selling a VPN, proxy or tunnel is forbidden on HiData’s Iran VPS and Iran hosting, and it also puts the IP at risk of being blocked.

A VPS with a clean IP

If your users are in Iran, choose a HiData VPS with peace of mind: check the IP on the first day, and if it is blocked or on a blacklist, we change it free of charge when you open a ticket within 3 hours of delivery. For any question about your server’s reachability, HiData support answers through tickets.

Sources

Share Post

hidata.org/en/blog/blocked-ip-server/
In Social Media

Add Comment

Related Articles