OpenBSD Handbook

    Theme
    • Part I. Install & Configure
      • Introduction to OpenBSD
      • Installing OpenBSD
      • The X Window System
      • Networking on OpenBSD
      • System Configuration
      • OpenBSD Basics
      • Managing Software: Packages and Ports
    • Part II. Daily Operations
      • OpenBSD Desktop Environments
      • Multimedia
      • Printing
      • Linux Compatibility
      • Windows Compatibility
      • Games
    • Part III. System Administration
      • Virtualization
      • Storage and File Systems
      • Updating and Upgrading
      • Localization
      • The OpenBSD Boot Process
      • Security
    • Part IV. Networking & Daemons
      • Services
        • Database
          • MariaDB
          • PostgreSQL
          • Redis
          • memcached
        • Directory
          • YP (NIS)
          • LDAP
        • File
          • NFS
          • Samba
        • FTP Services
          • ftpd
          • ProFTPD
          • vsftpd
          • Pure-FTPd
          • TFTP
        • Mail
          • OpenSMTPD Mail Server
          • Dovecot IMAP and POP3 Server
          • Postfix
          • Exim
          • Rspamd
        • Name
          • Unbound DNS Resolver
          • NSD Authoritative DNS Server
          • BIND DNS Server
        • Networking
          • OpenBGPD
          • rad
          • DHCP on OpenBSD
          • slaacd
        • Web
          • Apache HTTP Server
          • nginx Web Server
          • OpenBSD httpd Web Server
          • relayd Reverse Proxy
        • Logging
          • syslogd
        • Monitoring
          • SNMP
        • Remote Access
          • Audit OpenSSH
          • OpenSSH Server
        • File Synchronization
          • rsync
        • Messaging
          • RabbitMQ Message Broker
        • Time
          • NTP Time Synchronization
      • PF
        • pfctl cheat sheet
        • PF Anchors
        • PF Filter Rules
        • PF Forwarding
        • PF Lists and Macros
        • PF Load Balancing
        • PF Logging
        • PF NAT
        • PF Options
        • PF Policies
        • PF Shortcuts
        • PF Tables
      • Advanced Networking
        • High Availability and State Replication
        • Multi-WAN and Policy-Based Routing
        • VPN and Cryptographic Tunneling
        • Classic and Lightweight Tunnels
        • IPv6 at Scale
        • QoS and Traffic Shaping
        • MPLS and Label Distribution
        • Network Services at Scale
        • Virtualization and Host Networking
        • Large-Scale L2 and L3 Design
        • Telemetry, Logging, and Flow Export
        • Hardening and Operational Safety
        • Reference Architectures
        • Troubleshooting Playbooks
      • Serial Communication
    • Part V. Miscellaneous
      • Virtualization Cheat Sheet
      • OpenBSD Cheatsheet
      • How-to Guides
        • Complete the First 30 Minutes After Installation
        • Check Hardware Compatibility Before Installing
        • Bootstrap Wi-Fi Firmware Without Ethernet
        • Set Up OpenBSD as a Laptop or Workstation
        • Configure Laptop Power Management
        • Run OpenBSD as a Virtual Machine Guest
        • Install OpenBSD on a VPS or Cloud Server
        • Install OpenBSD with Full-Disk Encryption
        • Troubleshoot Web Browsers on OpenBSD
        • Create an Administrator Account with doas and SSH Keys
        • Establish a Conservative Security Baseline
        • Manage OpenBSD with Ansible
        • Recover Access and Reset the Root Password
        • Collect OpenBSD Diagnostic Evidence
        • Configure Secure Remote Access with OpenSSH
        • Set Up WordPress on OpenBSD
        • Build Third-Party Software from Ports
        • Use FIDO Security Keys with OpenSSH
        • Build OpenBSD from Source
        • Configure Wi-Fi Roaming and Wired Failover
        • Dual-Boot OpenBSD on a UEFI System
        • Troubleshoot PF, NAT, and Routing
        • Automate OpenBSD Installation with Autoinstall and PXE
        • Route Multiple VLANs with PF
        • Configure a Road-Warrior WireGuard VPN
        • Troubleshoot Package Installation and Update Failures
        • Route IPv6 Networks without NAT
        • Schedule Recurring Maintenance
        • Plan a Docker Workload Migration to OpenBSD
        • Build a Mail Server with OpenSMTPD, Dovecot, and Rspamd
        • Build a Simple Router and Firewall
        • Monitor an OpenBSD System
        • Back Up and Restore an OpenBSD System
        • Configure softraid RAID1
        • Recover an OpenBSD System That Does Not Boot
        • Install Z shell (zsh)
      • OpenBSD for Linux Users
      • OpenBSD for FreeBSD Users
      • OpenBSD for macOS Users
    • OpenBSD FAQ
    • OpenBSD Architectures
      • OpenBSD Package Search

        squid-7.7p0v0-krb5

        Package search / Categories / OpenBSD 8.0 release
        โ† Back to search
        OpenBSD branch
        OpenBSD 8.0 releaseCurrent snapshot

        OpenBSD 8.0 release ยท amd64

        WWW and FTP proxy cache and accelerator

        Project homepage: https://www.squid-cache.org/

        Description

        Squid is a high-performance proxy caching server for web clients, supporting FTP, gopher, and HTTP data objects. Unlike traditional caching software, Squid handles all requests in a single, non-blocking, I/O-driven process. Squid keeps meta data and especially hot objects cached in RAM, caches DNS lookups, supports non-blocking DNS lookups, and implements negative caching of failed requests. Squid supports SSL, extensive access controls, and full request logging. By using the lightweight Internet Cache Protocol, Squid caches can be arranged in a hierarchy or mesh for additional bandwidth savings. Flavours: krb5 build with Kerberos 5 support (if you intend to use this for auth against Microsoft directory services, you may find the "msktutil" package useful).

        Package information

        Ports path
        www/squid,krb5
        Package architecture
        amd64
        Maintainer
        Stuart Henderson <stu.ports@spacehopper.org>
        Categories
        www
        Available flavors
        krb5, no_ldap

        Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.

        Direct dependencies

        Library

        • security/heimdal,-libs
        • databases/tdb
        • security/nettle
        • databases/openldap

        Build

        • devel/cppunit
        • devel/gmake
        • devel/dwz
        • archivers/xz STEM->=5.4.0

        Test

        • devel/cppunit
        OpenBSD README

        This README contains unresolved ports variables; replace them before using its commands.

        +-----------------------------------------------------------------------
        | Running squid on OpenBSD
        +-----------------------------------------------------------------------
        
        General configuration
        =====================
        The sample configuration in ${SYSCONFDIR}/squid.conf is a simple version
        with only the most essential options. By default, only RAM-based cache is
        used, un-comment the cache_dir line to enable a persistent disk cache
        ("swap"); this is normally kept in ${LOCALSTATEDIR}/cache and must be
        initialized with "squid -z" before starting the daemon. If you need to
        place it elsewhere, create the directory and make sure it is owned and
        writable by user _squid, group _squid.
        
        Logs are stored in ${LOCALSTATEDIR}/logs; access logs on a busy cache will
        grow rapidly so rotate them as necessary (use "squid -k rotate").
        
        See ${TRUEPREFIX}/share/examples/squid/squid.conf.documented for a complete
        annotated file, similar to the standard squid.conf in previous versions
        of Squid, however in many cases the defaults will suffice.
        
        The HTML error pages can be easily themed by editing the style-sheet in
        ${SYSCONFDIR}/errorpage.css.
        
        System resource limits
        ======================
        When started from rc.d(8) (i.e. via pkg_scripts in rc.conf.local or
        from "${RCDIR}/squid start"), the Squid processes run in the login(1)
        class of "squid". On a busy server, you may need to adjust the limits in
        /etc/login.conf.d/squid.
        
        There is also a kernel limit on the number of open file descriptors,
        sysctl kern.maxfiles. In some circumstances you may also need to raise
        this; if this is required, pay particular attention to testing and
        monitoring your system.
        
        Interception Proxying with PF
        =============================
        To configure an interception (a.k.a. "transparent") proxy, Squid should
        be configured in ${SYSCONFDIR}/squid.conf to bind to a specific address,
        for example:
        
        http_port 127.0.0.1:3127 intercept
        
        On the machine running Squid, add a firewall rule similar to this:
        
        pass in quick log inet proto tcp to port 80 divert-to 127.0.0.1 port 3127
        
        If the machine running Squid is already acting as a router/firewall
        for your client machines, there is no other special configuration.
        However if Squid is running on a separate machine, the router must be
        configured to pass HTTP traffic to Squid. You can use a rule like this
        on the router:
        
        pass in quick from 10.77.3.5
        pass in quick inet proto tcp to port 80 route-to 10.77.3.5
        
        (this example assumes Squid is running on 10.77.3.5).
        
        If the proxy server is running on the same subnet as the clients, the
        return traffic from the proxy will go directly back to them without
        ever hitting the firewall, which means the firewall states will never
        get updated and cause problems. This can possibly be avoided by NATting
        the relevant traffic, but on the whole it's simpler to place the proxy
        on another network interface or vlan.
        

        Package guides

        • Installing and updating packages

        Package details as JSON

        Report a bug