UNSOLVED

stormytoad

updated

19 years ago

S

stormytoad

44 Posts

0

14432

March 10th, 2008 15:00

Egress ACLs not working on 6224 6248 62xx when applied to a VLAN interface

I have been trying to use the new Egress ACL feature in the latest firmware. 

 

When applying an ACL to a vlan interface using the command "ip access-group aclname out 1" under config interface it will not work.  It appears to accept the command, but show run does not show the command in the running config and no filtering is applied.  Even stranger it does show the ACL as applied under "sh access-lists interface" command.

 

Has anyone else been able to use Egress ACLs?  Have you used them in this manner?

 

Thanks

  • 405

    0

    Posted March 13th, 2008 21:00

    I've got egress ACLs working on a 6224:

    console#show ip access-lists

    Current number of ACLs: 3  Maximum number of ACLs: 100

          ACL Name                  Rules        Interface(s)       Direction
    ------------------------------- ----- ------------------------- ---------
    webau                           5     ch1                       Outbound
    drac                            3     1/g5                      Outbound
    switch                          4     1/g1                      Inbound


    Here's my config:


    console#show running-config
    !Current Configuration:
    !System Description "Dell 24 Port Gigabit Ethernet, 2.0.0.12, VxWorks5.5.1"
    !System Software Version 2.0.0.12
    !
    configure
    ip telnet server disable
    sntp unicast client enable
    sntp server 80.92.66.23
    sntp server 128.250.36.2
    sntp server no
    stack
    member 1 1
    exit
    ip address x.x.x.x x.x.x.x
    ip default-gateway
    x.x.x.x x.x.x.x
    ip name-server x.x.x.x x.x.x.x
    ip name-server x.x.x.x x.x.x.x
    logging cli-command
    ip https server
    access-list webau permit tcp any
    x.x.x.x x.x.x.x eq 22
    access-list webau permit tcp any
    x.x.x.x x.x.x.x eq http
    access-list webau permit tcp any
    x.x.x.x x.x.x.x eq 443
    access-list webau permit tcp any
    x.x.x.x x.x.x.x eq 3389
    access-list webau permit tcp any
    x.x.x.x x.x.x.x eq 1935
    access-list drac permit tcp any
    x.x.x.x x.x.x.x eq 443
    access-list drac permit tcp any
    x.x.x.x x.x.x.x eq 5900
    access-list drac permit tcp any
    x.x.x.x x.x.x.x eq 5901
    access-list switch permit tcp any
    x.x.x.x x.x.x.x eq 22
    access-list switch permit tcp any
    x.x.x.x x.x.x.x eq 443
    access-list switch deny tcp any
    x.x.x.x x.x.x.x
    access-list switch permit ip any anyip routing
    username "admin" password xxx level 15 encrypted
    ip ssh server
    ip dhcp filtering
    !
    interface ethernet 1/g1
    ip access-group switch in 1
    exit
    !
    interface ethernet 1/g3
    channel-group 1 mode auto


    exit
    !
    interface ethernet 1/g4
    channel-group 1 mode auto
    exit
    !
    interface ethernet 1/g5
    ip access-group drac out 1
    exit
    !
    interface port-channel 1
    ip access-group webau out 1
    exit
    snmp-server community xxx rw
    exit
  • Zitibake

    68 Posts

    405

    0

    Posted March 15th, 2008 16:00

    Thanks, Nick; Stormytoad is trying to do something similar, except with Vlan interfaces rather than physical or channel-group.

     

  • stormytoad

    44 Posts

    405

    0

    Posted March 31st, 2008 13:00

    It looks like they have patched this in the new firmware! 

     

     

     

    "- The CLI interface allows the user to apply egress ACLs to VLANs, but the ACLs do not work."

     

    I'm going to download it and test it on a few switches in the next few weeks.  I'll post my results. 

     

    I wish they would post a list of all known bugs somewhere for these switches.  It could save a lot of troubleshooting time.

  • 405

    0

    Posted April 17th, 2008 06:00

    I don't know if this helps - remember I'm binding to LAG not VLAN - but the principle may apply.

    What we ended up doing was reversing the rules to deny not incoming connections, but outgoing responses, bind in (instead of out) and it worked.

     

    e.g.


    Instead of:

    access-list webau permit tcp a.b.c.d 0.0.0.0 any 

    access-list webau permit tcp any a.b.c.d 0.0.0.0 eq 22
    access-list webau permit tcp any a.b.c.d 0.0.0.0 eq 80
    access-list webau permit tcp any a.b.c.d 0.0.0.0 eq 443
    access-list webau permit tcp any a.b.c.d 0.0.0.0 eq 3389
    bind out

     

    Do:

     

    access-list webau permit tcp any a.b.c.d 0.0.0.0

    access-list webauin permit tcp a.b.c.d 0.0.0.0 eq 22 any
    access-list webauin permit tcp a.b.c.d 0.0.0.0 eq 80 any
    access-list webauin permit tcp a.b.c.d 0.0.0.0 eq 443 any
    access-list webauin permit tcp a.b.c.d 0.0.0.0 eq 3389 any
    bind in

    Message Edited by nick.p.doyle on 04-17-2008 02:41 AM
  • bh1633

    909 Posts

    405

    0

    Posted April 22nd, 2008 13:00

    I was informed that egress acls applied to vlans is not supported on 62xx switch.  It is in the CLI by mistake and will be removed in the next code drop.

     

    Alternatively, you can apply egress acls to a port or a lag.