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!
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
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?
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.
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.
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)
pretjeuh
1 Message
747
0
Posted October 5th, 2007 10:00