Netgate Store

Author Topic: Problem with squid and multiple gateways  (Read 79 times)

0 Members and 1 Guest are viewing this topic.

Offline thompsonm

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Problem with squid and multiple gateways
« on: November 09, 2017, 01:46:04 pm »
Hi, I am having a problem with squid and my vpn. I set up squid in forwarding mode and it does SSL filtering. Everything seems to work however I checked what my external IP address is and I also did a packet capture on the WAN interface and I can see traffic from the proxy is not going through the vpn tunnel. I confirmed that all other traffic goes through it however. I have a policy based routing, that goes like this:

Soure: LAN
SPort: *
Destination: !HOMENET
Dport: *
Gateway: VPN

So traffic originating from my LAN that is not destined for the LAN, has to go through the vpn tunnel. So because I'm using a proxy in forwarding mode, the destination for HTTP/HTTPS requests changes to that of my proxy server, which then forwards the requests. So it seems to exclude all the traffic going to or from the proxy. Or something? I barely understand what the problem is. I'm hoping someone can help me with this.