Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

IIS Rewrite rule issue (i think?)

$
0
0

Hello,

So we have a machine in our dmz who runs on 2012R2 and act as a "reverse proxy" using the IIS rewrite module for years now

It's pretty basic, i have a lots of "sites" configured who redirect to the correct ip in our lan using mostly everytime those 2 rules:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="http://LANIP/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

So it does what i needs to do as putting in https if the url is typed in http and redirect to the correct web server in ou lan

This machnine is also used as a remote access gateway for our RDS farm

So everything worked for year until january 2020 and the RDP protocol security fix

https://www.reddit.com/r/sysadmin/comments/eti10w/jan_2020_windows_updates_kb4534297_kb4534309/

If i apply the updates only windows OS can use the RDP farm, exit mac, ios, android....not possible

I tried something this morning


I cloned the win2012R2 vm w and i did a keep file migration in 2016, everything went well but :)

My iis redirect http to http rules doesn't work anymore, but the rdp issues is gone....


ANyone can help me to fix the IIS rules issues?


I'm not a dev at all so maybe i made it wring since the beginning, but now i can't see what's happening

If i put a simple rule without the http to https rule it seems to work


Any help will be greatly apprecieted


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>