Question

How can I use my droplets cloud server as a proxy?

I installed and configured tinyproxy on my cloud server. and when I was trying to connect , it turned out like this “The admistrator of this proxy has not configured it to service request from your host.”,I am wondering how I can solve this problem。


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 10, 2024
Accepted Answer

Hi there,

Yes, you can run proxy servers on DigitalOcean, there are no technical restrictions from preventing you in doing this.

The error message you’re encountering with Tinyproxy, relates to the access control settings within Tinyproxy’s configuration rather than a restriciton on the DigitalOcean side.

The Allow and Deny directives in the Tinyproxy configuration file determine which client IP addresses are permitted to use the proxy. By default, Tinyproxy may only allow connections from 127.0.0.1 (localhost), implying that all other connections are denied.

To resolve this issue, you should adjust the Allow directive in the Tinyproxy configuration file to include the IP address of the host you are connecting from. If you want to allow access from any IP, you can comment out the Allow lines, which defaults to permitting all connections, but be cautious as this could expose your proxy to the public.

For more information you can refer to the quick start here:

https://tinyproxy.github.io/#quickstart

Let me know if you have any questions!

Best,

Bobby

alexdo
Site Moderator
Site Moderator badge
April 10, 2024

Heya, @xuanwang

There is no limitation from DigitalOcean on running proxy servers. You’ll however need to configure it and tweak the settings to make it work.

You can examine the config file which should be stored in /etc/tinyproxy/tinyproxy.conf and make sure that the IP addresses that you want to use the proxy are listed with the Allow directive.

Hope that this helps!

KFSys
Site Moderator
Site Moderator badge
April 10, 2024

Heya @xuanwang,

I’ve not worked with tinyproxy however you should be able to allow connections from localhost / 127.0.0.1 on your App or proxy. This will allow it to receive calls/connections from there.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.