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

    Squid + OpenVPN Tunnel [SOLVED]

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 3 Posters 8.1k 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.
    • N
      nutt318
      last edited by

      Well Squids transparent proxy works great on my internal network (192.168.1.0/24) and filters out about every single ad. However I just recently setup an OpenVPN tunnel which network is (192.168.200.0/24) and was wondering how I can bind this network to use Squid to filter out the adds, is this possible?

      Thanks for the help.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Assign the OpenVPN instance as an interface (Interfaces > (assign), pick the tun for the server) and then you should be able to select it for use by squid. More info on assigning here:

        http://doc.pfsense.org/index.php/OpenVPN_Traffic_Filtering_on_1.2.3

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • N
          nutt318
          last edited by

          That worked great, Thanks.

          I was just missing the part on adding the tunnel interface.

          Thanks.

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

            In the Last step of the documentation it states:

            Add Firewall Rules

            Firewall > Rules
               Click the OPTx tab or the name that coincides with the OpenVPN interface(s) you created.
               Add rules
               Save, Apply

            What rules should i add for my proxy to work over openvpn ?
            Should i forward the external port of openvpn 1194 to the internal port of my proxy 8080 ??

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              The rules to redirect into the proxy will happen automatically if you select the assigned OpenVPN interface in the squid configuration.

              The firewall rules on the OpenVPN interface should look like the firewall rules on the LAN interface, whatever will allow the clients to access what they need across the VPN.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

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