Got it

The strangest acl implementation, everybody attention!

Latest reply: Feb 8, 2020 02:05:06 208 3 2 0 0

Hi all,

I'd like to share with you a little problem I recently encountered about ACL.

Symptom

In a cutover, we need to modify the ACL configuration on the device.

Original Configuration

ACL 3010 

 rule 10 permit tcp source 172.16.2.128 0.0.0.63 destination 10.18.31.7 0 destination-port eq 22

 rule 20 deny tcp source-port eq 22 destination-port lt 1024

The cutover script

ACL 3010 

 rule 10 permit tcp source 10.207.135.0 0.0.0.255 destination 10.4.76.119 0 destination-port eq 22

 rule 20 permit tcp source 172.16.2.128 0.0.0.63 destination 10.18.31.7 0

During the migration verification, We found that the configuration is changed to the following:

ACL 3010

 rule 10 permit tcp source 10.207.135.0 0.0.0.255 destination 10.4.76.119 0 destination-port eq 22

 rule 20 permit tcp source 172.16.2.128 0.0.0.63 source-port eq 22 destination 10.18.31.7 0 destination-port eq 22

After the script is reconfigured, the two port numbers in rule 20 still exist. The configuration was successful after deleting rule 20 and reconfiguring.


Cause

The existing ACL rule is modified incrementally instead of being overwritten!

If the specified rule ID already exists and the new rule conflicts with the original rule, the part of the new rule that conflicts with the original rule replace the part that exists in the original rule.

To modify an existing rule, delete the old rule, and then create a new rule. Otherwise, the configuration result may be incorrect.

  • x
  • convention:

Mina1
Created Feb 2, 2020 13:35:45

good job
View more
  • x
  • convention:

Faridrami
Created Feb 3, 2020 16:45:13

thank you
View more
  • x
  • convention:

ejcastriver
Created Feb 8, 2020 02:05:06

Thanks
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.