How to install multiple squid proxies on single droplet?

June 2, 2017 1.5k views
VPN Ubuntu 16.04

I needed multiple proxies for a new project. I can install a squid proxy on a server. But is there anyway to run multiple squid proxies on single droplet using floating ips so that i dont need to maintain multiple droplets?

1 Answer


Each Droplet can only have one Floating IP attached to it at a time, so you would only be able to have two different IPs per Droplet. Is that what you were trying to do?

  • Ok thanks.
    What I am trying to do is I need to connect to a website but it wont allow more than 2 connections from single IP. So I want to install squid proxy on a droplet and connect to website through it. I need to run 20+ connections. So I need atleast 10 proxies. Acc to you I can have 2 ips per droplet.
    What do I need to do to use floating IP as proxy along with original IP? Any extra configuration needed?

    • You can configure Squid to listen on two IP addresses by adding the following lines to the config file located at /etc/squid/squid.conf:

      acl ip1 myip
      tcp_outgoing_address ip1
      acl ip2 myip
      tcp_outgoing_address ip2

      I strongly recommend respecting the website's 2 connections per IP rule and spreading out your connections over a larger period of time, with up to 2 connections at a time. If that does not work for you, reach out to the website's owners and see if they can help you out with your project.

Have another answer? Share your knowledge.