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

Allowing webGUI from one ip/mac address on LAN

Scheduled Pinned Locked Moved webGUI
14 Posts 4 Posters 2.8k 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.
  • ?
    A Former User
    last edited by May 16, 2017, 6:26 PM

    Is there a setting to only allow webGUI access from a specific ip/mac address? Or is a firewall rule needed?

    –Thanks

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by May 16, 2017, 6:46 PM

      The antilock rule would allow all from lan.. If you want to limit to specific machines you would need to disable the antilock out rule and put in a specific rule to only allow the IPs you want.

      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 0
      • ?
        A Former User
        last edited by May 16, 2017, 7:17 PM

        Will this work? I don't want to get locked out for trying this.

        States            Protocol      Source            Port    Destination      Port                  Gateway  Queue  Schedule  Description
          (allow)  0 /0 B              IPv4 TCP    192.168.0.3  *          This Firewall    443 (HTTPS)    *                *                                WebGUI
          (allow)  10 /3.78 GiB  IPv4 *          LAN net          *          *                          *                          *                none                        Default allow LAN to any rule

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by May 16, 2017, 8:09 PM

          States  Protocol    Source        Port  Destination    Port                  Gateway  Queue  Schedule  Description
            (allow)  0 /0 B  IPv4 TCP  GUIadmins  *        This Firewall  443 (HTTPS)  *                none                        WebGUI Access
            (allow)  0 /0 B  IPv4 *        LAN net        *        *                        *                        *                none                        Default allow LAN to any rule

          This seems to work. GUIadmins is an alias with host ip of my workstation.

          1 Reply Last reply Reply Quote 0
          • N
            NOYB
            last edited by May 16, 2017, 8:20 PM

            @louisg00:

            States  Protocol    Source        Port  Destination    Port                  Gateway  Queue  Schedule  Description
              (allow)  0 /0 B  IPv4 TCP  GUIadmins  *        This Firewall  443 (HTTPS)  *                none                        WebGUI Access
              (allow)  0 /0 B  IPv4 *        LAN net        *        *                        *                        *                none                        Default allow LAN to any rule

            This seems to work. GUIadmins is an alias with host ip of my workstation.

            That certainly will allow alright.  ;)

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User
              last edited by May 16, 2017, 8:24 PM

              I tried with another workstation and did not block access. Do I need another rule blocking access to everyone for the webGUI?

              1 Reply Last reply Reply Quote 0
              • N
                NOYB
                last edited by May 16, 2017, 8:29 PM

                @louisg00:

                I tried with another workstation and did not block access. Do I need another rule blocking access to everyone for the webGUI?

                Well if there is no rule that blocks the undesirables ahead of a pass all rule.  Then all will be passed.

                If may be helpful to know why you are trying to do this.  It is not very typical for LAN side.  Most people probably find authentication sufficient for the LAN side.

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by May 16, 2017, 9:01 PM

                  Some Blackhat conference that described dns binding and spoofing to get to the routers admin page from the WAN. All the LAN systems do not need to access the admin page except mine to just to be safe.

                  Ok added a block rule.

                  States  Protocol    Source        Port  Destination    Port                  Gateway  Queue  Schedule  Description
                    (block)  0 /0 B  IPv4+6      LAN net        *      This Firewall  *                        *                none                        Block router access
                    (allow)  0 /0 B  IPv4 TCP  GUIadmins  *      This Firewall  443 (HTTPS)  *                none                        WebGUI access
                    (allow)  0 /0 B  IPv4 *        LAN net        *      *                      *                        *                none                        Default allow LAN to any rule

                  1 Reply Last reply Reply Quote 0
                  • N
                    NOYB
                    last edited by May 16, 2017, 9:21 PM

                    @louisg00:

                    Some Blackhat conference that described dns binding and spoofing to get to the routers admin page from the WAN. All the LAN systems do not need to access the admin page except mine to just to be safe.

                    Sounds like la-la-land to me.  Even if able to get to the admin page, authentication is still required plus any login attempt, failed or successful, is shown on the console and in the log too I believe.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by May 16, 2017, 9:25 PM

                      Opps this just blocked my out completely. How can I undo this that rule from the console?

                      1 Reply Last reply Reply Quote 0
                      • N
                        NOYB
                        last edited by May 16, 2017, 9:27 PM

                        @louisg00:

                        Opps this just blocked my out completely. How can I undo this that rule from the console?

                        That's funny because I was just thinking you'll probably block yourself out dozens of times before ever blocking out even one packet originating from the WAN side with this.

                        Restore a recent config.

                        1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User
                          last edited by May 17, 2017, 12:29 AM

                          ok I think I got it;

                          States  Protocol        Source        Port  Destination    Port                  Gateway  Queue  Schedule  Description
                            (allow)  0 /0 B  IPv4 TCP      GUIadmins  *      This Firewall  Management  *              none                        WebGUI access
                            (block)  0 /0 B  IPv4+6 TCP  *                    *      This Firewall  Management  *              none                        Block management access
                            (allow)  0 /0 B  IPv4 *            LAN net      *      *                        *                          *              none                        Default allow LAN to any rule

                          One thing, what is the difference between LAN net and any? I only have one subnet on LAN interface on one on OPT1 interface with the WAN port.

                          -Thanks

                          1 Reply Last reply Reply Quote 0
                          • N
                            NOYB
                            last edited by May 17, 2017, 12:39 AM

                            @louisg00:

                            One thing, what is the difference between LAN net and any?

                            Any is just that.  anything (0.0.0.0 - 255.255.255.255)
                            LAN net is anything within the LAN net.  x.x.x.x/n

                            1 Reply Last reply Reply Quote 0
                            • P
                              phil.davis
                              last edited by May 17, 2017, 1:40 AM

                              On an ordinary LAN, all the devices should have IP addresses in LANnet (the LAN subnet defined by the pfSense LAN IP/CIDR). In any case, the firewall is only going to receive and respond usefully to devices in LANnet. So packets in LANnet are all that needs to be passed.

                              If you have a more complex setup for some reason, that has other private subnets reached via static routes to another router that is on LANnet, then pfSense LAN could receive packets with source addresses that are not in LANnet. So for that case you need a pass rule wider than just LANnet to let traffic through.

                              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                              1 Reply Last reply Reply Quote 0
                              1 out of 14
                              • First post
                                1/14
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                This community forum collects and processes your personal information.
                                consent.not_received