Unsolved
This post is more than 5 years old
1 Rookie
•
15 Posts
0
26801
May 2nd, 2006 14:00
IP-Based ACL on 6024 to block Vlan Traffic.
I'm trying to setup a guest area on our network just to have internet access. We have a 6024 which is connected to multiple 3348's, 5212, and 5324's. I want to setup the guest access on a vlan on one of the 3348's for now. I setup a new vlan on the 6024 and added it to both switches. I setup a new acl on the 6024 and assigned it to vlan 1. However I can still reach everything from vlan 1 from vlan 10. I tried setting up a port on vlan 10 on both switches and it doesn't block it from either switch.
Here's my setup.
vlan 1 : 192.168.1.1 255.255.255.0
Vlan 10 : 192.168.10.1 255.255.255.0
ACL
Guest
ANY 192.168.10.0 0.0.0.255 ANY ANY DENY
ANY ANY ANY ALLOW
ACL BOUND TO VLAN 1
6024 PORT 24 TRUNKED TO 3348 PORT 48
3348 PORT 38 GENERAL VLAN 10 UNTAGGED.
Thanks,
Message Edited by dustinn3 on 05-02-200611:00 AM
No Events found!


DELL-Cuong N.
1K Posts
0
May 2nd, 2006 18:00
It would be easier to figure out what's happening if you could just post the configurations for both of your switches.
Cuong.
dustinn3
1 Rookie
•
15 Posts
0
May 2nd, 2006 20:00
3348
no spanning-tree
interface ethernet 1/e38
switchport mode general
exit
interface range ethernet 1/g(1-2)
switchport mode trunk
exit
vlan database
vlan 2,10
exit
interface ethernet 1/e38
switchport general pvid 10
exit
interface ethernet 1/e38
switchport general allowed vlan add 10 untagged
exit
interface range ethernet 1/g(1-2)
switchport trunk allowed vlan add 10
exit
interface vlan 2
name Radiology
exit
interface vlan 10
name guest
exit
interface vlan 1
ip address 192.168.1.2 255.255.255.0
exit
ip default-gateway 192.168.1.1
interface vlan 1
ip address dhcp
exit
hostname Mailroom
dustinn3
1 Rookie
•
15 Posts
0
May 2nd, 2006 20:00
6024
interface ethernet g4
description "IS Switch"
exit
interface ethernet g22
description ORTHO
exit
interface range ethernet g(1,3)
switchport mode general
exit
interface range ethernet g(2,17-19,23-24)
switchport mode trunk
exit
vlan database
vlan 2-6,10
exit
interface ethernet g1
switchport general pvid 3
exit
interface ethernet g3
switchport general pvid 2
exit
interface ethernet g3
switchport general allowed vlan add 2 untagged
exit
interface range ethernet g(2,17-19)
switchport trunk allowed vlan add 2
exit
interface ethernet g1
switchport general allowed vlan add 3 untagged
exit
interface range ethernet g(2,23-24)
switchport trunk allowed vlan add 6
exit
interface range ethernet g(23-24)
switchport trunk allowed vlan add 10
exit
interface vlan 2
name Radiology
exit
interface vlan 3
name INTERNET
exit
interface vlan 4
name Wireless
exit
interface vlan 5
name Voice
exit
interface vlan 6
name Video
exit
interface vlan 10
name guest
exit
interface vlan 1
ip address 192.168.1.1 255.255.255.0
exit
interface vlan 2
ip address 192.168.2.1 255.255.255.0
exit
interface vlan 3
ip address 192.168.0.2 255.255.255.0
exit
interface vlan 4
ip address 192.168.4.1 255.255.255.0
exit
interface vlan 6
ip address 192.168.6.1 255.255.255.0
exit
interface vlan 10
ip address 192.168.10.1 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 192.168.0.1
ip route 192.168.117.192 255.255.255.224 192.168.1.14
ip dhcp relay address 192.168.1.7
interface vlan 10
ip address dhcp
exit
ip access-list "guest"
deny any 192.168.10.0 0.0.0.255 any
permit any any any
exit
interface vlan 1
service-acl input "guest"
exit
hostname "Dell 6024"
dustinn3
1 Rookie
•
15 Posts
0
May 2nd, 2006 20:00
DELL-Cuong N.
1K Posts
0
May 4th, 2006 19:00
I may not fully comprehend your setup since I can't tell how the ports are connected from the configuration. But I think maybe I see the problem. The ACL works only on ingress. Meaning that the ACL filter will cause packets to be dropped as it comes into the switch not as it goes out of the switch.
So you should apply your ACL at the incoming port on your 3348 (if port 38 is where the guest user is connected then you should apply the ACL there). At this point you should set up the ACL to deny any packet where the destination is one of the IP address on your protected network.
Alternatively since you already put the guest user on VLAN 10 which is already isolated from other users on the 3348, you can wait until it gets to the 6024 before you apply the ACL, but you must still apply the ACL on the incoming interface which in this case is VLAN 10 not the outgoing port (you applied the ACL to port 1 - I'm assuming this is your internet port) if you want to block this user from accessing other hosts on your private network. So you need to put the ACL on VLAN 10 where you block access from any source address to the destination address on your private network.
The key here is to make sure you apply the ACL on incoming packet so that the packet is filtered before it enters the switch.
Cuong.
dustinn3
1 Rookie
•
15 Posts
0
May 9th, 2006 16:00
I got it to work applying it to the vlans. However, I still have an issue. I have setup the acl to allow dhcp on udp ports 67 and 68 and dns on udp and tcp port 53 to our server. Then I denied all other traffic to the server and the subnet. It allows me to use dhcp and dns, but it also allows all traffic to the server. It doesn't allow any traffic to any other computer on the subnet, but I can ping, print, and connect to files on the server. Shouldn't you only be able to use the ports that are open? Here's my acl's.
ip access-list "guest"
permit any 192.168.10.0 0.0.0.255 192.168.0.0 0.0.0.255
permit any 192.168.10.0 0.0.0.255 192.168.10.0 0.0.0.255
permit-udp 192.168.10.0 0.0.0.255 68 192.168.1.7 0.0.0.0 67
permit-tcp 192.168.10.0 0.0.0.255 any 192.168.1.7 0.0.0.0 53
permit-udp 192.168.10.0 0.0.0.255 any 192.168.1.7 0.0.0.0 53
deny any 192.168.10.0 0.0.0.255 192.168.1.7 0.0.0.0
deny any 192.168.10.0 0.0.0.255 192.168.1.0 0.0.0.255
permit any any any
exit
ip access-list "vlan1"
permit-tcp 192.168.1.7 0.0.0.0 53 192.168.10.0 0.0.0.255 53
permit-tcp 192.168.1.7 0.0.0.0 53 192.168.10.0 0.0.0.255 53
permit-udp 192.168.1.7 0.0.0.0 67 192.168.10.0 0.0.0.255 68
deny any any 192.168.10.0 0.0.0.255
permit any any any
DELL-Cuong N.
1K Posts
0
May 9th, 2006 17:00
It's easier to figure out what's going on if you give me a more detail scenario, here are some thoughts first:
If you walk the packet through the switches and ports you will see how the rules apply and be able to figure out the problem.
For example, what is the IP address of your guest system and what port is it connected to and what IP address is it trying to get to. Now consider when the packet enters the switch and then forwarded to the 6024, what VLAN does it comes into and what port. Look at the ACL and think about which ACL rule applies and what should happen to the packet. Is it having the affect you expect? If you think that it should work as you defined it then go through your thoughts here and present me with the same scenario and let's see if I can see what's happening.
Cuong.
dustinn3
1 Rookie
•
15 Posts
0
May 9th, 2006 18:00
I'll break down what I have. I have a computer on vlan 10 that needs to connect to a server on vlan 1 for dhcp and dns only. Then I want that computer to only have access to the internet.
computer 192.168.10.2
Server 192.168.1.7
acl guest is applied on vlan 10.
internet is on vlan 3 192.168.0.1
The computer is on a cisco 1131 Access point on vlan 10. The access point is connected to a 5212 switch via a trunk allowing vlan 1 and 10. The 5212 is then trunked with the 6024 with vlan 1 and 10 on both sides.
The computer is able to dhcp an address on the 192.168.10.0 network. It is also able to use the internet.
The server is on a port on a 3348 which is connected to the 6024 on vlan 1.
This is the acl bound to vlan 10.
ip access-list "guest"
permit-udp 192.168.10.0 0.0.0.255 68 192.168.1.7 0.0.0.0 67 ---- This should allow dhcp only
permit-tcp 192.168.10.0 0.0.0.255 any 192.168.1.7 0.0.0.0 53 ----- This should allow dns only
permit-udp 192.168.10.0 0.0.0.255 any 192.168.1.7 0.0.0.0 53 ----- This should allow dns only
deny any 192.168.10.0 0.0.0.255 192.168.1.7 0.0.0.0 --- This should block all other traffic to server
deny any 192.168.10.0 0.0.0.255 192.168.1.0 0.0.0.255 --- This should block all other traffic to vlan 1
permit any any any --- this should allow access to the internet.
exit
The second and third policy are redunandt I know, but they should be both be blocking every other port and service from reaching 192.168.1.7 from the 192.168.10.0 network if I am correct. However I can still ping and transfer files and from the server. All traffic from vlan 10 should be coming through the guest acl.
DELL-Cuong N.
1K Posts
0
May 9th, 2006 20:00
Quick questions:
If your traffic is actually coming into VLAN 1 instead of VLAN 10 then probably your ACL is not being applied as you would think. Your guest system may actually have full access to everything.
Cuong.
dustinn3
1 Rookie
•
15 Posts
0
May 9th, 2006 21:00
dustinn3
1 Rookie
•
15 Posts
0
May 10th, 2006 21:00
ip access-list "guest"
permit-udp any 68 255.255.255.255 0.0.0.0 67
permit-tcp 192.168.10.0 0.0.0.255 any 192.168.1.7 0.0.0.0 53
permit-udp 192.168.10.0 0.0.0.255 any 192.168.1.7 0.0.0.0 53
deny any 192.168.10.0 0.0.0.255 192.168.1.0 0.0.0.255
permit 192.168.10.0 0.0.0.255 80 any 80
permit 192.168.10.0 0.0.0.255 443 any 443
exit
I'm still confused why my other acl was allowing all traffic through. My ACL was clearly blocking it on multiple levels. But this is more along the lines of what I intended to accomplish anyways.
dustinn3
1 Rookie
•
15 Posts
0
May 11th, 2006 20:00
DELL-Cuong N.
1K Posts
0
May 11th, 2006 21:00
Sorry dustinn3, I've been busy with a few other things and I haven't had a chance to get back to this. I'll email you directly so you can forward the configs for all your switches to me, let me see if I can reproduce the problem.
Cuong.