Skip to content

nemaderinku/Illumio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Firewall Problem

Implementation

The solution is implemented using python3.
firewall.py: implements the solution using dataframe for rules.
firewall_approach2.py: implements the solution using a static dictionary for saving rules. This will reduce the search time but is not dynamic for protocols.

Installations:

pandas (>= 0.25.1)

How to Install:

pip install pandas

How to Run?

python3 firewall.py
python3 firewall_approach2.py

Inputs:

Rules file path: Enter full path to csv file containing rules (eg path\\to\\file\\networkrules.csv). If not entered, it is defaulted to networkrules.csv file in the same folder
direction: Enter packet direction ("inbound" or "outbound")
protocol: Enter packet protocol ("tcp" or "udp")
port: Enter port (integer in range [1, 65535])
ip: Enter ip address (IPv4 address)

Output:

Returns boolean value. True if packet satisfies any of the rules; False otherwise.

Tests:

The code is tested against the given test inputs.

Team Preference:

I would like to join any of the 3 teams in the preference order - platform team, policy team, data team.

About

Coding challenge solution for Illumio

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages