ProxyWing LogoProxyWing

How to Set Up a Proxy Server: Comprehensive Guide

If you need to bypass IP-based restrictions when using internet services, one of the tools that will effectively help you achieve that is a proxy. Proxies route your network traffic through a remote server, replacing your real IP address, which makes your connection seem like it is coming from the proxy’s IP. For a more seamless experience, you need to set up the proxy right.

Published:July 24, 2026
Reading time:11 min
Last updated:July 24, 2026

Setting up proxy servers involves a few simple steps that anyone with basic computer knowledge can follow. In this comprehensive guide, we will discuss the detailed information you need to know to quickly set up a proxy on all the major platforms, including Windows, macOS, Android, and web browsers. Without wasting any more of your time, let’s delve right in!

Key Takeaways

  • How a proxy works: A proxy sits between your device and the internet, masking your IP and making requests seem like they are coming from a different address. Some common reasons for using anonymous proxy solutions include more private browsing, effective data scraping, and accessing geo-restricted content. 
  • Setup prerequisites: Before setup, you need your proxy IP, port, protocol, and login credentials ready. Enabling authentication ensures a secured connection to your remote server. 
  • Setup differs by platform: The proxies setup process involves using system settings on Windows/macOS, WiFi settings on Android, System settings for most browsers, and built-in settings for Firefox. Different browsers have different setup processes. 
  • Setup on Ubuntu Linux: Squid on Ubuntu is the standard self-hosted option that enables a more seamless proxy setup. It is quick to install, but ACL configuration is critical
  • Secure setup: Always require authentication for your proxies through IP whitelisting or username/password. An open proxy is a public relay waiting to be abused. Using authentication enables a more secure setup. 
  • Large scale setups: Enterprise deployments need centralized routing, policy enforcement, and logging. Doing the setup per device is not scalable. Using automation helps save time in such cases.
  • Choose the right provider: ProxyWing offers a ready-made alternative for both individual users and enterprise customers. Residential, ISP, and datacenter proxies from $0.90/month, no server management needed. 

What Is a Proxy Server?

A proxy server is an intermediary server that sits between your device and the internet. When using a proxy server, your real IP address is replaced, which makes your internet traffic seem like it is coming from the proxy’s IP address. It replaces your IP address and then forwards your traffic to the final destination. Common use cases of proxies include privacy protection, accessing restricted content, web scraping, account management, and traffic routing.

When You Need to Set Up a Proxy Server

  • For more privacy: Private proxies secure web browsing by hiding the real IP address of your personal devices, including phones and PCs.
  • Routing browser traffic: You can set up your proxy server to route traffic of one browser without affecting the whole system
  • Accessing location-restricted content: Configuring mobile devices for location-specific tasks like streaming shows and accessing content on specific services online. 
  • Enterprise traffic management: Organizations use proxies to manage the content that their teams access when using company networks. 
  • Custom use cases: You may choose to host your own proxy infrastructure on a cloud server for custom applications like internal traffic routing or development environments that require a fixed, controllable proxy endpoint.

What You Need Before Setting Up a Proxy Server

The perquisites before setup include: 

  • Proxy IP address
  • Port number – e.g., 8080, 3128, 1080
  • Protocol – HTTP, HTTPS, or SOCKS5
  • Username and password – if authentication is required
  • Proxy type — choose from different types, including residential, datacenter, ISP, or mobile

Don’t have proxies yet? ProxyWing offers different types, including ISP, datacenter, and residential proxy services starting at $0.90/month with about 70M+ IP addresses across 190+ countries. Choose the appropriate type depending on your needs.

How to Set Up a Proxy Server on Devices and Browsers

In this section, we will discuss the setup process of proxies on all the major platforms. Please note that the steps below are for manual setups — no need for setup scripts or configuration files. 

Windows

On your Windows device, go to Settings > Network & Internet > Proxy and select Manual proxy setup. Toggle it on and enter the proxy IP address and port. Windows will prompt for credentials if authentication is required. Provide the credentials initially acquired from your provider. 

Mac

For macOS, open System Settings (System Preferences for older versions) > Network > Click Details on Active network and Select the Proxies tab. Enable HTTP, HTTPS, or SOCKS as needed and then enter the IP and port. If your proxy requires password and username authentication, remember to input your login credentials. 

