Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [Solved] Allow Ports

    Scheduled Pinned Locked Moved Captive Portal
    6 Posts 2 Posters 878 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      omarmohammed
      last edited by

      Hello, i'd like to allow those ports through captive portal :

      53 UDP
      138 UDP
      137 UDP
      389 UDP TCP
      88 TCP
      445 TCP
      139 TCP
      135 TCP

      and from 49152 to 65535 TCP and UDP

      i tried to put the (attachement file) just before the redirect rule in pfsense captiveportal.inc

      is it correct ?

      [Nouveau document texte (3).txt](/public/imported_attachments/1/Nouveau document texte (3).txt)

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        You cannot allow specific ports through the portal pre-authentication.

        You can only allow access to specific IP addresses pre-authentication.

        post-authentication all traffic should flow based on the firewall rules on the interface.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • O
          omarmohammed
          last edited by

          are u sure ??? even by modifying the captiveportal.inc file ??

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            Well, feel free but I'm not getting involved. If it's not working you did it wrong.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • O
              omarmohammed
              last edited by

              i did it like in this : https://forum.pfsense.org/index.php?topic=79229.0
              https://forum.pfsense.org/index.php?topic=69499.0

              1 Reply Last reply Reply Quote 0
              • O
                omarmohammed
                last edited by

                Solved, i should have used the other form : $cprules .= captiveportal_create_ipfw_rule

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.