Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - cixhebus

#1
Hey,

I agreed what you said even if I'm not a "top level" specialist.
The network is a "not private" network, right now completely "open"
I want it "safe" and "most hidden as possible" (need it).
I hesitate between "vpn and proxy" or "just vpn" or "just proxy".
Finally I thought "just proxy" was nice (I don't need absolutely to block sites. I just block "adults" right now just to prevent download).
I also install proxy as antivirus (clamAV/C-ICAP) need it.
Right now I use opnsense/ACME client/C-ICAP+ClamAV/Crowsec/Intrusion detection/ZenArmor/Squid Proxy
If you have any other professional config I'm open ! (most hidden as possible, antivirus/malware).

And still impossible to have Discord working even with additional domain in the bump list ... may be I need SOCKS5 to have bidirectionnal talk ...

Thanks
Best regards
#2
Quote from: meyergru on October 15, 2025, 06:40:31 PMWhen you open the website with a browser and turn on developer tools and look what URLs are being accessed, you will find a multitude of URLs, including:

discordapp.com
discord.gg

and maybe others. Any of those URLs / domains can enforce certificate pinning or CAA, so you would have to add all of those domains to your SSL bump sites.

You can also use the developer mode console to see which URLs cannot be loaded and add those step-by-step.

You see why I said that transparent proxying takes a lot of work, now, do you? Imagine doing that for any website you want to use....



Hi,

Thanks ... didn't thought about that !
Yes, he, lot of work so.
As you say that, did you have some advice?
Not using the transparent proxy? If yes what to put in place? I want my network to be "hidden" as most as possible.
#3
Hi there,

Again a question.
I put in place the squid proxy (transparent). It's working.
All firewall rules are in place and NAT rules the same.
Again, it's working if people add certificate (CA) in their browser.
The problem (problem in the way it's not working and I want to understand why so If I have the same with anither site I can figure (or not) this out).

I can't go to the discord site (channel). I have a page with the icon ... nothing else.
If I disable the NAT and firewall rules, all is ok.

If I re-enable (NAT and rules) and put ".discord.com" in the "ssl no bump sites" option (admin/forward proxy/general) it don't change anything.
If I try the admin/forward proxy/access control and put it on the "Whitelist" ... doesn't work either (I tried "*.discord.com" and ".discord.com"

Any idea?

thanks if you already solved this.

Best regards ... and sorry for my english ... I'm french speaking and not perfect in english !! :-)

#4
Quote from: meyergru on October 14, 2025, 12:47:30 PMWhat you are trying is not going to work:

For a transparent proxy to work and break up TLS traffic, you need your own CA (i.e. self-signed certificate and corresponding private key) to create certificates on-the-fly while the traffic passes through the proxy. Actually, there are two TLS connections: one from your PC to the proxy and one from the proxy to the website. The first connection is where the problem arises: Your PC requests a website (e.g. "xyz.domain.com") and expects to get a valid (i.e. "trusted") certificate for it.

This is where the proxy creates a certificate for xyz.domain.com and presents it to your PC. In order to be trusted, the CA the certificate was created with has to be added to the trust store of the PC.

In practice, that means you can only use your own CA to do this and you have to make sure that each LAN client trusts that CA. Apart from that, there are certain sites that do not want to have their traffic inspected (like banks) and use mechanisms to enforce that this will not happen, like certificate pinning or at least, by having a CAA DNS entry that show the CAs which may hand out certificates for a specific domain in the first place - such that your own CA will never work. For each of these types of websites, you have to create an exemption list (aka SSL bump sites). Also, for some clients (like IoT devices), you cannot even change the trusted CA list, so those clients have to be exempt from inspecting traffic as well.

All in all, this is something that needs a lot of work to get going and therefore is mostly used in business environments. For most end-user applications, it is practically not feasible.

What is worse, is that you misinterpreted what a LetsEncrypt certificate is about: You can only have normal certificates (not CA certificates) signed by LetsEncrypt - and only if you can verify that you own that specific domain. So, you cannot make use of LetsEncrypt within a transparent proxy context at all, no matter how hard you may try.


Ok thanks for your answer.
So I was confuse. I mixed the certificate who need to be used to access opnsense using my domain name (ACME plugin/let's encrypt certificate ... ) on a secure way and the CA needed by the proxy to run and manage https "inside opnsense"
Am I nearly right?

best regards
#5
Quote from: Patrick M. Hausen on October 14, 2025, 12:37:26 PMYou need to create your own private CA for transparent proxying of TLS. This part of the error messages hints at that:

2025/10/14 10:28:41| FATAL: No valid signing certificate configured for HTTP_port 127.0.0.1:3128

"signing certificate" == CA

HTH,
Patrick

Thanks .. I think I finally understand (a little ;-) )
#6
Hi there,

All is up to date.

I'm tuck to enable squid proxy (transparent) with a "Let's encrypt" certificate.
Everything was working nice.
- ACME plugin
- certificate creation/installation. No errors.

I can use my certificate in "system/settings/administration" and access opnsense with my domain.

Squid Proxy is UP (green play button) is I let the opensense "own signed" certificate but as soon as I use the "let's encrypt" one, I got "red square button".
If I click on start I get:

Segmentation fault
Starting squid.
CPU Usage: 0.009 seconds = 0.009 user + 0.000 sys
Maximum Resident Size: 65824 KB
Page faults with physical i/o: 0
2025/10/14 10:28:41| Processing Configuration File: /usr/local/etc/squid/squid.conf (depth 0)
2025/10/14 10:28:41| Starting Authentication on port 127.0.0.1:3128
2025/10/14 10:28:41| Disabling Authentication on port 127.0.0.1:3128 (interception enabled)
2025/10/14 10:28:41| Starting Authentication on port [::1]:3128
2025/10/14 10:28:41| Disabling Authentication on port [::1]:3128 (interception enabled)
2025/10/14 10:28:41| Starting Authentication on port 127.0.0.1:3129
2025/10/14 10:28:41| Disabling Authentication on port 127.0.0.1:3129 (interception enabled)
2025/10/14 10:28:41| Starting Authentication on port [::1]:3129
2025/10/14 10:28:41| Disabling Authentication on port [::1]:3129 (interception enabled)
2025/10/14 10:28:41| WARNING: empty ACL: acl bump_nobumpsites ssl::server_name "/usr/local/etc/squid/nobumpsites.acl"
2025/10/14 10:28:41| Processing Configuration File: /usr/local/etc/squid/pre-auth/40-snmp.conf (depth 1)
2025/10/14 10:28:41| Processing Configuration File: /usr/local/etc/squid/pre-auth/dummy.conf (depth 1)
2025/10/14 10:28:41| Processing Configuration File: /usr/local/etc/squid/pre-auth/parentproxy.conf (depth 1)
2025/10/14 10:28:41| Processing Configuration File: /usr/local/etc/squid/auth/dummy.conf (depth 1)
2025/10/14 10:28:41| Processing Configuration File: /usr/local/etc/squid/post-auth/dummy.conf (depth 1)
2025/10/14 10:28:41| WARNING: HTTP requires the use of Via
2025/10/14 10:28:41| WARNING: 'HTTP_port 127.0.0.1:3128' missing private key in '/var/squid/ssl/ca.pem'
2025/10/14 10:28:41| Not currently OK to rewrite swap log.
2025/10/14 10:28:41| storeDirWriteCleanLogs: Operation aborted.
2025/10/14 10:28:41| FATAL: No valid signing certificate configured for HTTP_port 127.0.0.1:3128
2025/10/14 10:28:41| Squid Cache (Version 6.14): Terminated abnormally.
/usr/local/etc/rc.d/squid: WARNING: failed to start squid

I search and I tried to understand but I'm completely stuck.
May be a wrong parameter on the certificate (I mean certificate is valid but Squid was waiting for a special value?).
I really don't know what to do.

Thanks a lot for any help