Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid & OpenVPN Revisited

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sgb
      last edited by

      Hi all,

      pfSense 2.0 i386 two node cluster.  Squid, Openvpn.

      I had hoped to roll out squid to the openvpn service but I've hit some problems.  Someone else has already covered this (http://forum.pfsense.org/index.php/topic,33622.0.html), but to recap - setting up an OpenVPN server doesn't require the creation of an interface.  This means that Squid has nothing to bind to.  That's solved by adding a new interface to represent the tun adapter for OpenVPN (as I understand it).  I'm not clear whether this is an alias for all possible TUN instances, but that's not my current problem.

      That thread references this page on traffic filtering for Openvpn on 1.2.3 http://doc.pfsense.org/index.php/OpenVPN_Traffic_Filtering_on_1.2.3.  It says that you should set the OpenVPN interface type to static, but leave the IP address blank.  This is an invalid combination on 2.0.  What are the implications of leaving the interface type set to 'none' instead of 'static'?

      Simon

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        If you want to force squid out via VPN, try setting squid tcp_outgoing_address directive at package custom options.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • S
          sgb
          last edited by

          Sorry, I wasn't clear.  I have squid enabled for the desktop LAN in transparent mode in what I would imagine is one of the most common deployment configurations.  Squid is configured for a proxy interface of 'LAN' in its configuration.  Any http request originating from our internal LAN that is destined for a public IP address will pass through Squid.  I would like the have the same functionality for clients on the OpenVPN-assigned addresses, however there is no exposed OpenVPN service network interface available on the squid configuration page.  My original post picks up from there.

          Regards,

          Simon

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            Ok, now it's clear to me.

            You may need to edit squid.inc file and add manualy redirect rule to openvpn interface.
            At /tmp/rules.debug you can see squid rdr rule.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.