I configured HTTPS introducion but people still go HTTPS facebook

  • A few months ago my users cant login to facebook via https

    but now they can connect, i deleted and added something, i played with it but i cant figure out

    i dont want to any people go sign in with HTTPS and i want block facebook, youtube pages with HTTPS

    here is my screenshots



    is there any tutorial with updated IP or subject ? how to block pfsense https tunnel ?

    thank you

  • Banned

    No, you still cannot meaningfully block facebook by blocking IPs. Stop wasting your time.

  • You can white list, which is draconian, or you can unplug the internet which is equally draconian or you can crack knuckles with a ruler when people visit facebook, if its a school or business or something.

    Sometimes giving up is the correct choice though.

  • Hi,

    I used this list:

    Updated list as of 6/11/2013

    make an alias, - block list


    From what i read, what i tryied, you can' filter https content in transparent proxy ( if u are using squid).

    1. install squid and squidguard

    you can block everthing you want but not https:


    block or allow in categories. Create a special category that you want to block: all social network. ( put inside facebook.com twitter.com youtube.com ) . Read documentation […]

    1. add an alias in firewall settings - ex: facebook and block it in rules.

    That-s it. And take a look how the address are written  / 24  /19.


  • You can also set up DNS with OpenDNS or DynDNS and they have settings within their service to block social media and other things that it might be a pain to do inside a firewall.

  • Or you could always put up (wildcard) domain overrides on the dns forwarder to

  • here is the latest view admin panel about blocking facebook



    do i need put more facebook IPS and CIDR ?

    i am using squid and squidguard.

    how i will able to make an alias ? i am newbie lil

    thank you

  • You are never going to get there this way…
    Please give the DNS option a shot.

  • 1 - Only if u want to block all :) facebook ip address

    2. First picture show how facebook is blocked by squidguard categories: so all page from facebook.com are blocked.

    2. rest block by ip

    Spor la treaba!

  • @kejianshi:

    You are never going to get there this way…
    Please give the DNS option a shot.

    ok.. try it ..

    but ..  https://de-de.facebook.com/‎

    Bienvenido a Facebook en Español (España)!

    are working if u put by dns? yes it works. so you want to put all subdomain?

    Ofcourse you now that subdomain.facebook.com is not the same like facebook.com

  • here is the DNS shot

    and computers DNS i put (my pfsense ip)


    any idea ?


  • Yeah - get yourself a free opendns account or DynDNS account.  Set up the dynamic DNS client in the pfsense menu.  Then put the DNS server IPs for the free account you set up in there in place of the IPs you currently have.  Uncheck the "Allow DNS list to be overridden" block.  Save that.  Then go into either the opendns account or DynDNS account you set up online.  Login.  Change your DNS options to filter whatever you like.

    Next, you will have to make sure that all of your client machines use ONLY pfsense to get their DNS.  That is done from the settings on each machine separately.  After all this is working, you can set up some rules that block the clients from getting to port 53 on any machine other than pfsense.

    GruensFroeschli also mentioned DNS overrides.  Not sure what he had in mind, but his idea may also be doable.

  • kejianshi i did what you say and now it works.

    thank you guys!

  • Ahhhh - Good.  I did write up how to do that a while ago, but virtually no one even looked at it.  I figured there was no interest.
    Yeah.  It worked for me too that way, but I really don't need the filtering now so I just run straight untampered DNS these days.

  • @kejianshi:

    GruensFroeschli also mentioned DNS overrides.  Not sure what he had in mind, but his idea may also be doable.

    On the DNS forwarder page you can create a wildcard override as described here.

    If you override *.facebook.com to this should essentially block facebook.

  • Would it be possible to override them and redirect to a specified HTTPS page that says something like "That page isn't allowed" or whatever?

  • Sure. As long as the webserver to which you resolve the domain to provides a page for this domain.

  • I was thinking maybe such a page could be rolled into a package for pfsense somewhere, perhaps in an add on package.  The idea being that you could use such a DHCP redirect to catch all the filtering that squid based filtering misses - pretty much just the https stuff.  Having a block/filter terminate in a pretty page makes admins smile.

    I suppose such a page might even have to rest on the open web if 443 was already in use on pfsense.

    Maybe just something that says "I'm sorry - Your administrator doesn't allow access to this site"

    Followed by a series of banner ads to pay for bandwidth.  haha

  • I realize this is a fairly dead thread, but it was one that came up when I was googling the topic.

    My solution was a cross between a number of the ones given.

    I made a wildcard DNS for the site youtube.com and pointed it to one youtube server:
    (look up a current server instead of using this IP)

    We have a rule to block https to that ip, and then we use squid-guard to limit youtube access during working-hours.

    That seems to be working for the moment.

    the down-side is that we will need to update our rules if that particular youtube server goes down…

  • Also ignoring that you broke HTTPS in the process. You can't proxy HTTPS without breaking its security. Many exploits have been done around this, like forcing Windows update to install Malware. Amazing what you can do when you tell clients to trust fake CAs.

Log in to reply