Android

On an Android device, open your settings > long-press your Wi-Fi network > Modify Network > Advanced > Proxy and tap the Manual option. Enter the details, including hostname (IP address) and port. With Android devices, settings apply per network, not system-wide.

Google Chrome

Chrome and most major browsers, including Microsoft Edge and Safari, use system proxy settings by default. For per-browser control or quick switching, you may need to use an extension like Proxy SwitchyOmega to route the browser traffic. 

Firefox

Unlike most browsers, Mozilla Firefox has built-in proxy settings. To configure them, go to Settings > General > Network Settings and select Manual proxy configuration. Enter your proxy details, including the IP address and Port number. Firefox will now route traffic independently from the OS. Please note that this setup only works with Firefox and not any other major browser out there.

How to Set Up a Proxy Server on Ubuntu With Squid

If you’re using Ubuntu Linux, follow these steps to setup to enable proxy routing on your device:

Step 1: Install Squid Proxy

Start by installing Squid using the following commands:

sudo apt update && sudo apt install squid -y
squid -v

Step 2: Locate and Back Up the Squid Configuration File

The config lives at /etc/squid/squid.conf. Back it up before editing using the command below:

sudo cp /etc/squid/squid.conf /etc/squid/squid.conf.bak

Step 3: Start and Enable the Squid Server

Using the commands below to start and enable the Squid server:

sudo systemctl start squid
sudo systemctl enable squid

Step 4: Check the Status of the Squid Server

To determine is the setup works as expected, check the Squid server status using the command below:

sudo systemctl status squid

Look for active (running). Any startup errors will appear here if there are any. 

How to Configure a Squid Proxy Server

Once the Squid server is up and running, here how should configure the proxy:

Step 1: Create a Custom Configuration File

sudo nano /etc/squid/conf.d/custom.conf

Keeping custom rules in a separate file makes edits and rollbacks easier. You may also use any other editor of your choice besides nano. 

Step 2: Configure Allowed Clients and Internet Access Rules

Use the commands below to configure the clients that should use the proxy server and any other 

rules you would like to set up.
acl allowed_clients src 192.168.1.0/24
http_access allow allowed_clients
http_access deny all

For instance, the above command defines a rule that allows only devices within the 192.168.1.0/24 local network to use the proxy and blocks everyone else.

Step 3: Test Proxy Server Connectivity

After the setup, you need to test the proxy if it works as expected. Use the curl command below:

curl -x http://<proxy-ip>:3128 http://mywebsite.com

A successful HTML response confirms the proxy is forwarding traffic.

How to Configure Proxy Authentication

If you need to enable authentication — which we recommend for privacy and security reasons — follow these steps:

Step 1: Install httpd-tools

sudo apt install apache2-utils -y

This command installs the Apache utilities package, which includes the htpasswd tool needed to create and manage proxy authentication credentials.

Step 2: Create a Password File and Assign Proper Ownership

sudo touch /etc/squid/passwd
sudo chown proxy /etc/squid/passwd

These commands create an empty password file and assign ownership to the Squid process to allow it to securely read and write authentication credentials.

Step 3: Add a User With htpasswd

sudo htpasswd /etc/squid/passwd yourusername

The above command creates a new proxy user and stores their hashed password in the Squid password file.

Step 4: Add Authentication Settings to the Config File

auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic realm Proxy Authentication
acl authenticated proxy_auth REQUIRED
http_access allow authenticated

Then reload: sudo systemctl reload squid

The above commands tell Squid to use the password file for basic authentication, require valid credentials for proxy access, and the reload command applies the changes without restarting the service.

Step 5: Test Squid Proxy Authentication

After the above setup, you can test if the authentication works as expected using the command below:

curl -x http://yourusername:yourpassword@<proxy-ip>:3128 http://example.com

If you test without credentials, Squid will return 407 Proxy Authentication Required.

Security Considerations When Setting Up a Proxy Server

Security considerations when setting up a proxy
  • Restrict access by IP: Never leave your proxy server open to all traffic
  • Authentication: Require authentication on any externally accessible proxy
  • Monitoring: Monitor /var/log/squid/access.log for unusual activity
  • Port security: Only expose the server port your proxy uses through your firewall
  • Regular updates: Always keep Squid updated to patch known vulnerabilities using the command sudo apt update && sudo apt upgrade squid.

