OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 20.7 Legacy Series »
  • Transparent proxy with SSL
« previous next »
  • Print
Pages: [1]

Author Topic: Transparent proxy with SSL  (Read 3279 times)

samnet

  • Newbie
  • *
  • Posts: 42
  • Karma: 2
    • View Profile
    • Sam Networks
Transparent proxy with SSL
« on: August 21, 2020, 11:18:41 pm »
Dear All
I know this has been asked before but no one actually compared the transparent SSL mode that PFSense has where there is no need to add the CA in every client and can do transparent SSL with no extra install on each client.
How can we achieve this transparent SSL proxy without touching CA?
Logged
----------------------------
Breeding Open Source
M0n0wall -> PfSense -> OpnSense -> Make lots of sense

Fright

  • Hero Member
  • *****
  • Posts: 1582
  • Karma: 142
    • View Profile
Re: Transparent proxy with SSL
« Reply #1 on: August 22, 2020, 07:38:06 am »
Hi!
Can you please give more info about "transparent SSL mode that PFSense has where there is no need to add the CA in every client"?
Logged

siga75

  • Full Member
  • ***
  • Posts: 180
  • Karma: 11
    • View Profile
    • www.signorini.ch
Re: Transparent proxy with SSL
« Reply #2 on: August 22, 2020, 12:12:26 pm »
hmmmm how can you do transparent SSL proxy without using a CA for which you have the private key?
Logged
https://www.signorini.ch (please do hack me contest)
OPNsense 20.7 on
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet

samnet

  • Newbie
  • *
  • Posts: 42
  • Karma: 2
    • View Profile
    • Sam Networks
Re: Transparent proxy with SSL
« Reply #3 on: August 24, 2020, 10:59:00 pm »
Quote from: Fright on August 22, 2020, 07:38:06 am
Hi!
Can you please give more info about "transparent SSL mode that PFSense has where there is no need to add the CA in every client"?

of course there is splice option which I cant find it in opnsense.
Logged
----------------------------
Breeding Open Source
M0n0wall -> PfSense -> OpnSense -> Make lots of sense

samnet

  • Newbie
  • *
  • Posts: 42
  • Karma: 2
    • View Profile
    • Sam Networks
Re: Transparent proxy with SSL
« Reply #4 on: August 24, 2020, 10:59:53 pm »
Quote from: siga75 on August 22, 2020, 12:12:26 pm
hmmmm how can you do transparent SSL proxy without using a CA for which you have the private key?
forget this method, I just want to control url access even via https
Logged
----------------------------
Breeding Open Source
M0n0wall -> PfSense -> OpnSense -> Make lots of sense

Fright

  • Hero Member
  • *****
  • Posts: 1582
  • Karma: 142
    • View Profile
Re: Transparent proxy with SSL
« Reply #5 on: August 25, 2020, 06:32:13 am »
Quote from: samnet on August 24, 2020, 10:59:00 pm
of course there is splice option which I cant find it in opnsense.
ssl_bump is there
/usr/local/opnsense/service/templates/OPNsense/Proxy/squid.conf:
..
# setup ssl bump acl's
acl bump_step1 at_step SslBump1
acl bump_step2 at_step SslBump2
acl bump_step3 at_step SslBump3
acl bump_nobumpsites ssl::server_name "/usr/local/etc/squid/nobumpsites.acl"

# configure bump
{% if helpers.exists('OPNsense.proxy.forward.sslurlonly') and OPNsense.proxy.forward.sslurlonly == '1' %}
ssl_bump peek bump_step1 all
ssl_bump splice all
ssl_bump peek bump_step2 all
ssl_bump splice bump_step3 all
ssl_bump bump

{% else %}
ssl_bump peek bump_step1 all
ssl_bump peek bump_step2 bump_nobumpsites
ssl_bump splice bump_step3 bump_nobumpsites
ssl_bump stare bump_step2
ssl_bump bump bump_step3
{% endif %}
..

OPNsense.proxy.forward.sslurlonly is "Log SNI information only" flag in Forward Poxy GUI
Logged

