switch security question

lightspd

Ars Tribunus Militum
2,592
Hello all,

I have a security question about a extreme networks managed switch setup. We have a switch that plugs directly into our trunk and then clients machines are plugged into that switch. All ports on the switch are set to the default vlan which is set to our public ip range and gateway. We give clients their public ip and they configure it on the machines. Should I be setting up a vlan or acl of some kiind for each port? Is there any risk with this configuration? I figure the machines are already exposed to the internet unless the client wants to put a firewall between the switch and them.

Sorry if these seem like stupid questions.

Cheers
 

Frennzy

Ars Legatus Legionis
85,841
A VLAN isn't going to help you...and unless this is an L3 switch, you won't be able to do ACLs.

Who is the provider that allowed this setup in the first place? Why is there no security border/enforcement point? When you say "trunk" I assume you mean a direct internet access link of some sort. Is this from a larger org that this switch subtends off of, or is it an actual ISP?

This is a disaster waiting to happen if it's simply unfettered internet access.
 

Frennzy

Ars Legatus Legionis
85,841
Not really, if all they are providing is just a raw internet handoff. It becomes the client's issue for security.

I get that, I just don't like leaving it up to a single layer of onion. Who maintains patching, deployment, etc. Zero-day exploits happen too. And, depending on configuration/trust settings, one infected machine can mean all infected machines.
 

lightspd

Ars Tribunus Militum
2,592
A VLAN isn't going to help you...and unless this is an L3 switch, you won't be able to do ACLs.

Who is the provider that allowed this setup in the first place? Why is there no security border/enforcement point? When you say "trunk" I assume you mean a direct internet access link of some sort. Is this from a larger org that this switch subtends off of, or is it an actual ISP?

This is a disaster waiting to happen if it's simply unfettered internet access.

It's a datacenter we rent a cage in. They provide a switch with direct internet access from our provider, who I think is L3 maybe. Our switch it a summit 400.

I'm sure there a more switches and what not between our actual drop and DC drop to L3, because when we get a new IP block we have to let them know the range.

Would you suggest adding something between their switch and ours? Some of our clients have a firewall between the switch and their stuff.
 

Frennzy

Ars Legatus Legionis
85,841
Okay this makes more sense now. Really, you're just acting as a middle-man between your clients and an upstream provider. If that is the case, then it's really not your problem to provide security, unless your client asks for it. (like you say, some of your clients have a firewall between them and you...that's pretty normal and what I would call standard practice...but if you wanted to provide a security service as an upsell, you could...though without very specific expertise and rock solid terms, it'd probably be best to just avoid that altogether)

As for other switches between you and L3, that's really neither here nor there. The reason you have to give them any new IP block is to make sure they can advertise it for you. That's going to be done in routing, not switching. Plus, there may not even be additional switching...it could be a direct crossover/handoff to L3 or whoever.

edit: oh, and thinking about it, now you probably either have or need VLANs, due to having multiple IP blocks and multiple clients. If any clients aren't firewalling themselves off, you've created a shared domain which could be very problematic.
 

lightspd

Ars Tribunus Militum
2,592
Okay this makes more sense now. Really, you're just acting as a middle-man between your clients and an upstream provider. If that is the case, then it's really not your problem to provide security, unless your client asks for it. (like you say, some of your clients have a firewall between them and you...that's pretty normal and what I would call standard practice...but if you wanted to provide a security service as an upsell, you could...though without very specific expertise and rock solid terms, it'd probably be best to just avoid that altogether)

As for other switches between you and L3, that's really neither here nor there. The reason you have to give them any new IP block is to make sure they can advertise it for you. That's going to be done in routing, not switching. Plus, there may not even be additional switching...it could be a direct crossover/handoff to L3 or whoever.

edit: oh, and thinking about it, now you probably either have or need VLANs, due to having multiple IP blocks and multiple clients. If any clients aren't firewalling themselves off, you've created a shared domain which could be very problematic.

Ok, thanks. It's not so much security an up sell, I just want to make sure we aren't exposing, I just want to make sure I'm not creating a shared domain, which I very well could be doing. I inherited this setup, wasn't around when it was org done. From what I can see of the switch, all ports are set to the default vlan, which is /24 ip block and then the gateway. We then just give the client .45 for example and the gateway ip. So for example, if Joe has .45 and Bob has .46, I want to be sure Bob can't do anything to Joe outside anything you could do knowing his public ip. Since I figure the most Bob could do is assume that if he's .46, someone is using .2-45.
 

Frennzy

Ars Legatus Legionis
85,841
We then just give the client .45 for example and the gateway ip. So for example, if Joe has .45 and Bob has .46, I want to be sure Bob can't do anything to Joe outside anything you could do knowing his public ip. Since I figure the most Bob could do is assume that if he's .46, someone is using .2-45.

Okay, you do have a shared broadcast domain...but if Joe and Bob haven't secured themselves, then yes, they can infect each other. But then again, since these are public IPs and Joe and Bob haven't secured themselves, then the entire internet can do the same.
 

Paladin

Ars Legatus Legionis
33,855
Subscriptor
Spanning tree should mostly take care of that. Please at least have RSTP running!

