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

Support for Allowing/Denying IP and Subnet Addresses #52

Closed
Badgerati opened this issue Jul 3, 2018 · 0 comments
Closed

Support for Allowing/Denying IP and Subnet Addresses #52

Badgerati opened this issue Jul 3, 2018 · 0 comments

Comments

@Badgerati
Copy link
Owner

The idea behind this is to allow IP address and subnet masks to be allowed/denied, and any incoming requests that meet the requirement are allowed or denied access.

This will be under a new keyword of access to be used within the Server, examples include:

# allowing the local ip
access allow ip 127.0.0.1

# allow a subnet, will allow everything 10.10.0.0 - 10.10.0.255
access allow ip '10.10.0.0/24'

# deny an array of ips
access deny ip @('192.168.1.2', '192.168.1.3')

# deny every address
access deny ip all

The allow list is checked first, followed by the deny list. If the IP is in neither but we have an allow list then auto-deny the IP.

Feature can maybe be extended later on to support content types (ie: access allow content 'text/plain')

@Badgerati Badgerati self-assigned this Jul 3, 2018
Badgerati added a commit that referenced this issue Jul 4, 2018
@Badgerati Badgerati added this to the 0.14.0 milestone Jul 5, 2018
Badgerati added a commit that referenced this issue Jul 5, 2018
Badgerati added a commit that referenced this issue Jul 5, 2018
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