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

    block pfsense GUI access via ip allow only domain name

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 4 Posters 431 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.
    • R
      rick_alone
      last edited by

      I want to disable GUI acccess to my pfsense using ip address such as 66.11.245.1 instead I want to allow only domain name for example test.com can someone help me with that ?Any solutions for it ?thank you

      V johnpozJ 2 Replies Last reply Reply Quote 0
      • V
        viragomann @rick_alone
        last edited by

        @rick_alone
        For security reasons you should better consider to setup a VPN server and totally disable access to the GUI from WAN.

        1 Reply Last reply Reply Quote 2
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @rick_alone
          last edited by

          @rick_alone huh? you mean you want to allow a fqdn that changes? An fqdn resolves to an IP.. How would you deny access if they use an IP vs the fqdn that resolves to the IP.. You would actually connect via the IP..

          Not sure on what exactly your trying to accomplish.

          If your test.com resolves to 66.11.245.1 that is the IP you would be connecting too.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          R 1 Reply Last reply Reply Quote 0
          • R
            rick_alone @johnpoz
            last edited by

            @johnpoz Ekran görüntüsü 2024-01-09 174800.png Ekran görüntüsü 2024-01-09 174906.png

            I want to disable that login with ip or redirect to https when someone type my pfsense ip

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @rick_alone
              last edited by johnpoz

              @rick_alone You really can not prevent access via IP.. But redirection to https would be set here.

              redirect.jpg

              Do you have this set to disabled? Do you have your gui set to https? See top of screenshot.

              I am not aware of setting like a host hearder rule where the httpd doesn't present the page unless the host header matches something like you can do in say haproxy..

              You might be able to put the web gui behind the haproxy? Your not opening up your gui to the public internet are you.. That is bad juju even if you could/did limit access to knowing the fqdn..

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 1
              • provelsP
                provels
                last edited by provels

                Would HTTPS in a key-only SSH tunnel work? ( I can put acronyms together!)

                I use a VPN myself.

                Peder

                MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @provels
                  last edited by

                  @provels yeah the best way to access pfsense gui while remote would be via a vpn. But it openvpn, ipsec, wireguard, tailscale - or sure a ssh tunnel via say public key auth would be what ya call it a poor mans vpn ;)

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

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