Question

I can't access my site from my country

Posted July 4, 2021 80 views
ApacheDNS

Hello!
I have created a droplet and configured my website and DNS, but I have a little problem.

I cannot access my website from my country, but if I access with a VPN I have full access to the website

Website: vvipvenezuela.com

What could be happening?

Thanks
Luis Hurtado

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hey Luis,

Thanks for taking some time to place your query here at Community. I will be happy to provide assistance here.

I understand that you are having issues accessing the domain from your home country but the connection is successful via VPN. I would suggest allowing your IP directly on your droplet via IPtables. The following command needs to be executed on your droplet via SSH or using the DigitalOcean’s web console:

iptables -A INPUT -s 192.168.0.1 -j ACCEPT

Iptables Essentials: Common Firewall Rules and Commands

Remember to change the IP 192.168.0.1 with your OWN. Once you’ve executed this command, do

tail -f /var/log/secure

and try to open your website again, see if anything will be logged in this log or if you’ll be able to access the website. If you again can’t access it, please perform an MTR and traceroute directed towards the droplet’s IP address and share the details with the support team in a ticket for a deep overview.

MTR command should be run with some additional flags to get more insights:

mtr -rwbzc100 dropelet's_ip_address

Thanks

by Mitchell Anicas
Iptables is a software firewall for Linux distributions. This cheat sheet-style guide provides a quick reference to iptables commands that will create firewall rules that are useful in common, everyday scenarios. This includes iptables examples of allowing and blocking various services by port, network interface, and source IP address.