PDA

View Full Version : [SOLVED] Restricting HTTPS Websites with exceptional sites



psrdotcom
September 13th, 2011, 07:48 AM
Hi all,

I am trying to allow only specific websites.

With the combo of Dansguardian, TinyProxy, Firehol; I was able to control the http websites.

But as everyone know, Danguardian won't restrict the HTTPS websites.

I want to restrict all HTTPS with some exceptional HTTPS websites.

Can anybody please help me to resolve this issue?

Thanks in advance.

psrdotcom
September 16th, 2011, 05:43 AM
I tried IPkungfu to block the ports and I had a success with it except HTTPS blocking.

SeijiSensei
September 16th, 2011, 03:31 PM
I want to restrict all HTTPS with some exceptional HTTPS websites.

Use iptables rules like these:



iptables -A INPUT -p tcp -d ip.addr.ok.site1 --dport 443 -j ACCEPT
iptables -A INPUT -p tcp -d ip.addr.ok.site2 --dport 443 -j ACCEPT
[...]
iptables -A INPUT -p tcp -d ip.addr.ok.siteN --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j DENY


Replace "ip.addr.ok.siteX" with the IP addresses of the sites you wish to permit.

psrdotcom
September 17th, 2011, 08:09 AM
Thanks for the help. I will try and let you know the status.

psrdotcom
September 23rd, 2011, 12:17 PM
I can't guarantee that, one website will use same server for long time. The IP addresses may get changed. Please suggest me in this.

I want to restrict all Secure(HTTPS) websites except few Secure(HTTPS) sites.

Please help me.

psrdotcom
June 1st, 2012, 12:01 PM
Hi,

Issue was solved. I re-configured the Tinyproxy, Dansguardian and Firehol with proper settings.