61
Web Proxy Filtering and Caching / Squid Proxy Transparent + OpenVPN + tcp_outgoing_address possible?
« on: January 23, 2022, 04:10:05 pm »
Hi,
I have installed transparent squid proxy with clamav on my opnsense, works perfect. As I use also openvpn with pia on my sense, im trying to force the squid proxy over the VPN Connection, as at the moment when the Proxy is enabled, squid take the WAN Gateway. Searched here in the Forum and tried already with parameter tcp_outgoing_address but without success till know. Seems I have somewhere an error.
Created under /usr/local/etc/squid in the Folders /post-auth and /pre-auth a custom.conf with the following settings:
Restarted the Fw and tested, but get the following error in squid.log
squid kid1| commBind Cannot bind socket FD 17 to 151.x.x.x: (49) Can't assign requested address
Tried then to add just the following line to the custom.conf
Still get the same error.
Does someone get this to work?
Thx!
I have installed transparent squid proxy with clamav on my opnsense, works perfect. As I use also openvpn with pia on my sense, im trying to force the squid proxy over the VPN Connection, as at the moment when the Proxy is enabled, squid take the WAN Gateway. Searched here in the Forum and tried already with parameter tcp_outgoing_address but without success till know. Seems I have somewhere an error.
Created under /usr/local/etc/squid in the Folders /post-auth and /pre-auth a custom.conf with the following settings:
Code: [Select]
acl VPNUsers src 192.168.20.0/24
tcp_outgoing_address (VPN IP) VPNUsers
Restarted the Fw and tested, but get the following error in squid.log
squid kid1| commBind Cannot bind socket FD 17 to 151.x.x.x: (49) Can't assign requested address
Tried then to add just the following line to the custom.conf
Code: [Select]
tcp_outgoing_address {VPN IP}
Still get the same error.
Does someone get this to work?
Thx!