Monday, July 6, 2015

PSWA : Port redirection

I really love PSWA. It's really cool to do management with PowerShell commands, scripts or function on a phone or a tablet simply by a Web site.

The problem

For security reasons, I specified a port on my firewall to NAT to my PSWA server. 
Why ? Because, this adds a security layer. To come knock on my PSWA door, you need to know the port I used for it.
By default, your address is like : https://mydomain/pswa but with the port redirection is like : https://mydomain:1234/pswa.

But after I configured my DNAT rules in my firewall, I received an error message from PSWA.

The solution

I just need to add the port I chose for redirection and put it in the binding of the PSWA site. You just need to have access to your IIS Manager and add your port in the binding. Don't forget, select the good SSL certificate.

Site Bindings
IIS Manager - Site Bindings
After that, you can start to enjoy the PowerShell power on your smart phone or tablet.

Have a good day.
J.

Add-on

If you installed your server in core mode and you want to have access to the IIS Manager (GUI). I found this post you explain how doing it : https://kelvinchiggs.wordpress.com/2014/05/02/enable-remote-management-of-iis-on-windows-server-2012-r2/

No comments:

Post a Comment