OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • "SSL no bump sites" doesn't work for Win Updates
« previous next »
  • Print
Pages: [1]

Author Topic: "SSL no bump sites" doesn't work for Win Updates  (Read 7463 times)

netranger

  • Newbie
  • *
  • Posts: 39
  • Karma: 5
    • View Profile
"SSL no bump sites" doesn't work for Win Updates
« on: September 21, 2019, 03:25:02 pm »
Hi,

Goal
Get Windows Updates working over transparent HTTPS Squid Proxy.

Problem
Some entries in the "SSL no bump sites" list seem to be inactive.

Version
19.7.4_1

Description
For example, one of the sites used for windows updates seems to be settings-win.data.microsoft.com. No matter what I tried, I could not get this site to not be intercepted. The reason I know it is not intercepted is because I can see the full path in the logs. I tried the following no-bump configurations:

.microsoft.com -> Log shows https://settings-win.data.microsoft.com/settings/v2.0/WSD/WaaSAssessment? is being accessed.

settings-win.data.microsoft.com -> Log shows https://settings-win.data.microsoft.com/settings/v2.0/FlightSettings/FSService? is being accessed.

.data.microsoft.com -> Log shows https://settings-win.data.microsoft.com/settings/v2.0/wsd/muse? is being accessed.


So does it work at all? Yes it does. For example with a bank site:

.db.com -> Log shows 160.83.8.143:443 is being accessed. No path visible which means no-bump entry works.
Removed the .db.com entry again -> Log shows https://www.db.com/company/img/favicon.ico is being accessed.

In between I checked the content of the config file, looked good to me:

Code: [Select]
# less /usr/local/etc/squid/nobumpsites.acl
.data.microsoft.com
.db.com

Any hints will be greatly appreciated.

BR,
NR
Logged

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1358
  • Karma: 45
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #1 on: September 26, 2019, 08:20:39 am »
I created an Alias with the Domains for Windows Updates an these Alias isnt Portforwarded to the Proxy.
Logged
OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

netranger

  • Newbie
  • *
  • Posts: 39
  • Karma: 5
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #2 on: September 27, 2019, 04:59:23 pm »
Ok that would at least be a work around. Could you provide a screenshot of how you did it?

BR,
NR
Logged

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1358
  • Karma: 45
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #3 on: October 01, 2019, 07:33:33 pm »
I created .txt files on a Webserver (but just to manage them central)

I'll send you the config tomorrow.

Gesendet von meinem MI 9 mit Tapatalk

Logged
OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1358
  • Karma: 45
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #4 on: October 02, 2019, 03:52:46 pm »
1. create an Alias with the Domains you dont want to route over the Proxy. (no wildcards, just full domains or IP adresses)

2. Create the NAT Rule (Picture "NAT") the Rule have to stand before the other Proxy NAT rules.

3. Create the Firewall Rule to allow Proxy bypass (Picture: "Rule") the rule have to stand before the "deny Proxy bypass" Rule


Now it should work to bypass the Proxy for the Domains.

Important is that your Windows devices are using the same DNS-Server as your OPNsense
« Last Edit: October 02, 2019, 03:55:05 pm by lfirewall1243 »
Logged
OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

netranger

  • Newbie
  • *
  • Posts: 39
  • Karma: 5
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #5 on: October 14, 2019, 11:42:29 pm »
thank you for the screenshots!
according to https://docs.microsoft.com/en-us/windows-server/administration/windows-server-update-services/deploy/2-configure-wsus I would need to put some wildcard entries  :-\ for you it worked without that?
Logged

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1358
  • Karma: 45
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #6 on: October 15, 2019, 08:11:50 am »
Wildcards will not work. Just full domain names

Gesendet von meinem MI 9 mit Tapatalk

Logged
OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

AlexV

  • Newbie
  • *
  • Posts: 22
  • Karma: 1
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #7 on: February 21, 2020, 01:24:01 am »
Hi,
Can you post the screen shot of the page of nat configuration, not only the line of the rule but the page with the configuration of the rule ?
and the list of domain that you have put in the alias ?

I have the same problem with squid but seems that i am unable to set correctly the aliases, the nat and the firewall roule .
« Last Edit: February 21, 2020, 03:24:26 am by AlexV »
Logged

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1358
  • Karma: 45
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #8 on: February 25, 2020, 09:10:52 am »
That are my 2 NAT Rules.
My Alias is a remote .txt file on a WebServer with the Microsoft Domains.
Logged
OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

AlexV

  • Newbie
  • *
  • Posts: 22
  • Karma: 1
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #9 on: February 26, 2020, 06:33:24 pm »
so in my rules  is the alias the problem, if i try to use ip address instead of domain can i solve the problem ?
Logged

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1358
  • Karma: 45
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #10 on: February 26, 2020, 06:40:20 pm »
Quote from: AlexV on February 26, 2020, 06:33:24 pm
so in my rules  is the alias the problem, if i try to use ip address instead of domain can i solve the problem ?
Take a screenshot of your Alias and Rules :)

Gesendet von meinem MI 9 mit Tapatalk

Logged
OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

AlexV

  • Newbie
  • *
  • Posts: 22
  • Karma: 1
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #11 on: February 27, 2020, 12:22:39 am »
Here there are mi alias... i suppose that  i have do a mistake with the alias of sistes i use a FQDN instead of ip address.
Logged

AlexV

  • Newbie
  • *
  • Posts: 22
  • Karma: 1
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #12 on: February 27, 2020, 12:23:52 am »
and here my nat configuration
Logged

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1358
  • Karma: 45
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #13 on: February 27, 2020, 05:41:32 am »
Quote from: AlexV on February 27, 2020, 12:23:52 am
and here my nat configuration
Looks good!

Try to change you Alias to "Hosts" and look under Firewall -> Diagnosis -> pftables if your Alias is showing IP addresses :)

Gesendet von meinem MI 9 mit Tapatalk

Logged
OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

AlexV

  • Newbie
  • *
  • Posts: 22
  • Karma: 1
    • View Profile
Re: "SSL no bump sites" doesn't work for Win Updates
« Reply #14 on: February 27, 2020, 05:12:59 pm »
Thank you.

now i will use HOST and the  Ip address  of fqdn domain are seen in pf tables  and i think that all will works fine

Best regards

A.V. 
« Last Edit: February 27, 2020, 05:22:43 pm by AlexV »
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • "SSL no bump sites" doesn't work for Win Updates
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2