There are things you can do on switches that are used at a kind of provider network edge but with a simple setup as indicated here, you're not going to do much. STP will help, but with a single /24 available to customers you can't do much more without a specialized platform that has service provider features. For example you could do something like PPPoE to authenticate and provision customers or managed DHCP and some kind of broadcast snooping to block the devices on the network from talking to each other other than through unicast traffic.

Basically hardening your switch (for management access control) and setting up RSTP is a good start. There are other features you can do on layer 2 ports that can improve isolation and limit the impact of mistakes, such as BPDU filtering, storm control/rate limiting, etc. Look at your switch documentation and see what it can do. The Summit 400 is an old switch, if I remember right, but it was one that had a lot of potential features. You'll probably find a lot of things you can do. They go for like $50-100 on ebay so just buy another and play around with it and see what it can do to control traffic between 2 things connected to it.
 

dodexahedron

Ars Praefectus
3,368
Subscriptor++
This is an appropriate place to use PVLAN (Private VLAN).
Also called port isolation by some vendors.

The capability for it exists on a pretty good portion of managed switches out there.

This feature makes it such that layer 2 connectivity between two ports on the same switch is disallowed.
For anything attached to those two ports to communicate with each other, the traffic first needs to flow out a designated uplink or be otherwise L3 routed.

If you're not already doing this, for the use case you described, you really should be.
 

dodexahedron

Ars Praefectus
3,368
Subscriptor++
This is an appropriate place to use PVLAN (Private VLAN).

I doubt that exists on those old Extreme Summits.

But, even VLANs would be better than nothing, if only to isolate the clients from each other.

Really? Wow. I'm genuinely surprised.
I mean... The old Catalyst 2960s from my CCIE lab back in 2008 supported PVLAN. I mean granted that's Cisco, but it seems like a fairly basic feature for a managed switch any more "enterprisey" than a D-Link or somesuch.
It's not true private VLAN in that it's only port isolation that is switch-local, but that seems sufficient in the OP's use case.
Cisco calls it "PVLAN Edge" and other vendors tend to call it "port isolation."
Worth checking if it's supported on that platform, but putting them all on their own VLANs pretty much does exactly what that does, anyway (more or less).
 

Frennzy

Ars Legatus Legionis
85,841
Keep in mind, those Summits were "new"-ish in 2007. I don't know what OS he is using...but there was no provision for it on that gear back then.

And, knowing Extreme, they probably *do* have some form of it in a new OS release, under a completely non-intuitive name. I did a quick google, but finding real info on Extreme gear is...extremely frustrating.

But, yeah, VLANs would at least prevent broadcast storms between clients, and stop any unwanted multicast as well.
 

dodexahedron

Ars Praefectus
3,368
Subscriptor++
Depending on how the public block is broken up, PVLANs may not be desirable. What if one client is trying to access public services hosted by another? Again, you really shouldn't block any communications between clients unless it's understood by all that is what will happen.

Routing/proxy ARP takes care of that.
In fact, routing on a switch that has PVLAN enabled can be self-defeating, depending on how you configure it. Proxy ARP defeats it just by turning it on, if there's a layer 3 interface on the switch in the same subnet.
In general, having more than one client on the same layer 2 broadcast domain is not a great practice, even if they're in the same subnet.
I can play games with my neighbor, even though we're isolated from each other at layer 2.

Really, in ethernet/IP land, PVLAN just turns things into an NBMA network, more or less. Totally manageable, but not wide open by default.

I'd argue that you should always isolate a downstream client from others, by default, unless you have been explicitly asked, in notarized writing, by both parties.

Otherwise, it's no more secure than coffee shop wireless and your clients may as well assume all your other clients are MITMing them.

And if they're on disparate L3 subnets?
Just plain ol' VLANs.
 

dodexahedron

Ars Praefectus
3,368
Subscriptor++
It is unclear to me if they even control the L3 hop or if they are simply a L2 pipe between a further upstream ISP.

All the more reason to isolate.
If you don't control it, why would you expose yourself to that liability?

But yes - whether the OP is acting as a L3 or L2 provider is something that would be helpful to know, explicitly.
 

lightspd

Ars Tribunus Militum
2,592
I've checked and it doesn't appear our switches support pvlan, just vlans.

I couldn't say if we are a L2 or L3. The DC has a list of interconnects they have a pipes to, we have a few blocks of IP's we pay for through ARIN, we fill out the forms for the DC on who we get our interconnection through and IP blocks. We give a client their ip address, etc and they manually configure it on their box.

At this point it might be best if I just recommend we bring in a consultant to help us figure out and secure that network. This was all setup many years ago by someone else who did understand networking, but has since left.

It's not like I couldn't probably learn, but it's been 15 years since I've even taken any kind of networking course.

Thanks for all the feedback.
 

dodexahedron

Ars Praefectus
3,368
Subscriptor++
At this point it might be best if I just recommend we bring in a consultant to help us figure out and secure that network. This was all setup many years ago by someone else who did understand networking, but has since left.

It's not like I couldn't probably learn, but it's been 15 years since I've even taken any kind of networking course.

Thanks for all the feedback.

Seriously, I want to give you a sincere thanks for coming to this conclusion without the usual argumentative or dismissive back-and-forth that typically happens.
You're wise for doing this.

So long as you get an even half-decent consultant, this will serve you best, long and short term.
Best of luck. :)