-
Notifications
You must be signed in to change notification settings - Fork 83
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
Subnet mask support for spx.http_trusted_proxies #259
Comments
Yes but It could the day your app is not behind a RP anymore. Anyway '*' is already supported for I'll however try to see if implementing masks is costly as it looks. |
Yes, that is true, but at least in our use case this should not happen out of nowhere and there is also the second layer of protection ( Implementing IP mask support would be of course more secure way but allowing |
@paukert could you please test with this branch https://github.com/NoiseByNorthwest/php-spx/tree/fix_259 ? |
I will test it during next week, thanks for the implementation. |
@NoiseByNorthwest tested basic usage and few edge cases and it works like a charm, thanks again and sorry for the delay |
Hello,
I was wondering if it would be possible to add subnet mask support for spx.http_trusted_proxies or if it would be possible to allow
*
as a value for this configuration.The value of
$_SERVER['REMOTE_ADDR']
is quite dynamic in our use case (it is assigned from pool of IP addresses e.g. 10.10.10.0/24). We are also sure that the value of$_SERVER['<spx.http_ip_var>']
could not be forged so even*
should be safe as far as I am concerned.The text was updated successfully, but these errors were encountered: