Skip to content

A small c-program for simulating cisco ACL filtering functions by applying rules to a fixed test-vector file.

Notifications You must be signed in to change notification settings

PawelBoe/aclsim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A small C/C++-program for simulating cisco ACL filtering functions by applying rules to a fixed test-vector file.

This is still in progress and therefore not yet safe to use. A first working prototype is usable, but beware that it contains bugs. It may produce errors if you don´t stick to the correct rule and vector syntax. Installation:

The usage of this program is as follows: ./aclsim (option) (ruleFile) < (vectorFile)

Rule syntax: action protocol sourceIp (operation port(s)) destinationIp (operation port(s))

Vector syntax: protocol sourceIp sourcePort destinationIp destinationPort (flags)

  • Actions: permit, deny, remark
  • Protocols: ip, tcp, udp, icmp, esp
  • Port operations: eq, neq, gt, lt, range
  • IP address operations: any, host, (wildcard format)
  • Many Port aliases available
  • Flags don´t work yet

Port aliases:

  • smtp
  • domain
  • syslog
  • snmp
  • tftp
  • netbios-ss
  • isakmp
  • non500-isakmp
  • bgp
  • ssh
  • www
  • ftp
  • ftp-data
  • telnet
  • https

some options are available too:

  • h show help
  • s show first match ONLY
  • a show all matches, not only the first ones
  • n show not matching rules and corresponding vectors ONLY
  • v show verbose output (like using both -a and -n)
  • f filter and print permitted vectors to stdout

I´m just learning C, meaning that at this stage the program probably contains some bad programming, consider yourself warned..

About

A small c-program for simulating cisco ACL filtering functions by applying rules to a fixed test-vector file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published