Ignore:
Timestamp:
Jan 23, 2017, 5:26:28 PM (8 years ago)
Author:
rick
Message:

Fixing HTTPS allowance without accepting the terms.

From a node PoV the traffic from the client to the internet is flowing
inbound on the captive portal interfaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-11/nanobsd/files/etc/pf.hybrid.conf

    r13724 r13772  
    7171
    7272# By default deny all outgoing traffic to avoid systems spamming the network (9)
    73 block out on { $captive_portal_interfaces } from any to !$wl_net
     73block in on { $captive_portal_interfaces } from any to !$wl_net
     74
     75# Quickly drop out, with nice return value, avoiding endless connections on portal setup (6)
     76block return in quick on { $captive_portal_interfaces } proto tcp from !<wlportal> to !$wl_net port { $publicnat }
    7477
    7578# Note: not even HTTPS traffic allowed for those who has not clicked OK yet (6)
    76 pass out on { $captive_portal_interfaces } proto tcp from <wlportal> to !$wl_net port { $publicnat } keep state
     79pass in on { $captive_portal_interfaces } proto tcp from <wlportal> to !$wl_net port { $publicnat } keep state
    7780
    7881# External interface is permissive (4)
Note: See TracChangeset for help on using the changeset viewer.