-
Notifications
You must be signed in to change notification settings - Fork 0
How to test the access from Iran to your VPN server
Ehsan Mohandesi edited this page May 25, 2024
·
4 revisions
- 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
- Run an HTTP server on your server.
python3 -m http.server 80
- 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 thecurl
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
- 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.