ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    UBNT EdgeRouter LAN Config Issue

    IT Discussion
    7
    105
    8.0k
    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.
    • K
      krisleslie
      last edited by krisleslie

      Good morning all!

      I wanted to run this by the Mangolassi team first πŸ˜› . So over the weekend, I determined that our router was compromised. Scott, this answers a lot of questions that we have been wondering for months! So I determined that after my assistant set up the router he never changed the default password (I know what you wanna say trust me). Well our router got probed, and eventually, someone set up a shadow process.

      I worked with UBNT support and here is what I got told:
      EdgeOS uses rsyslogd that runs as root, not syslogd that runs as an unprivileged user ('ubnt' here). This is likely a malicious executable that was installed after a compromise.

      So, to fix the issue, we have reset the router to defaults and reconfigured it by CLI. Which now that I feel a little more comfortable with it, I don't see a point in some cases for using the GUI. Upon review of the config my assistant used, we noticed a configuration that I'm not sure about.

      ethernet eth1 {                                                             
          address 10.10.2.1/22                                                    
          address 10.10.3.1/22                                                    
          address 10.10.4.1/22                                                    
          description Local                                                       
          duplex auto                                                             
          poe {                                                                   
              output off                                                          
          }                                                                       
          speed auto
      

      So just to give a little backstory, we are 100% virtualized for our servers. Our Active Directory server also is the host for dns and dhcp scopes. We have a super scope of 10.10.0.1 through 10.10.4.254. I'm not sure if the EdgeMax should have all 3 ip's on one interface. That raised a few questions from people at UBNT forums. What exactly is that "doing" in a case like this? As I'm under the impression all the work should be done with the Windows Server handling the scope.

      As I dig a little deeper, this issue seems to get worse and worse. When I open up the DHCP Manager, we have the superscope setup. However, for the router properties, he programmed 10.10.2.1, 10.10.3.1, 10.10.4.1, 8.8.8.8, 4.2.2.2. UMM excuse me for not paying attention to this sooner, but why would the DNS servers be in the router option on Windows Server?

      To be honest, this is making me wanna throw up 😞 Yes I know about the .loc (I walked out the room when this was set up to my disgust.) What's happening is, if anyone uses for instance the wireless and it goes over to the 10.10.4.x network, they can't get online. So no big deal I know it's just not talking to 10.10.4.1. I'm not sure how or rather WTF would cause that at this point other than this config.

      0_1512409258413_2017-12-04_11h32_22.png

      0_1512409287813_2017-12-04_11h33_12.png

      0_1512409294721_2017-12-04_11h33_31.png

      J 3 Replies Last reply Reply Quote 0
      • S
        scottalanmiller
        last edited by

        That can't be right. 10.10.2.1/22 is inclusive of those other ranges. Those are overlapping address assignments.

        J 1 Reply Last reply Reply Quote 3
        • S
          scottalanmiller
          last edited by

          The GUI is fine, just set it up for internal use and not available to the outside.

          1 Reply Last reply Reply Quote 2
          • J
            JaredBusch @krisleslie
            last edited by

            @krisleslie said in UBNT EdgeRouter LAN Config Issue:

            So, to fix the issue, we have reset the router to defaults and reconfigured it by CLI.

            This will not clean your router. A reset does not nuke everything.

            The only proper way to know you have a clean router is to use the EMRK process that totally wipes your flash drive.

            https://help.ubnt.com/hc/en-us/articles/204959514-EdgeRouter-Last-resort-recovery-of-failed-EdgeOS-device

            K 1 Reply Last reply Reply Quote 2
            • J
              JaredBusch @scottalanmiller
              last edited by JaredBusch

              @scottalanmiller said in UBNT EdgeRouter LAN Config Issue:

              That can't be right. 10.10.2.1/22 is inclusive of those other ranges. Those are overlapping address assignments.

              It is overlapping, and makes little sense. But there are valid cases for having more than one IP on a port. Just not in overlapping ranges.

              I have one site with a LAN setup like this.

              ethernet eth1 {                                                             
                  address 10.1.1.1/24                                                    
                  address 10.204.1.1/24     
              

              @krisleslie I find this CIDR calculator useful: http://www.subnet-calculator.com/cidr.php
              0_1512408962828_c54d0e4d-4d86-44ca-bc4a-9d232b4c1b7e-image.png

              1 Reply Last reply Reply Quote 1
              • J
                JaredBusch @krisleslie
                last edited by

                @krisleslie said in UBNT EdgeRouter LAN Config Issue:

                As I dig a little deeper, this issue seems to get worse and worse. When I open up the DHCP Manager, we have the superscope setup. However, for the router properties, he programmed 10.10.2.1, 10.10.3.1, 10.10.4.1, 8.8.8.8, 4.2.2.2. UMM excuse me for not paying attention to this sooner, but why would the DNS servers be in the router option on Windows Server?

                Yeah, that is pretty bad. If anything you set DHCP to be either the WIndwos DNS or the router and then you let the router's forwarder be the Windows DNS server.

                1 Reply Last reply Reply Quote 0
                • K
                  krisleslie
                  last edited by

                  @jaredbusch said in UBNT EdgeRouter LAN Config Issue:

                  It is overlapping, and makes little sense. But there are valid cases for having more than one IP on a port. Just not in overlapping ranges.

                  How do you post photos? I have a few I need to show.

                  J D 2 Replies Last reply Reply Quote 0
                  • J
                    JaredBusch @krisleslie
                    last edited by JaredBusch

                    @krisleslie said in UBNT EdgeRouter LAN Config Issue:

                    @jaredbusch said in UBNT EdgeRouter LAN Config Issue:

                    It is overlapping, and makes little sense. But there are valid cases for having more than one IP on a port. Just not in overlapping ranges.

                    How do you post photos? I have a few I need to show.

                    I simply paste them in from clipboard. Or you use this button.
                    0_1512409243445_234089ad-3d91-427d-8230-e1261c197263-image.png

                    1 Reply Last reply Reply Quote 1
                    • D
                      dbeato @krisleslie
                      last edited by

                      @krisleslie said in UBNT EdgeRouter LAN Config Issue:

                      @jaredbusch said in UBNT EdgeRouter LAN Config Issue:

                      It is overlapping, and makes little sense. But there are valid cases for having more than one IP on a port. Just not in overlapping ranges.

                      How do you post photos? I have a few I need to show.

                      When posting use this and upload them.
                      0_1512409233368_2017-12-04_1240.png

                      1 Reply Last reply Reply Quote 1
                      • K
                        krisleslie @JaredBusch
                        last edited by krisleslie

                        @jaredbusch said in UBNT EdgeRouter LAN Config Issue:

                        @krisleslie said in UBNT EdgeRouter LAN Config Issue:

                        So, to fix the issue, we have reset the router to defaults and reconfigured it by CLI.

                        This will not clean your router. A reset does not nuke everything.

                        The only proper way to know you have a clean router is to use the EMRK process that totally wipes your flash drive.

                        https://help.ubnt.com/hc/en-us/articles/204959514-EdgeRouter-Last-resort-recovery-of-failed-EdgeOS-device

                        Brother thank you, I will go head and do this on downtime since the CLI wasn't as hard as I imagined. Thanks. I also posted some new photos in the original post.

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          JaredBusch @krisleslie
                          last edited by

                          @krisleslie said in UBNT EdgeRouter LAN Config Issue:

                          @jaredbusch said in UBNT EdgeRouter LAN Config Issue:

                          @krisleslie said in UBNT EdgeRouter LAN Config Issue:

                          So, to fix the issue, we have reset the router to defaults and reconfigured it by CLI.

                          This will not clean your router. A reset does not nuke everything.

                          The only proper way to know you have a clean router is to use the EMRK process that totally wipes your flash drive.

                          https://help.ubnt.com/hc/en-us/articles/204959514-EdgeRouter-Last-resort-recovery-of-failed-EdgeOS-device

                          Brother thank you, I will go head and do this on downtime since the CLI wasn't as hard as I imagined. Thanks. I also posted some new photos in the original post.

                          Do that, then run the Basic Wizard in the GUI.

                          Then configure the rest as needed.

                          1 Reply Last reply Reply Quote 2
                          • K
                            krisleslie
                            last edited by krisleslie

                            My thought process is to at the end of business day, disable those scopes, rebuild them, reboot equipment and then confirm things work as intended.

                            I assume I need to build a new super scope and properly put in 10.10.0.0/22 and define each scope. I'm getting 0 issues from my 10.10.2.x scope and 10.10.3.x scope. However the 10.10.4.x yea that is where all the problems are ( that I know of).

                            1 Reply Last reply Reply Quote 0
                            • J
                              JaredBusch @krisleslie
                              last edited by

                              @krisleslie Just WTF is going on there.. After looking at your Windows DHCP I am just confused.

                              What is your network scope in reality because this just hurts.

                              I think you main netwokr is 10.10.0.0/22

                              And your wireless seems to be 10.10.4.0/24

                              Is this right?

                              What LAN IP should all of your systems have for their gateway?

                              DashrenderD K 2 Replies Last reply Reply Quote 0
                              • DashrenderD
                                Dashrender @JaredBusch
                                last edited by

                                @jaredbusch said in UBNT EdgeRouter LAN Config Issue:

                                @krisleslie Just WTF is going on there.. After looking at your Windows DHCP I am just confused.

                                What is your network scope in reality because this just hurts.

                                I think you main netwokr is 10.10.0.0/22

                                And your wireless seems to be 10.10.4.0/24

                                Is this right?

                                What LAN IP should all of your systems have for their gateway?

                                Yep, I see a total cluster there.

                                Does he even need SuperScopes there?

                                1 Reply Last reply Reply Quote 0
                                • K
                                  krisleslie @JaredBusch
                                  last edited by

                                  @jaredbusch this is just one of those times in life I wish I never let someone fiddle with the networking. All I can say is im thankful it β€œworked” somewhat but I do see that my concerns weren’t fake, they were real.

                                  Now I’ve found after reviewing the port forwarding that RDP was open 😩 guys im not a network guru, but i know RDP shouldnt be open on the internet. Now I have more fires to put out.

                                  @scottalanmiller is it too late for a flamming dr pepper?

                                  S 1 Reply Last reply Reply Quote 3
                                  • S
                                    scottalanmiller @krisleslie
                                    last edited by

                                    @krisleslie said in UBNT EdgeRouter LAN Config Issue:

                                    @scottalanmiller is it too late for a flamming dr pepper?

                                    Never too late!

                                    1 Reply Last reply Reply Quote 1
                                    • K
                                      krisleslie
                                      last edited by

                                      Ok Jared just popped into the Ubiquiti Controller so here is what we have.

                                      0_1512415929897_2017-12-04_13h32_04.png

                                      K 1 Reply Last reply Reply Quote 0
                                      • K
                                        krisleslie @krisleslie
                                        last edited by

                                        Scott I like this community forum app better than spiceworks πŸ™‚ in some ways it's faster and easier especially with the photos!

                                        S 1 Reply Last reply Reply Quote 1
                                        • S
                                          scottalanmiller @krisleslie
                                          last edited by

                                          @krisleslie said in UBNT EdgeRouter LAN Config Issue:

                                          Scott I like this community forum app better than spiceworks πŸ™‚ in some ways it's faster and easier especially with the photos!

                                          Oh it is WAY better. A lot more modern, too. We have the advantage here of being like eight years younger, so we weren't saddled with as much cruft. And we learned from loads of mistakes that they made (but all things we warned them about years before - so they had had all kinds of opportunity to fix them.) We basically went with the community design that we had proposed to them aroudn 2011 πŸ™‚ They said we were crazy and that we didn't know forum needs like they did. Tee hee.

                                          K 1 Reply Last reply Reply Quote 2
                                          • K
                                            krisleslie
                                            last edited by

                                            What is your network scope in reality because this just hurts.

                                            I think you main netwokr is 10.10.0.0/22 (I think that was his intention, but during the revamp, I think he intended one of our remote sites to be the .0 and .1 and to vpn link them together, of course, that only worked wonkily and it was scrapped).

                                            And your wireless seems to be 10.10.4.0/24 (doesn't appear to be correct looks like we have to WLANs, the main lan should be using our 10.x.x.x and the guest lan not sure yet, investigating)

                                            Is this right? (all this what I'm seeing is up for debate 😞 )

                                            What LAN IP should all of your systems have for their gateway? 10.10.2.1 is the router, 10.10.2.251 is the ad/dns/dhcp

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 1 / 6
                                            • First post
                                              Last post