Skip to content

How to test the access from Iran to your VPN server

Ehsan Mohandesi edited this page Jun 15, 2024 · 4 revisions
  1. Create a simple index.htm file on your VPN server by running the following command which creates the file and adds a sample content to it.
echo "<html> <head> <title>Test Page</title> </head> <body> You viewed the page.  </body> </html>" > index.htm
  1. Run an HTTP server on your server.
python3 -m http.server 80
  1. Run the following command on your machine in Iran and make sure you see the HTML content of the file such as the You viewed the page. message. If you do not see the message, the server is blocked in Iran. To double-check about it, run the curl command from a server outside Iran and make sure the command output is as shown below.
$ curl -v 161.35.5.74
*   Trying 161.35.5.74:80...
* Connected to 161.35.5.74 (161.35.5.74) port 80 (#0)
> GET / HTTP/1.1
> Host: 161.35.5.74
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: SimpleHTTP/0.6 Python/3.10.12
< Date: Sat, 25 May 2024 19:17:10 GMT
< Content-type: text/html
< Content-Length: 91
< Last-Modified: Fri, 17 May 2024 01:53:25 GMT
<
<html>
<head>
<title>Test Page</title>
</head>
<body>
You viewed the page.
</body>
</html>
* Closing connection 0
  1. Go to https://check-host.net/, enter your server's IP address in the search box, and click the HTTP button. If the results show OK for the Iranian cities, it means your server is accessible in Iran. If the results show OK for cities in other countries, but not OK for all or some cities in Iran, then it means the server is blocked in some or all ISPs in Iran and you need to use another IP for your server. In addition, test the server in https://www.host-tracker.com/en/ic/check-http which uses 16 Iranian agents, by picking Iran from the drop-down list there.

image

Clone this wiki locally