I deploy my django app with nginx, gunicorn at droplet. So, I could access my site via website IP. Afterward I have integrated domain and SSL to my website. It worked without any problem at server side. But the problem is I can’t access to my website from my country IP. I can only connect with VPN. I have comminucated with domain services and they said me that problem doesn’t relative to us. So how can I fix this troubleshoot? My country is Azerbaijan.
Note: I didn’t anything about blocking IP process at my django app
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @cvmds,
Try 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
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, I’ll suggest doing a traceroute from your laptop to your droplet;
traceroute IPofYourDroplet
Then submit a ticket with DigitalOcean’s support and provide them the output of the traceroute. THey should be able to check if your IP has been blocked somewhere on DigitalOcean’s firewalls.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.