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

Use of Add-PodeAccessRule together with IIS #1375

Closed
kjebu opened this issue Aug 14, 2024 · 1 comment · Fixed by #1488
Closed

Use of Add-PodeAccessRule together with IIS #1375

kjebu opened this issue Aug 14, 2024 · 1 comment · Fixed by #1488
Assignees
Milestone

Comments

@kjebu
Copy link

kjebu commented Aug 14, 2024

Hi,
I would like to use the Add-PodeAccessRule together with IIS. However, it seems that the only client IP the Pode server sees when behind IIS is 127.0.0.1. Is there a way of propagating the client address in X-FORWARDED-FOR header and use that instead for Add-PodeAccessRule?

Kjetil

@Badgerati
Copy link
Owner

HI @kjebu,

Yep, this is possible. I've recently just refactored all Access rules to a new Add-PodeLimitAccessRule, and the new New-PodeLimitIPComponent can now support this :)

I've added the support for retrieving the IP from the X-Forwarded-For header in the above commit, and can also confirm that IIS does add this header by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants