Unsolved

This post is more than 5 years old

25782

March 13th, 2008 07:00

Basic ACL help - PowerConnect 6224

Interfaces:
g1 = Internet
g3, g4 = Server (LAG 1)

g1 has no ACL bound

I'm trying to bind ACL(s) to LAG 1 which will allow specific traffic Internet->Server, and all (later, restrict) traffic from Server->Internet
(since it's bound to the LAG, as opposed to g1, ACL is applied to direction "out")
(to simplify things I'm using src/dest any/any - but will later limit to the Server's IPs)

My rules:

access-list webau permit tcp any any eq 22
access-list webau permit tcp any any eq http
access-list webau permit tcp any any eq 443
access-list webau permit tcp any any eq 3389
access-list webau permit tcp any any eq 1935

Binding the ACL:

interface port-channel 1
ip access-group webau out

This successfully permits only traffic from the Internet->Server on TCP port numbers specified - so far so good.

However, the Server can't get out to the Internet at all.
(e.g. ping, telnet google.com 80)

I would have thought with no ACL in, all traffic from the LAG to the switch would be allowed.

I've also tried:
access-list allowall permit every
interface port-channel 1
ip access-group allowall in

Further, if I add rule to ACL webau (bound to LAG1 out):
access-list webau permit icmp any any

I can ping from Server->Internet

or ...
access-list webau permit every

Server->Internet is OK

Finally - Any recommendations on whether to apply these to the Server's ports/channel, with direction OUT (like I am) vs. apply to Internet port with direction IN

Thanks!
Nick

March 13th, 2008 22:00

Is this because the ACLs are stateless and the switch blocks responses on ephemeral ports (>1023)?
If so, do I need to make a rule allowing inbound > 1023?
If so, how do I do this ... doesn't look like you can say "greater-than" like cisco and do "access-list aclname ip any any gt 1023"

March 13th, 2008 23:00

I think this is true. I started opening the connection, checked netstat to find the source port (connection stuck at SYN_SENT), added this to the ACL before it timed out, and it connected ok.
So my question is - what do people do to let their servers get out?

68 Posts

March 16th, 2008 18:00

With Cisco, if you have an interface connected to your server, you can say "permit tcp packets with source port 443, ephemeral dst port, and fin or ack bits set", like this:

  permit tcp any eq 443 any established

Then, when your server makes an outbound connection to (say) update.redhat.com on port 443, the reply packet from RHN to your server will be permitted.  I don't see a way to match on FIN|ACK with Dell, so you'd pretty-much have to "permit tcp any eq 443 any".  Dell should try to support matching TCP flags ala Cisco (permit tcp any any match-any +ack +fin),  or at-least letting us match using byte offset, e.g.:

tcp[13] & 16 == 16

 

One workaround is to have an upstream Cisco (like your carrier border router) mark incoming FIN|ACK packets using TOS, then you can match TOS on the Dell.

 

Another workaround is to set-up a proxy server for use by your critical servers (e.g. Squid, SOCKS, MS Proxy Server).  Also use an outgoing mail relay, recursive DNS server and NTP server.  Your protected servers use these proxies for outbound connections, and you permit replies from the proxies to your protected server explicitly in the ACL. This is very inconvenient if you're used to making direct outbound connections from your protected servers to the Internet.  On the other hand, it is more secure than permitting packets in from "any" to your protected server's ephemeral ports.

 

March 16th, 2008 21:00

Thanks for the great explanation Zitibake

1 Rookie

 • 

10 Posts

September 22nd, 2016 23:00

This is a zombie post, but I'm putting it on here because I came across this on a search engine and thought this might be useful since Dell switch discussion is scarce.

On Dell N-series switches today (2016), this capability is included.

I have a DMZ the 172.27.4.0/24 network and a trusted network on 172.27.9.0/24. I want connections from 172.27.9.0/24 to be able to go into the DMZ (ssh primarily). In the IN access-list on the DMZ interface, the rule is:

permit tcp 172.27.4.0 0.0.0.255 172.27.9.0 0.0.0.255 flag established

No Events found!

Top