Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
proxy custom config
« previous
next »
Print
Pages: [
1
]
Author
Topic: proxy custom config (Read 4841 times)
siginigin
Newbie
Posts: 7
Karma: 1
proxy custom config
«
on:
April 17, 2018, 09:11:23 am »
Hi guys,
I need to configure squid to have both listen for transparent and non-transparent requests. I didn't find web gui option to do this, only one of them is possible. It is possible to add http_port 3127 in /usr/local/etc/squid/squid.conf and after service squid restart it is working. However this change is overwritten after change from web gui.
How this can be done? And in general, how can I customize other things not included in web gui?
Thank you for your help.
Logged
fabian
Moderator
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: proxy custom config
«
Reply #1 on:
April 17, 2018, 09:19:14 am »
Aren't only the localhost bound ports transparent?
Logged
siginigin
Newbie
Posts: 7
Karma: 1
Re: proxy custom config
«
Reply #2 on:
April 17, 2018, 01:37:13 pm »
Well, there transparent ports 3128 and 3129 for IPv4&6, like this generated by OPNsense:
# Setup transparent mode listeners on loopback interfaces
http_port 127.0.0.1:3128 intercept ssl-bump cert=/var/squid/ssl/ca.pem dynamic_cert_mem_cache_size=10MB generate-host-certificates=on
http_port [::1]:3128 intercept ssl-bump cert=/var/squid/ssl/ca.pem dynamic_cert_mem_cache_size=10MB generate-host-certificates=on
https_port 127.0.0.1:3129 intercept ssl-bump cert=/var/squid/ssl/ca.pem dynamic_cert_mem_cache_size=10MB generate-host-certificates=on
https_port [::1]:3129 intercept ssl-bump cert=/var/squid/ssl/ca.pem dynamic_cert_mem_cache_size=10MB generate-host-certificates=on
Moreover I need to add this for clients who has proxy configured manually:
http_port 127.0.0.1:3127 ssl-bump cert=/var/squid/ssl/ca.pem dynamic_cert_mem_cache_size=10MB generate-host-certificates=on
http_port [::1]:3127 ssl-bump cert=/var/squid/ssl/ca.pem dynamic_cert_mem_cache_size=10MB generate-host-certificates=on
Is that possible?
Logged
fabian
Moderator
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: proxy custom config
«
Reply #3 on:
April 17, 2018, 01:48:07 pm »
can you try to add the interfaces? 127.0.0.1 and ::1 (loopback interface) will only work transparently.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
proxy custom config