> ## 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.

# First configuration

This page is for a new administrator who has a working SafeSquid appliance and needs a safe, minimal setup: browsers can use the proxy, only intended clients are allowed, and you can see why a request was allowed or blocked.

<Note>
  Open the Web UI at `http://safesquid.cfg/` from a machine that can reach the appliance. Policy lives in the Web UI; process tunables live in [startup.ini](/admin_guide/start_here/startup_ini).
</Note>

## What you will set up

1. Confirm the service is running
2. Confirm how clients reach SafeSquid (listen address)
3. Lock down who may use the proxy (Access restrictions)
4. Point a browser at the proxy and test
5. Add a simple content rule (Access Profiles)
6. Learn where to look when something fails (logs)

## 1. Confirm the service

On the appliance:

```
/etc/init.d/safesquid status
```

If it is not running: `/etc/init.d/safesquid start`. Details: [Daemon, service, and files](/admin_guide/start_here/daemon).

## 2. Confirm listen address

In the Web UI open **Network settings → Listen**.

* You should see at least one enabled listener (IP and port), often port **8080**.
* If Listen is empty, SafeSquid falls back to `LISTEN_IP` / `LISTEN_PORT` in [startup.ini](/admin_guide/start_here/startup_ini).

<Tip>
  ### Example — dual listeners

  * **0.0.0.0:8080** — proxy traffic from the LAN
  * **10.0.0.5:80** — Web UI only on a management address (optional)

  Later you can restrict Web UI access in Access restrictions using the **Interface** field so only the management listener may open `http://safesquid.cfg/`.
</Tip>

More detail: [Network settings](/admin_guide/infrastructure_and_access/network_settings).

## 3. Lock down Access restrictions

Open **Access restrictions**. This is the security perimeter: who may connect and what they may do.

1. Set **Default Access Policy** to **Deny** (recommended).
2. Leave **Kerberos / SSO** off for this first pass (add it later; see [Authentication](/admin_guide/start_here/authentication)).
3. Add one **Allow list** entry for your office or lab network.

<Tip>
  ### Example — allow the LAN to use the proxy

  On the Allow list entry:

  * **Enabled** — on
  * **Comment** — `LAN proxy users`
  * **IP Address** — `10.0.0.0-10.255.255.255` (use your real range; SafeSquid does not use CIDR like `10.0.0.0/8`)
  * **Access** — enable at least proxy / HTTP rights your deployment needs (Web interface only if this entry should also reach the UI)
  * Leave Profiles, LDAP, username blank so the rule matches by IP only

  **Expected result:** a PC in `10.0.0.0`–`10.255.255.255` can use the proxy; a client outside that range is denied.
</Tip>

<Warning>
  Blank match fields mean “match any.” An Allow entry with nothing filled in can open the proxy to everyone. Always set IP, Interface, or identity criteria.
</Warning>

Full guide: [Access restrictions](/admin_guide/infrastructure_and_access/access_restrictions).

## 4. Point a browser and test

1. On a PC inside the allowed range, set the HTTP/HTTPS proxy to the appliance IP and listen port (for example `10.0.0.5:8080`).
2. Browse to a simple HTTP site (or HTTPS if your clients already trust the appliance for inspection — skip HTTPS Inspection for day one if unsure).
3. Open **Reports → Detailed logs**. You should see your request with username (or anonymous), URL, and status.

<Tip>
  ### Example — quick deny check

  Temporarily change the Allow entry IP to a range that does *not* include your PC, save, and reload a page. The browser should fail to use the proxy. Restore the correct range afterward.
</Tip>

## 5. Add a simple Access Profiles rule

**Access restrictions** decides who may use SafeSquid. **Access Profiles** decides what those users may fetch (categories, sites, profiles).

1. Open **Access Profiles → Default Policies** (or Secondary Policies).
2. Add a DENY rule for a category you can test safely (or a specific host if categories are not ready yet).

<Tip>
  ### Example — block one test site for everyone

  * **Enabled** — on
  * **Comment** — `Block example test host`
  * Match the host or category your lab uses
  * **Action** — **DENY** (use **DO NOT BYPASS** if you do not want a temporary bypass cookie)

  **Expected result:** matching requests show a block page; Detailed logs show a profiles-related `filter_name` / reason. See [Access Profiles](/admin_guide/policies_and_profiles/access_profiles).
</Tip>

## 6. When something fails

1. Note the time, client IP, and URL.
2. Search **Reports → Detailed logs** for `filter_name` and `filtering_reason`.
3. On a test network only, set **System configuration → Send Debugging Headers To → CLIENT** and inspect response headers in the browser. See [Debug response headers](/admin_guide/start_here/debug_response_headers).
4. Turn debugging headers back to **NONE** when finished.

Full workflow: [Logging and troubleshooting](/admin_guide/start_here/logging).

## What to do next

* [Authentication](/admin_guide/start_here/authentication) — Kerberos / SSO or System authentication so logs show real usernames
* [Integrate LDAP](/admin_guide/infrastructure_and_access/integrate_ldap) — groups for policy
* [HTTPS Inspection](/admin_guide/infrastructure_and_access/https_inspection) — decrypt HTTPS when your policy requires it (plan client trust carefully)
* [SSqore](/admin_guide/infrastructure_and_access/ssqore) and [Categorize Web-Sites](/admin_guide/policies_and_profiles/categorize_web_sites) — category-based Access Profiles
* [Application Signatures](/admin_guide/policies_and_profiles/application_signatures) — tag client applications for policy
* [SqScan](/admin_guide/security_scanners/sqscan) or [Clam antivirus](/admin_guide/security_scanners/clam_antivirus) — malware scanning
* [Subscription](/admin_guide/infrastructure_and_access/subscription) — license and feed updates
* [Architecture](/admin_guide/start_here/architecture) — how sections fit together

## See also

* [Full documentation index](/admin_guide/main)
* [Daemon, service, and files](/admin_guide/start_here/daemon)


## Related topics

- [Architecture and request pipeline](/admin_guide/start_here/architecture.md)
- [SafeSquid Appliance Builder](/getting_started/install_safesquid/safesquid_appliance_builder.md)
- [SafeSquid daemon](/admin_guide/start_here/daemon.md)
- [Tools and Reports](/admin_guide/start_here/tools_and_reports.md)
- [Authentication](/admin_guide/start_here/authentication.md)
