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

    OpenVPN tunnel seems to break transparent proxy rule

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 1.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.
    • V
      vin0x64
      last edited by

      Hi,

      I've a pfsense box doing a home router / firewall /squid + squid guard using transparent proxy rules.

      In addition to that I've set up an openvpn tunnel to a dedicated server on the internet. So my pfsense box is an openvpn client.

      When bringing the openvpn tunnel up I noticed that the proxy did not work anymore, indeed the automatic rdr rules get wiped out of the pf ruleset as shown below on the rules.debug files before and after the restart of the client.

      [2.1-RELEASE][root@pfsense]/tmp(46): diff rules.debug.ovpn rules.debug.tpok
      83a84,87

      Setup Squid proxy redirect

      rdr on bge1 proto tcp from any to !(bge1) port 80 -> 127.0.0.1 port 3128

      246a251,254

      Setup squid pass rules for proxy

      pass in quick on bge1 proto tcp from any to !(bge1) port 80 flags S/SA keep state
      pass in quick on bge1 proto tcp from any to !(bge1) port 3128 flags S/SA keep state

      After that I need to go back to squid setup and "save" to get back my rdr rules.

      Should I file a bug report or set thing up differently ?

      Vincent.

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