OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Captive Portal with Blacklisting WEbsites
« previous next »
  • Print
Pages: [1]

Author Topic: Captive Portal with Blacklisting WEbsites  (Read 3958 times)

gaurovsoni

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
Captive Portal with Blacklisting WEbsites
« on: March 09, 2017, 07:38:40 am »
> Having a single interface LAN

> Captive Portal Is RUNNING AWESOME in LAN Interface
      Allowed Addresses - 8.8.8.8 / 8.8.4.4
      Transparent proxy (HTTP) - UNCHECKED
      Transparent proxy (HTTPS) - UNCHECKED

> No WEB PROXY configured

AIM - I just want my users to have restriction to certain website like social networking, porn, etc etc (i have blacklist)

The Real Problem -

1> if i enable WEB PROXY [Default, no settings], & then goto captive portal & check the boxes to use transparent proxy (http/https), the captive portal stops working - no redirection, manual redirection lets to no internet working after login.

2> if i enable WEB PROXY [With Transparent Mode Setting USING OFFICIAL GUIDE] the portal becomes unstable , even i cannot login to LAN using WEBUI, it keeps on scanning. bt I can ssh.


Please Check Attachment as well

Logged

gaurovsoni

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
Re: Captive Portal with Blacklisting WEbsites
« Reply #1 on: March 09, 2017, 07:39:47 am »
One More Attachment
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13614
  • Karma: 1170
    • View Profile
Re: Captive Portal with Blacklisting WEbsites
« Reply #2 on: March 09, 2017, 07:46:05 am »
Hi there,

You have two possibilities...

For 1) You need to set up transparent proxy without the redirect NAT rule and then set the captive portal setting. If the transparent proxy mode is not enabled, the traffic will be rejected like you said.

For 2) You can probably get this working by setting Firewall: Settings: Advanced: [ x ] Shared forwarding. But this setting may have other side effects. Use with care.


Cheers,
Franco
« Last Edit: March 09, 2017, 07:54:01 am by franco »
Logged

gaurovsoni

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
Re: Captive Portal with Blacklisting WEbsites
« Reply #3 on: March 09, 2017, 07:52:14 am »
the ANS 1) option looks sensible, without NAT setting, ill try and let u know thanks.
Logged

gaurovsoni

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
Re: Captive Portal with Blacklisting WEbsites
« Reply #4 on: March 09, 2017, 11:08:05 am »
ok the problem is solved of using CAPTIVE PORTAL with TRANSPARENT proxy, thanks man,

but somehow im stuck with a new problem :"(

New Problem :
 i open distrowatch.com >> redirected to portal >> login >> then im stuck on logout screen, the internet is working, bt it does'nt redirect me to distrowatch. com . i have to manually open another tab & then go to distrowatch.com :'( any idea
« Last Edit: March 09, 2017, 11:18:34 am by gaurovsoni »
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Captive Portal with Blacklisting WEbsites
« Reply #5 on: March 09, 2017, 11:33:47 am »
This comes from the template. It is not doing an redirect but you can use a custom template.
Logged

gaurovsoni

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
Re: Captive Portal with Blacklisting WEbsites
« Reply #6 on: March 09, 2017, 11:52:24 am »
no man , earlier it was redirecting to https website & http websites like distrowatch on CUSTOM & DEFAULT (none) Template . now me manually have to redirect :'( on default template none as well.
Logged

ackahforson

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
    • View Profile
Re: Captive Portal with Blacklisting WEbsites
« Reply #7 on: March 10, 2017, 08:35:54 pm »
I have a similar setup, after the work around to make CP and webproxy work, the login page fails to redirect .
Logged

gaurovsoni

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
Re: Captive Portal with Blacklisting WEbsites
« Reply #8 on: March 12, 2017, 02:09:57 pm »
can some1 please tell me how to work with https with captive portal... with transparent ssl proxy captive portal seems not to work
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Captive Portal with Blacklisting WEbsites
 

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