Fright

  • Hero Member
  • *****
  • Posts: 1582
  • Karma: 142
    • View Profile
Re: Transparent proxy with SSL
« Reply #6 on: August 25, 2020, 08:15:33 am »
Quote from: samnet on August 24, 2020, 10:59:53 pm
forget this method, I just want to control url access even via https
and no. you can  not view requested url (if you mean exactly full url) without mitm. only tcp info, tls hello and sni info (if any).
Logged

samnet

  • Newbie
  • *
  • Posts: 42
  • Karma: 2
    • View Profile
    • Sam Networks
Re: Transparent proxy with SSL
« Reply #7 on: September 15, 2020, 10:54:49 pm »
Quote from: Fright on August 25, 2020, 08:15:33 am
Quote from: samnet on August 24, 2020, 10:59:53 pm
forget this method, I just want to control url access even via https
and no. you can  not view requested url (if you mean exactly full url) without mitm. only tcp info, tls hello and sni info (if any).
Im still not getting this right, do you mean its impossible to see full URLs without MITM?
is this a no go area at all?
I recall splice option in pfsense which used to slightly control https to some extend, is there a splice option in opnsense?
Logged
----------------------------
Breeding Open Source
M0n0wall -> PfSense -> OpnSense -> Make lots of sense

Fright

  • Hero Member
  • *****
  • Posts: 1582
  • Karma: 142
    • View Profile
Re: Transparent proxy with SSL
« Reply #8 on: September 15, 2020, 11:16:21 pm »
Quote
Im still not getting this right, do you mean its impossible to see full URLs without MITM?
no you can not view requested url (if you mean exactly full url) without mitm
Quote
is there a splice option in opnsense?
yes
see template 2 posts above
1st part for " Log SNI information only"  - splice
2nd - decode - bump
https://wiki.squid-cache.org/Features/SslPeekAndSplice

Logged

samnet

  • Newbie
  • *
  • Posts: 42
  • Karma: 2
    • View Profile
    • Sam Networks
Re: Transparent proxy with SSL
« Reply #9 on: September 16, 2020, 08:17:03 am »
thanks for clarification.
can you pls suggest any way for controlling URL access in a network with 100 desktops / laptops / mobiles many of them logging via Active Directory win2012

Logged
----------------------------
Breeding Open Source
M0n0wall -> PfSense -> OpnSense -> Make lots of sense

Fright

  • Hero Member
  • *****
  • Posts: 1582
  • Karma: 142
    • View Profile
Re: Transparent proxy with SSL
« Reply #10 on: September 16, 2020, 08:35:36 am »
its realy about company policy and client software requirements\restrictions imho
squid (transperent or via proxy settings via group policy or autoconfig) with or without kerberos auth with or without ssl-inspection (of course, if url control is needed, then ssl-inspection is required). all will work with pros and cons. it all depends on your imagination )
100 clients is not a big load. everything should work well
Logged

pmhausen

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 250
    • View Profile
Re: Transparent proxy with SSL
« Reply #11 on: September 16, 2020, 10:28:08 am »
Quote from: samnet on September 16, 2020, 08:17:03 am
thanks for clarification.
can you pls suggest any way for controlling URL access in a network with 100 desktops / laptops / mobiles many of them logging via Active Directory win2012
Get an AD integrated Proxy product, force proxy via group policy, deny Internet access for everyone but proxy on OPNsense.
Logged
Supermicro A2SDi-4C-HLN4F mainboard and SC101F chassis
16 GB ECC memory
Crucial MX300 275 GB SATA 2.5" plus
Crucial MX300 275 GB SATA M.2 (ZFS mirror)
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Transparent proxy with SSL
« Reply #12 on: September 17, 2020, 06:44:18 am »


Quote from: pmhausen on September 16, 2020, 10:28:08 am
Get an AD integrated Proxy product, force proxy via group policy, deny Internet access for everyone but proxy on OPNsense.

Squid can handle Windows Login if needed.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 20.7 Legacy Series »
  • Transparent proxy with SSL
 

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