Proxy Server Setup for Business and Enterprise Use

Enterprise proxy setups go beyond entering an IP and port on every device or browser like we earlier discussed. These large scale setups involve centralized servers, authentication policies, traffic logging, and scalability. When setting up a proxy server for your organization, it has to be set up in a way that supports multiple users simultaneously, enforces consistent access policies, and scales without manual setups on every endpoint.

Consumer Proxy Setup vs. Enterprise Proxy Setup

Consumer setup means configuring a single device or browser. The steps shared earlier for Windows, macOS, browsers and Linux are all meant for consumer proxy setups. Enterprise deployment on the other hand covers centralized servers, team-wide authentication, policy enforcement, and audit logging. 

You will need to work with your IT team or a managed proxy provider to design and maintain a deployment that meets your organization’s scale and security requirements.

What Is the Role of a Proxy Server in Business Environments?

  • Access control and content filtering: Your IT team can configure the proxy to allow or block access to certain websites and IP addresses. 
  • Geo-targeted data collection: This enables collection of data going to or coming from websites in a given location. 
  • Multi-account operations: When managing multiple accounts across platforms, you can use proxies to assign a unique IP to each account. This reduces the risk of cross-account linking and platform restrictions.
  • Security monitoring and threat intelligence: Proxies can also be used to scan all inbound and outbound web requests, blocking access to known malicious IP addresses. 
  • Centralized traffic routing and logging: Having all your traffic routed through one server allows users in technical teams to easily monitor network activities. 

When a Self-Hosted Proxy Makes Sense — and When It Doesn’t

Self-hosting works when you need full control and fixed internal routing to apply rules or monitor traffic on your local network. However, it doesn’t make sense if you need access to residential IPs, geo-targeting, or scale. In such cases, a managed provider is a much faster and cheaper solution. Managed providers usually have pools with millions of IP addresses, enabling more flexible and scalable proxy usage.

Why ProxyWing Is a Practical Choice for Fast Proxy Setup

ProxyWing removes the overhead of running your own server. Plans start at $0.90/month, giving you instant access to residential, ISP, and datacenter proxies in 190+ countries. 

Our proxies support popular protocols, including HTTP/S and SOCKS5 support, providing a wide range of use cases. We also support sticky and rotating sessions, and city-level targeting with no maintenance required, thanks to our automatic configurations with advanced IP addressing systems. 

Common Mistakes When Setting Up a Proxy Server

  • Using the wrong port. The internet connections will fail if a user enters the wrong port number.
  • Skipping authentication on an exposed proxy, which can lead to security breaches
  • Misconfigured ACLs blocking legitimate traffic on your network
  • Forgetting to reload Squid after config changes
  • Testing only one browser and assuming everything is routed correctly

Conclusion

This comprehensive guide has covered the proxy setup process for the different platforms. For consumer setups, configure your proxies through device or browser settings. Deploying your own Squid server is a great solution for enterprise users that need full control. However, for residential IPs, geo-targeting, or scale without maintenance, a managed provider like ProxyWing is the simpler and recommended choice.

Article written by:

Popescu Ion

Head of Partnerships

Ion brings deep, hands-on knowledge of proxy infrastructure to his partnerships role, spanning residential, ISP, datacenter, and mobile proxy setups across real-world use cases like multi-account management, web scraping, and performance marketing. At Proxywing, he drives collaborations with affiliates, bloggers, and tech communities, while also contributing to the company's content and positioning across directories and marketplaces. His client-facing expertise — from antidetect browser configuration to tailored proxy rotation strategies — allows him to bridge the gap between technical capability and partner needs. Outside the office, Ion stays curious about emerging martech tools and community-driven growth strategies.

All articles by author (19)

FAQ

Yes, you can. Any machine with a public IP and Squid installed can act as a proxy server. However, this requires more manual configurations than using mainstream providers.

Install Squid on Ubuntu, configure ACLs and authentication, then point your clients at the server’s IP and port.

Install Squid on a local machine, allow your subnet in the ACLs, then set that machine’s IP as the proxy on other devices.

Run a proxy server on a device connected to your Wi-Fi, then enter its local IP and port in the network settings of other devices on the same network.

Have any questions?