> ## Documentation Index
> Fetch the complete documentation index at: https://docs.safesquid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Proxy Chain

> Deploy SafeSquid behind a parent proxy with proxy chaining, HTTPS inspection, and request forwarding for enterprise integration.

# Forward client traffic through a parent proxy

Use SafeSquid as a child proxy in front of a corporate (parent) proxy. A simple configuration in SafeSquid forwards all client requests to the parent proxy. SafeSquid can still perform HTTPS inspection and policy enforcement before forwarding; the parent handles upstream connectivity and any corporate policy.

Traffic flows from the client through the child SafeSquid to the parent proxy, then to the internet:

```mermaid theme={null}
flowchart LR
    Client[Client browser]
    Child[Child SafeSquid]
    Parent[Parent proxy]
    Internet[Internet]
    Client --> Child
    Child --> Parent
    Parent --> Internet
```

Example scenarios:

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image1.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=3887a3a32696444d82b196fded3668a0" alt="Proxy chain scenario: client, child proxy, and parent proxy network layout" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image1.webp" />

Here am using two proxy servers as SafeSquid only

My client (Browser)## 's network IP - 192.168.0.27

My Child Proxy## 's network IP - 192.168.27.50 (with no direct internet Access)

My Parent Proxy## 's network IP - 192.168.27.100

**Configuration on child proxy:**

1. Deploy SafeSquid proxy
2. Enabling SSL inspection in SafeSquid
3. Downloading ROOT CA certificate from SafeSquid
4. Deploy certificate in client browsers.
5. Enable forwarding to parent proxy using forwarding section

**Configuration on Parent proxy:**

Deploy SafeSquid, it is up and running, no extra configuration required in parent proxy

## Prerequisites

Enable HTTPS inspection on child proxy (optionally on parent proxy also). Check our document to configure HTTPS inspection on SafeSquid - [How to configure HTTPS inspection](/SSL_Inspection)

Import SafeSquid child proxy ROOT CA in client browser

Note: No configuration required on Parent Proxy server. Just deploy the parent proxy and make sure that it is up and running.

## Configure proxy chain in SafeSquid

Access the [SafeSquid Configuration Portal](/Configuration_Portal).

### Open Configure page

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image2.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=970354db951981d3436654f0647c8b2e" alt="Configure page in SafeSquid interface" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image2.webp" />

### Open Application Setup → Proxy chain

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image3.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=e50370c3b2aa702d3236bcec2cda1e13" alt="Application Setup section in sidebar" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image3.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image4.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=efba42673b878f5c777acd46f552ed98" alt="Proxy chain section in Application Setup" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image4.webp" />

### Enable Global section

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image5.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=6f870a64d524f2d73347df9838ec9cc9" alt="Enable Global section for proxy chain" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image5.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image6.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=3f823d5d78ca30c4de06fe3f525bb92c" alt="Global proxy chain toggle and options" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image6.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image7.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=90435bfae70acf95fea65c81c542a7ed" alt="Saving Global proxy chain configuration" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image7.webp" />

### Open Forwarding proxies and add an entry

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image8.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=45045d46cdfe5ed39f0d1ba8be0e3a03" alt="Forwarding proxies section" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image8.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image9.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=4a4cb0d314c14629accd45f371c1fe0c" alt="Add new forwarding proxy entry" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image9.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image10.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=3219f04ac35a81a5426c9fbb04ac52a4" alt="Forwarding proxy form with comment field" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image10.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image11.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=5bfb345a015c726fafe98632d6389843" alt="Entering parent proxy host or IP" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image11.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image12.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=d5df5e726f7f76857c60d9bf0cdcf2df" alt="Forwarding proxy entry with IP 192.168.27.100" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image12.webp" />

In the example: my upstream proxy ip: 192.168.27.100

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image13.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=c293fd1e266264f3613785a88ed9c80b" alt="Entering parent proxy port" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image13.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image14.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=b860e5b62965b9b12f7592d63c8e0dbd" alt="Forwarding proxy port 8080 configured" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image14.webp" />

In example: my upstream proxy listening on port 8080

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image15.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=3816d0a44c5fa646c238ac1607efcf95" alt="Submit forwarding proxy entry" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image15.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image16.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=96290e67ce1901bf7b631f1dc2659c7f" alt="Forwarding proxy list with new entry" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image16.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image17.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=45f4cfa3d6b173f430dd7fa664158acb" alt="Save configuration button" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image17.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image18.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=44c7ff67bba2e14ba43fcf001b169039" alt="Save conf confirmation" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image18.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image19.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=2c2e71d534ff80e9c2d2fe6f2a492b10" alt="Configuration saved successfully" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image19.webp" />

### Test proxy chain connectivity

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image20.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=dbb6d1b67dc55c8d275627a87ea2eb84" alt="Testing proxy chain connectivity" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image20.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image21.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=2340fb7374f891becfe283b03fa9b58f" alt="Proxy chain test result or log" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image21.webp" />

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image22.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=6113165df625215817b7883f4355e213" alt="Verifying traffic through parent proxy" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image22.webp" />

### Save configuration

<img src="https://mintcdn.com/safe-squid-labs-12a0916f/qwzFli1zy13ivPQq/images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image23.webp?fit=max&auto=format&n=qwzFli1zy13ivPQq&q=85&s=ec40263dbc38306fdb33f7d58e297867" alt="Save configuration to apply proxy chain settings" width="1280" height="720" data-path="images/How_To/Deploy_SafeSquid_Behind_Corporate_Proxy/image23.webp" />

When the administrator clicks Save config, a prompt asks for confirmation to store the configuration in the cloud.

Select Yes only in below cases:

to reuse this configuration in other SafeSquid instances.

if the total configuration in all sections is completed and validated.

Otherwise select No and click on submit.

## Verification and Evidence

* **Interface Checks**: In [Configuration Portal](/Configuration_Portal), open Application Setup → Proxy chain. Confirm Global is enabled and the forwarding proxy entry shows the correct parent IP and port.
* **Log Analysis**: Check SafeSquid access logs for requests showing the parent proxy as upstream; connection failures to the parent appear in logs with connect errors.
* **Performance Validation**: From a client behind the child proxy, browse an external site; traffic should succeed and appear in both child and parent proxy logs.

## Next steps

* [Forward Proxy](/Forward_Proxy) for explicit proxy without chaining.
* [SSL Inspection](/Configure_HTTPS_Inspection) for HTTPS inspection on the child proxy.
* [Troubleshooting](/Troubleshooting) if connectivity or parent proxy errors occur.


## Related topics

- [TCP Proxy](/use_cases/scaling_and_high_availability/tcp_proxy.md)
- [Choose an Architecture](/deployment/choose_an_architecture.md)
- [Integrations](/admin_guide/start_here/integrations.md)
- [Architecture and request pipeline](/admin_guide/start_here/architecture.md)
- [Forward proxy](/admin_guide/infrastructure_and_access/proxy_chain.md)
