Results 1 to 6 of 6

Thread: Restricting HTTPS Websites with exceptional sites

  1. #1
    Join Date
    Sep 2011
    Location
    India
    Beans
    123
    Distro
    Ubuntu 12.04 Precise Pangolin

    Restricting HTTPS Websites with exceptional sites

    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.

  2. #2
    Join Date
    Sep 2011
    Location
    India
    Beans
    123
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Restricting HTTPS Websites with exceptional sites

    I tried IPkungfu to block the ports and I had a success with it except HTTPS blocking.

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    11,371
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Restricting HTTPS Websites with exceptional sites

    Quote Originally Posted by psrdotcom View Post
    I want to restrict all HTTPS with some exceptional HTTPS websites.
    Use iptables rules like these:

    Code:
    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.

  4. #4
    Join Date
    Sep 2011
    Location
    India
    Beans
    123
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Restricting HTTPS Websites with exceptional sites

    Thanks for the help. I will try and let you know the status.

  5. #5
    Join Date
    Sep 2011
    Location
    India
    Beans
    123
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Restricting HTTPS Websites with exceptional sites

    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.

  6. #6
    Join Date
    Sep 2011
    Location
    India
    Beans
    123
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Restricting HTTPS Websites with exceptional sites

    Hi,

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •