Skip to content

HTTP content comparison for captive portals #16

Open

Description

@jonesmz

I have a situation where my OpenWRT device might be deployed behind a captive portal style firewall, which will intercept TCP traffic and redirect, but won't intercept ICMP.

I'd like to have the ONLINE status of an interface be the logical AND of all configured protocols.

Is this practical?

Activity

  1. br101 commented on Aug 1, 2020

    @br101
    Owner

    Yes would be possible but unlikely i implement it in the next couple of months...

  2. jonesmz commented on Aug 1, 2020

    @jonesmz
    Author

    I will try my hand at implementing support for this.

    Can you give me some suggestions on how an "acceptable to merge" pull request would look from your perspective?

  3. br101 commented on Feb 22, 2021

    @br101
    Owner

    Hmm, thinking about it I don't really understand the requirement. If the captive portal doesn't block ICMP it would go thru and you can check if you are online "theoretically" (independent if the captive portal blocks TCP or not). If the portal always redirects TCP traffic, what do you gain by testing for TCP as well (it will always be positive)? Maybe I misunderstand but I'd like to make sure the feature is useful if i spend time implementing it

  4. jonesmz commented on Feb 22, 2021

    @jonesmz
    Author

    I'm no longer involved in the project that this feature request was opened on behalf of, and no longer intend to work on this feature.

    But to clarify my meaning here, my objective was to take the code that was added for this feature request, and enhance it to allow for checking a full http connection with content comparison. E.g. check the public Google or Mozilla captive portal check pages against a static string in the config file.

    The reason for wanting this to be done at the level of the pingcheck program is to allow for the event that gets generated when the complex-ping fails to drive higher level program behaviour. E.g. I wanted one centrally located place to say "This connection is able to support general purpose traffic".

  5. br101 commented on Feb 23, 2021

    @br101
    Owner

    Yes that would make sense. Changed the title accordingly.

  6. changed the title [-]Possible to use both ICMP and TCP on same interface?[/-] [+]HTTP content comparison for captive portals[/+] on Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions