Regarding SSL

Issues related to configuring your network
Post Reply
itdev
Posts: 18
Joined: 2015/09/04 10:02:35

Regarding SSL

Post by itdev » 2015/10/09 09:30:49

Hi every one,
Good Day to All!

This is the scenario...

" I have a LAN with centos server.
Except for the server all others are running windows 7. I want to block access to facebook from those computers with windows 7, and if someone enters "www.facebook.com" from those computers, they should be redirected to a page running on my centos server (ip of the centos server is 192.168.0.199). What I did for that is, I added the following lines to the hosts file (at C:\Windows\system32\drivers\etc\hosts) on all windows 7 computers in the LAN.

192.168.0.199 http://www.facebook.com


Now, if I type http://www.facebook.com on those systems, I get the following message...

"This Connection is Untrusted

You have asked Firefox to connect securely to http://www.facebook.com, but we can't confirm that your connection is secure.

Normally, when you try to connect securely, sites will present trusted identification to prove that you are going to the right place. However, this site's identity can't be verified.
What Should I Do?

If you usually connect to this site without problems, this error could mean that someone is trying to impersonate the site, and you shouldn't continue.

This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox only connect to it securely. As a result, it is not possible to add an exception for this certificate.

http://www.facebook.com uses an invalid security certificate.

The certificate is not trusted because it is self-signed.
The certificate is only valid for mysite

(Error code: sec_error_unknown_issuer)"


I heard that it was an SSL issue and so I made self-signed SSL using OpenSSL.Its working fine when I enter https://mysite/ but i not able to redirect to that page.

Kindly someone suggest me how to redirect such URL to mysite custom page on LAN.

Its very urgent. Please someone help me..

Thanks in advance.

MartinR
Posts: 714
Joined: 2015/05/11 07:53:27
Location: UK

Re: Regarding SSL

Post by MartinR » 2015/10/09 09:49:07

Do be aware that redirecting in this way will not stop anyone using an IP address directly.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Regarding SSL

Post by TrevorH » 2015/10/09 11:06:54

What you're trying to do has no easy solution. If you create a man in the middle SSL connection like this and use your own self signed cert to spoof the end site then you'd need to trust the issuer of your cert on the client and then all SSL connections will be trusted, even those that shouldn't be. You're going to break SSL completely and make it useless.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

itdev
Posts: 18
Joined: 2015/09/04 10:02:35

Re: Regarding SSL

Post by itdev » 2015/10/09 13:18:45

ok..thank you for your time and information..

Post Reply