Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"option:: established" does the wrong thing on Cisco. #16

Closed
GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments
Closed

"option:: established" does the wrong thing on Cisco. #16

GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. compile the following ACL with target:: cisco

term test-term {
  source-address:: bas050-2
  destination-address:: HVAC_TEST_SERVERS
  protocol:: tcp
  destination-port:: SSH
  option:: established
  action:: accept
}

2. check the results:

 remark test-term
 permit tcp host 134.79.230.135 172.25.192.8 0.0.0.7 eq 22 established
 permit tcp host 134.79.230.135 172.25.192.8 0.0.0.7 range 1024 65535 established


What is the expected output? What do you see instead?

The second line should not be there, and the first line should read:

permit tcp host 134.79.230.135 range 1024 65535 172.25.192.8 0.0.0.7 eq 22 
established


What version of the product are you using? On what operating system?
SVN v110. Also tried on v103 with the same results.
Linux RHEL5.

Please provide any additional information below.

- it works correctly when specifying a source-port (as opposed to a 
destination-port).
- it fails in the same way on UDP.

Original issue reported on code.google.com by antonio....@gmail.com on 8 Apr 2011 at 12:10

@GoogleCodeExporter
Copy link
Author

I do realize it is a bit dumb to filter "established" on a destination port. 
But I still find the output surprising...

Original comment by antonio....@gmail.com on 8 Apr 2011 at 5:22

@GoogleCodeExporter
Copy link
Author

This is expected behavior.  For stateless filtering, the "established" option 
simply appends high-ports (1024-65535) to the destination-ports.  Therefore, in 
the example term if results in a policy allowing src->dest of ports 22 and 
1024-65535.

From: http://code.google.com/p/capirca/wiki/PolicyFormat
...
option:: [established|tcp-established|sample|intial|rst|first-fragment]
established - only permit established connections, implements tcp-established 
if protocol is tcp only, otherwise adds 1024-65535 to required 
destination-ports.

Original comment by watson@google.com on 12 Jul 2011 at 6:59

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant