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

Port Filtering Plugin #52

Merged
merged 2 commits into from
Nov 30, 2024
Merged

Port Filtering Plugin #52

merged 2 commits into from
Nov 30, 2024

Conversation

PSNAppz
Copy link
Owner

@PSNAppz PSNAppz commented Nov 28, 2024

Enabling port-based request filtering in ShadowGuard.

Key features include:

  • Port Blacklist: Block access to specific ports.
  • Port Whitelist: Allow access only to specific ports.
  • Active Mode: Enforce filtering rules dynamically.
  • Database Integration: Log blocked requests for auditing.
  • Publisher Notifications: Alert configured systems on blocked requests.
  • Configuration is supported via port-blacklist and port-whitelist settings in config.json. Unit tests validate blacklist, whitelist, and default behaviors.

This plugin enhances ShadowGuard’s security by providing granular control over port-based access.

@PSNAppz PSNAppz requested a review from KingAkeem November 28, 2024 18:18
@PSNAppz PSNAppz changed the title Port filter plugin Port Filtering Plugin Nov 28, 2024
@PSNAppz PSNAppz added enhancement New feature or request plugin Shadowguard module labels Nov 28, 2024
Copy link
Collaborator

@KingAkeem KingAkeem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build script will break if the config.json is changed currently.

config.json Outdated
Comment on lines 5 to 7
"user": "postgres",
"password": "postgres",
"dbname": "shadowguard"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must update the build scripts to reflect these changes so the database is built correctly.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, looks good to me

@PSNAppz PSNAppz requested a review from KingAkeem November 30, 2024 05:01
@KingAkeem KingAkeem merged commit 9a89697 into main Nov 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin Shadowguard module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants