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

TP-Link Easy Smart Switch security question

Hardware
44
185
78.5k
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.
  • N
    n3by
    last edited by Jan 15, 2017, 11:27 AM

    Exactly how I anticipated I already tested this model of config and for my config will not solve that all traffic is mirrored on all VLANs.

    Now when you have time have a look with NTOPNG in every VLAN interface you defined and let us know if you see all tagged traffic from all VLAN.

    For example in your VLAN 11 you will see all traffic from 44, for me this is not normal to be seen there.

    In my test all traffic from all clients on LAN, WIFI can be seen also on GUESTS… etc.

    1 Reply Last reply Reply Quote 0
    • W
      whosmatt
      last edited by Jan 16, 2017, 3:01 AM Jan 15, 2017, 8:00 PM

      The only thing I can see wrong with your config is that some of your ports are still set to PVID 1.

      I'm coming from a world where I manage Dell Powerconnect switches.  In Dell CLI parlance (and I think Cisco is similar), there are two main switchport modes, access, and trunk.  Setting a switchport to access with the command "switchport access vlan 44" tells the switch to tag any incoming traffic on that port with VLAN 44, and to send any traffic on VLAN 44 out of that port, removing the tag in the process.  In reality it's a bit more than that, since it is, after all, a switch, and learns MAC addresses, thereby avoiding sending all VLAN 44 traffic over all VLAN 44 ports.  But let's ignore that for now.

      So, to mirror that behavior on the TP-LINK switch, you need to set the port as an untagged member in VLAN 44, but you also need to set the PVID to 44.  The reason for this, as I understand it, is that the untagged setting tells the switch to send VLAN44 out of the port, but it doesn't tell it what to do with incoming untagged traffic.  That's what the PVID setting does.  For a port with PVID 44, any incoming traffic that's not already tagged with a VLAN ID will get tagged with 44.  (someone correct me if I'm wrong on this, please).

      The other mode on the Dell switch is trunk.  This is used in a situation where we want to send traffic with VLAN tags intact, so that the device on the other end can handle the VLANs.  That device could be anything:  a pfsense router with multiple VLAN interfaces, another switch, whatever.  In that case, we set the port with "switchport trunk allowed vlan add 44" and "switchport trunk allowed vlan add 11".  (I'm using my own VLAN IDs here, obviously).  So, that works in the case where all the traffic on the port is tagged.  But what if we want to handle untagged traffic on a trunk port as well?  In that case, we also set "switchport trunk native vlan 15" and then any untagged ingress traffic will get VLAN ID 15. [EDIT:  and egress traffic for VLAN 15 would be sent over the port as well, untagged.]  That's roughly equivalent to the PVID setting on the TP-LINK switch.  That comes in handy in the case of a device like the Ubiquiti AP, where the management network is untagged, but the SSIDs handle tagged traffic in different VLANs than the management network.

      To mirror the trunk allowed setting on the TP-LINK switch, you just need to set the port as a tagged member of whichever VLANs you want to trunk.  The PVID will still be in place, and will handle any untagged traffic coming into the port, if there is any.  The PVID setting comes in handy again for devices like the Ubiquiti AP.  My own has its management interface in VLAN44 and also serves an SSID in that VLAN.  So the port it's connected to is untagged 44 and PVID 44.  But it also serves an SSID in VLAN 11, so the port is also set to tag VLAN 11.  That's port 4 in the screenshots I've posted.

      I've checked with ntopng and also with tcpdump and I don't see any untoward traffic on any of my interfaces.

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Jan 18, 2017, 1:11 AM

        @n3by Are you sure ntopng is not listening on the parent interface in pfSense?

        Even if the switch were leaking traffic from VLANs you don't have 103 or 101 untagged or set as PVID anywhere so it's hard to believe that traffic could end up on those?

        Steve

        1 Reply Last reply Reply Quote 0
        • N
          n3by
          last edited by Jan 18, 2017, 9:22 AM

          I was really surprised and I double checked, also on history traffic log:
          As you can see all VLAN 101-103-105 had the same high traffic spike ( one week ago ) but on VL103 = Guest I don't had / have any client.

          At the moment I am using SG-108E only as L3 switch for LAN.
          Next day I disabled VL105 and moved back to separate network interface ( this is why in history log now is showed as opt2 instead of VL105 ).
          I moved back on another separate network interface VL101 & VL103 managed only by pfSense ( and a no-managed switch as trunk to connect the APs to pfSense ) so no more problems with unwanted traffic on VLANs.

          vl101.jpg
          vl101.jpg_thumb
          vl103.jpg
          vl103.jpg_thumb
          vl105.jpg
          vl105.jpg_thumb

          1 Reply Last reply Reply Quote 0
          • C
            CanYaHearMeNow4
            last edited by Jan 20, 2017, 2:39 AM

            I want to restate what's being said here because I believe that these TP-Link "Easy Smart Switches" do indeed have a fundamental flaw with their VLAN implementation. I hope this can serve as a warning for future prospective buyers.

            I am a networking professional and I have been using pfSense appliances in my personal network for years. Power consumption is something that I'm trying to minimize as of late, so I wanted to purchase a low power switch that supported VLANs so that I could implement a "pfSense on a stick" style network with a slightly older low power Intel NUC that only has one 1gbps port. It was to be a fairly simple deployment with one "access port" on a VLAN designated for the "WAN" (external network, VLAN99), several "access ports" designated for the "LAN" (internal network, VLAN10) and one "trunk" port which would trunk these two networks into the pfSense appliance.

            Flaw #1: The first flaw with this switch is that you have no control over the management interface with regard to VLANs. On a Cisco switch, there is the concept of an "Interface VLAN" where you can select what VLAN you wish to attach a layer-three interface. Not only do these TP-Link switches switch lack that functionality, they instead allow access to their management IP interface from all ports on the switch regardless of the VLAN or PVID configured.

            Here is how to test this: For anyone who has this switch configured with multiple VLANs, plug a computer into any port on the switch and hard-code your IP to be in the same subnet as the switches management IP and ping the switch. I am able to access the management IP of the switch from any port regardless of changes made to the "802.1Q VLAN Configuration" tab or the "802.1Q PVID Setting" tab. This is a huge security issue in router on a stick deployment such as the one outlined above

            When I noticed this behavior, I quickly pulled out my old WireShark PC and the results were simply baffling:

            Flaw #2: Any broadcast received on a port whose PVID is set to VLAN1 will be flooded out of all ports regardless of the VLAN or PVID settings. Easy enough, just don't use VLAN1 right? This was verified by injecting ARP requests into port 8 and monitoring every other port with WireShark (see photos which contain my configuration settings).

            Flaw #3: Traffic sourced from the switch's management IP address is flooded out of all ports regardless of the destination MAC address or the VLAN or PVID settings. This was verified by opening a browser and pointing it to the switches web based management while connected to a port set to PVID of VLAN 10. This resulted in WireShark showing a flood of HTTP traffic sourced from the MAC address of the switch egressing a port whose PVID and untagged VLAN setting was set to VLAN99 or VLAN1.

            I purchased two of these TP-Link switches over the past few weeks. The first was the 8 port model: TL-SG108E 2.0, which I promptly returned upon the discovery of this "flaw". The second was model: TL-SG1024DE 2.0 which was on sale for the ridiculously low price of 35$ after mail-in rebate at Amazon. Both exhibited the same behavior.

            I guess that why they always say: caveat emptor!

            ![TL-SG108E PVID SETTINGS.PNG](/public/imported_attachments/1/TL-SG108E PVID SETTINGS.PNG)
            ![TL-SG108E PVID SETTINGS.PNG_thumb](/public/imported_attachments/1/TL-SG108E PVID SETTINGS.PNG_thumb)
            ![TL-SG108E VLAN SETTINGS.PNG](/public/imported_attachments/1/TL-SG108E VLAN SETTINGS.PNG)
            ![TL-SG108E VLAN SETTINGS.PNG_thumb](/public/imported_attachments/1/TL-SG108E VLAN SETTINGS.PNG_thumb)

            1 Reply Last reply Reply Quote 2
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Jan 20, 2017, 1:16 PM Jan 20, 2017, 12:59 PM

              Why do you not remove the ports from vlan 1.. Clearly from your shot showing that you have multiple untagged ports on a port then yeah if you send broadcast traffic on vlan 1, and the port is a member of vlan 1 it should see that traffic..

              If your saying there is no way to remove a port from untagged 1 then sure that would be an issue, but looks like you can do it on the screen you posted above - you just didn't do it.. Not talking about delete vlan 1, talking about taking port out of the vlan vs it being a member of 2 in an untagged state.

              "which was on sale for the ridiculously low price of 35$ after mail-in rebate at Amazon"

              Really.. That is not what I show, I show that the rebate is $30.. So puts the price at 80$  If there was a mistake and you got the switch for $30 sweet for you!!  But I am guessing more same sort of info that didn't get right either ;) Just Sayin…

              I don't have one of the tplink to test with, but I have a netgear that is same sort of price point.. Dirt Cheap - and "smart" to the point it does vlans but not much else.  Same thing you can not delete vlan 1 on the device.  But you can for sure remove a port from being untagged in more than one vlan and can change its pvid..

              It doesn't protect you from stupid configurations.. See last pic where I put port 2 in vlan 1 and vlan 20 as untagged.

              memberports.png
              memberports.png_thumb
              rebate.png
              rebate.png_thumb
              netgear.png
              netgear.png_thumb
              stupidconfig.png
              stupidconfig.png_thumb

              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.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • N
                n3by
                last edited by Jan 20, 2017, 2:16 PM

                On first top row, Delete box with VLAN 1 and ports 1-8 it is disabled.

                It looks like always all switch ports are part of VLAN 1, even you assign them to other VLAN.

                From my test in ALL configuration even you assign to the switch an management IP in another class; out of all your LAN / VLAN sub-net,
                all port and clients connected to switch are allowed to access that management switch IP, without restriction.

                All you have to do is to change client IP in the same sub-net as switch IP, TPLink sw management utility will always display switch IP so is no need to scan for all IP range.
                Because it is HTTP and management traffic is broadcasted on all ports it is easy to access/sniff the configuration account.

                This Chinese switch looks like a perfect Trojan horse.

                p.s
                in V2 ASIC is RTL8367c… maybe later a custom firmware will be ported.

                1 Reply Last reply Reply Quote 0
                • C
                  CanYaHearMeNow4
                  last edited by Jan 20, 2017, 3:46 PM

                  Yeah, as n3by says, you can't check that box or edit VLAN1 in any way. I even tried to edit the the HTML code surrounding that checkbox with Chrome's Development console to no avail.

                  @johnpoz:

                  Really.. That is not what I show, I show that the rebate is $30.. So puts the price at 80$  If there was a mistake and you got the switch for $30 sweet for you!!  But I am guessing more same sort of info that didn't get right either ;) Just Sayin…

                  It must have been some sort of price mistake and it popped up on a deal site (https://slickdeals.net/f/9686276) for $35. I figured even with this "VLAN flaw" it would still work well as a "dumb" switch for a network contained to a single broadcast domain at that price.

                  @n3by:

                  in V2 ASIC is RTL8367c… maybe later a custom firmware will be ported.

                  I was going to look into this somewhat. Not necessary "custom" firmware, but I had hopes that there may be a way to port the Netgear firmware over (assuming they use the same or similar hardware).

                  Does anybody think we have any recourse with TP-Link support to get a new firmware released? In this day and age where some of the largest ever DDoS attacks are sourced from IP camera DVRs and other embedded devices, one would think that a company would make it a priority to resolve security issues of this nature.

                  1 Reply Last reply Reply Quote 0
                  • jahonixJ
                    jahonix
                    last edited by Jan 20, 2017, 5:09 PM

                    I e-mailed a TP-Link engineer I met at a trade show last year. I'll report back what he responds.
                    Be gentle, I linked this thread to him.

                    1 Reply Last reply Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator
                      last edited by Jan 21, 2017, 2:48 PM Jan 21, 2017, 2:41 PM

                      Not talking about editing the vlan 1, I am talking about removing the port from the vlan.. If you can not remove a port from being in vlan 1 as untagged then you have a problem sure.. The switch is doing what it says its going to do.. Port 1-8 are set to be untagged vlan 1.. So yeah any traffic on vlan 1 that is broadcast traffic should flood out those ports as untagged.

                      Does not matter that you set PVID to.. All this says that hey untagged traffic I see INBOUND to this port, this is the vlan that traffic is in..

                      So your using the webgui - can you try their utility software?  Maybe their is bug in their code in the web gui for removal of ports from vlan 1?  I have half a mind to just order one of these to play with.. But from what you posted the switch is doing what its configured to do..  All ports are in vlan 1 untagged.  Any broadcast traffic that it see inbound to a port that has pvid of 1, will be flooded out every other port that as being in vlan 1..

                      Generate your broadcast traffic inbound to a port that has its pvid set to something other than vlan 1.  That untagged traffic would be in that vlan and not broadcast out vlan 1 ports.  But in the current config state any traffic ingress to ports 1 or 8 that have pvid of 1 would be flooded out all the ports since they are listed as being untagged in vlan 1.

                      If you set all the pvid to something else other than 1 - can you still get to the IP of the switch?  Does the config software utility still work?

                      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.7.2, 24.11

                      1 Reply Last reply Reply Quote 0
                      • W
                        wbond
                        last edited by Jan 21, 2017, 3:20 PM

                        Johnpoz, I think you have the right idea.  I have a TL-SG2008 and a couple of TL-SG3424's and removed all the ports from the default VLAN 1 when I set them up.  I don't think you can delete VLAN 1, but on my models at least you can remove all the ports from it.  All the PVID's are set to something other than 1 and I can still reach the IP of the switch.  I've never seen any traffic bleeding from one vlan to another.

                        1 Reply Last reply Reply Quote 0
                        • W
                          whosmatt
                          last edited by Jan 23, 2017, 3:48 AM

                          @johnpoz:

                          Not talking about editing the vlan 1, I am talking about removing the port from the vlan.. If you can not remove a port from being in vlan 1 as untagged then you have a problem sure.. The switch is doing what it says its going to do.. Port 1-8 are set to be untagged vlan 1.. So yeah any traffic on vlan 1 that is broadcast traffic should flood out those ports as untagged.

                          Does not matter that you set PVID to.. All this says that hey untagged traffic I see INBOUND to this port, this is the vlan that traffic is in..

                          So your using the webgui - can you try their utility software?  Maybe their is bug in their code in the web gui for removal of ports from vlan 1?  I have half a mind to just order one of these to play with.. But from what you posted the switch is doing what its configured to do..  All ports are in vlan 1 untagged.  Any broadcast traffic that it see inbound to a port that has pvid of 1, will be flooded out every other port that as being in vlan 1..

                          Generate your broadcast traffic inbound to a port that has its pvid set to something other than vlan 1.  That untagged traffic would be in that vlan and not broadcast out vlan 1 ports.  But in the current config state any traffic ingress to ports 1 or 8 that have pvid of 1 would be flooded out all the ports since they are listed as being untagged in vlan 1.

                          If you set all the pvid to something else other than 1 - can you still get to the IP of the switch?  Does the config software utility still work?

                          I'll have to double check, but I think all ports remain untagged in VLAN 1 no matter what we do.  That could explain some of the behavior reported, but I've had no problem keeping traffic isolated.  I have my PVID set to something other than VLAN1 on all ports and can still hit the management interface.  There is no way to define a VLAN for the management interface that I can see.

                          1 Reply Last reply Reply Quote 0
                          • V
                            Vlado
                            last edited by Mar 13, 2017, 10:09 AM

                            Is there any update on this?

                            @jahonix, did the TP-Link engineer ever answer your questions? I'm especially interested in the option to be able to set a management VLAN on the Easy Smart switches.

                            1 Reply Last reply Reply Quote 0
                            • jahonixJ
                              jahonix
                              last edited by Mar 13, 2017, 10:17 PM

                              @Vlado:

                              did the TP-Link engineer ever answer your questions?

                              Unfortunately not, I would have let you know otherwise.
                              I'm confident to meet some TP-Link guys at CeBIT this March. I'll point them to this thread.

                              1 Reply Last reply Reply Quote 0
                              • ivorI
                                ivor
                                last edited by May 14, 2017, 7:30 PM

                                Any updates on this thread? Seems like this is a serious problem.

                                Need help fast? Our support is available 24/7 https://www.netgate.com/support/

                                1 Reply Last reply Reply Quote 0
                                • W
                                  whosmatt
                                  last edited by May 14, 2017, 11:48 PM

                                  @ivor:

                                  Any updates on this thread? Seems like this is a serious problem.

                                  I haven't seen any firmware updates that allow removing VLAN1 untagged from the switch ports.  I'm guessing TP-Link sees this as a feature, so that the end user can avoid having to set up the management interface on a VLAN and perhaps locking themselves out of managing the switch, since there's no console or anything like that.

                                  Of course I understand the implications, and obviously these switches are meant for home use. I'd be curious to hear what TP-Link says about it, but that's my guess.

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    pfBasic Banned
                                    last edited by May 15, 2017, 12:15 AM

                                    I got one of these and immediately returned it.

                                    I ended up with a zyxel gs1900-8hp, it's 70W of PoE over all 8 ports for $100. It didn't have the forced VLAN 1, and it even has a telnet CLI you can activate and a header for serial access.  MUCH better GUI and many more features!

                                    The non-PoE version is I think $60. So almost double the price of a tplink might not be interesting but I thought I'd throw it out there.

                                    I actually kept my LAN on VLAN1. It's for home use and you can force HTTP/S only acces, that combined with a strong password keeps me from worrying about needing a management only interface.

                                    1 Reply Last reply Reply Quote 0
                                    • jahonixJ
                                      jahonix
                                      last edited by May 15, 2017, 2:26 AM

                                      @ivor:

                                      Any updates on this thread?

                                      Sorry, I didn't make it to CeBIT. Workload prohibited going there.
                                      And the engineer I talked to last year never responded to my mails.

                                      1 Reply Last reply Reply Quote 0
                                      • DerelictD
                                        Derelict LAYER 8 Netgate
                                        last edited by May 15, 2017, 3:16 AM

                                        For just a couple dollars more you can get a D-Link DGS-1100-08 that has a management VLAN setting and doesn't do all this VLAN 1 nonsense.

                                        Not sure what the fascination with these TP-Link things is. They are garbage.

                                        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
                                        • P
                                          pfBasic Banned
                                          last edited by May 15, 2017, 3:23 AM

                                          At least for me the fascination was the price. Also, before asking around in a forum like this they appear to be a great buy based on amazon reviews.

                                          But I agree, better off getting something a little better.

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