UNSOLVED

rubycloud

updated

19 years ago

R

rubycloud

1 Message

0

17315

August 12th, 2007 06:00

ACLs don't work on Powerconnect 6224

I'm having the hardest time trying to get a very simple ACL to work on the Powerconnect 6224. Just as my initial test, I have a web server sitting behind the switch, and I'd like to set the switch up to block all ports except port 80. Sounds easy, right? Here's my config:

RC-6224B(config)#access-list shire permit tcp any 207.7.151.68 0.0.0.0 eq http
RC-6224B(config)#interface ethernet 1/g4
RC-6224B(config-if-1/g4)#ip access-group shire in 1

As soon as I apply the access list to the port, all traffic ceases. It appears that the rule is not matching and the default deny rule is taking over.

All of the documentation I've looked at has been lacking. I'm using the CLI reference as my primary source. I've given up on the web interface.

I would love it if someone could supply a known working ACL config for the 6224. I would love to hear that it actually works for someone out there, and even better, that it will work for me!

Thanks in advance,
Matt

P.S. For reference, here is my full config:


RC-6224A#show running-config
!Current Configuration:
!System Description "Dell PowerConnect"
!System Software Version 1.0.0.27
!
configure
vlan database
vlan 2-6
exit
snmp-server location "UnitedLayer"
hostname "RC-6224A"
stack
member 1 1
exit
ip address 10.0.1.1 255.255.255.0
access-list shire permit tcp any 207.7.151.68 0.0.0.0 eq http
interface vlan 2
name "RC-VLAN2"
routing
ip address 207.7.129.100 255.255.255.248
ip vrrp 102
ip vrrp 102 mode
ip vrrp 102 ip 207.7.129.102
ip vrrp 102 ip 207.7.129.101 secondary
ip vrrp 102 priority 150
ip local-proxy-arp
exit
interface vlan 3
name "RC-VLAN3"
routing
ip address 207.7.151.65 255.255.255.224
ip local-proxy-arp
exit
interface vlan 4
name "RC-VLAN4"
exit
interface vlan 5
name "RC-VLAN5"
exit
interface vlan 6
name "RC-VLAN6"
exit
ip routing
ip route 0.0.0.0 0.0.0.0 207.7.129.97
username "admin" password xxx level 15 encrypted
monitor session 1 mode
ip ssh server
ip ssh port 2153
bridge aging-time 368
ip vrrp
!
interface ethernet 1/g2
switchport access vlan 2
exit
!
interface ethernet 1/g3
switchport access vlan 3
exit
!
interface ethernet 1/g4
switchport access vlan 3
exit
!
interface ethernet 1/g5
switchport access vlan 3
exit
!
interface ethernet 1/g6
switchport access vlan 3
exit
!
interface ethernet 1/g7
switchport access vlan 4
exit
!
interface ethernet 1/g8
switchport access vlan 4
exit
!
interface ethernet 1/g9
switchport access vlan 4
exit
!
interface ethernet 1/g10
switchport access vlan 4
exit
!
interface ethernet 1/g11
switchport access vlan 5
exit
!
interface ethernet 1/g12
switchport access vlan 5
exit
!
interface ethernet 1/g13
switchport access vlan 5
exit
!
interface ethernet 1/g14
switchport access vlan 5
exit
!
interface ethernet 1/g15
switchport access vlan 5
exit
!
interface ethernet 1/g16
switchport access vlan 5
exit
!
interface ethernet 1/g17
switchport access vlan 6
exit
!
interface ethernet 1/g18
switchport access vlan 6
exit
!
interface ethernet 1/g23
channel-group 1 mode on
exit
!
interface ethernet 1/g24
channel-group 1 mode on
spanning-tree cost 20000
exit
!
interface port-channel 1
description 'Cross'
switchport mode trunk
switchport trunk allowed vlan add 2
switchport trunk allowed vlan add 3
switchport trunk allowed vlan add 4
switchport trunk allowed vlan add 5
switchport trunk allowed vlan add 6
switchport trunk allowed vlan remove 1
exit
!
interface port-channel 2
switchport mode trunk
switchport trunk allowed vlan remove 1
exit
enable password xxx encrypted
exit
  • pretjeuh

    1 Message

    747

    0

    Posted October 5th, 2007 10:00

    Hi there, I am having the same problem as you have.
     
    With no ACL's applied I can ping from 1 vlan to the other vlan, as soon as I make a ACL to allow FTP access on vlan 1 from vlan 3.
     
    Another question: Is there in the dell CLI also a commando like the established commando used in cisco ACL's ?
     
    Thanks in advance,
    Jeroen
  • stormytoad

    44 Posts

    747

    0

    Posted October 18th, 2007 17:00

    I have some working ACLs on 62xx switches, but not exactly like yours.  After some testing I think you might need to reverse the logic to allow your web server to talk to any host like:
    access-list shire permit tcp 207.7.151.68 0.0.0.0 eq http any
     
    I ran some tests using a similar icmp access list and it only works in that direction. 
     
    I've also been wondering is there a command that shows how many matches you are getting for each rule in the ACL on these switches?


    Message Edited by stormytoad on 10-18-2007 01:31 PM
  • 747

    0

    Posted March 12th, 2008 22:00

    Havin the same prob.
    One rule:
    access-list test permit tcp any any eq 443

    Then
    interface ethernet 1/g5
    ip access-group test in 1

    and can't connect ....
    Nick
  • 747

    0

    Posted March 12th, 2008 23:00

    Found my prob.
    g1 goes to the gateway, g5 my server
    So if the ACL is bound to g5, and I'm controlling traffic from the net, it should be applied to OUT (i.e. traffic coming through the switch to the server)
    (something I think you can only do with the CLI; looks like web interface doesn't give any option and only binds IN)

    I was told it's a good idea to bind ACL to the outbound, where the server is plugged in, so if it gets mucked up it can't interfere with other devices on the switch. Sounds like a good idea to me, anyone got any other advice?
  • stormytoad

    44 Posts

    747

    0

    Posted March 13th, 2008 17:00

    Very interesting.  I've been having issues trying to get outbound ACLs to work on VLAN interfaces.  I am basically using an inbound access list with the first two rules allowing any local traffic that I allow and the rest of the blocking access to other internal networks. 

     

    http://www.dellcommunity.com/supportforums/board/message?board.id=pc_managed&thread.id=10925

     

    It sounds like a good idea to block all other traffic on that server, but how will you do administrative tasks on the server and performance monitoring?  I guess you could do all those from the console or something.

     

    Please let me know if you are successful in using any of the outbound ACLs.

     

    Thanks

  • 747

    0

    Posted March 13th, 2008 21:00

    Stormytoad yep I have that working (not using VLANs though), just posted my config in your original thread.

    I think using egress is good for that reason, the downside is that traffic which they will block on exit still comes in to the switch.

    Admin tasks - yeah I'll use the console, or DRAC
  • 747

    0

    Posted March 14th, 2008 02:00

    I notice OP is pretty old but just in case anyone else has this problem.

    First it looks like the ACL isn't bound to any interfaces in your config, but that's probably just in the example you've given.

    The real problem - the ACL should also allow replies from your server to any potential clients, on all ephemeral ports (client's source ports).
    This is because when a client connects from port e.g. 25470 to your server port 80, when the server responds, he needs to send back to port 25470.
    To do this I have a rule like:
    access-list 101 ip x.x.x.x 0.0.0.0 any
    (where x.x.x.x is my server's ip)