I have a windows machine with a squid server and VPN client connection(which is not the default gateway)
What I want is to redirect some traffic from squid to my default ethernet connection and some to VPN.
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 192.168.100.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.100.1
PPP adapter vpn_conn:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 172.16.3.33
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :
squid conf
http_port 2003
acl user3_acl myport 2003
tcp_outgoing_address 172.16.3.33 user3_acl
http_port 2004
acl user4_acl myport 2004
2004 port works as expected through my Ethernet adapter, but redirect to vpn doesn’t work,
the log contains
1638648992.630 75 33.33.333.333 NONE/503 0 CONNECT docs.microsoft.com:443 - HIER_NONE/- -