设为首页 收藏本站
查看: 1062|回复: 0

[经验分享] Setup an SSTP SSL *** in Windows Server 2012 R2

[复制链接]
YunVN网友  发表于 2018-6-11 06:11:44 |阅读模式
So here’s what’s awesome about Secure Socket Tunneling Protocol SSL ***s: they give your connecting client an IP and make it a full-on part of the network. And this is all done over port 443, a commonly used port which is often enabled on firewalls. SSTP SSL ***s are not like some fake “SSL ***s” that just give users a webpage and some sort of RDP.
It’s also relatively easy setup. While there are a lot of tutorials that show how to setup SSTP SSL ***s using AD CA generated certificates, I strongly suggest you forego that, and just use a globally recognized certificate. This prevents outside users from having to install your CA’s root cert. It also prevents them from having to make a registry change if your CRL is not published and available online. All around, a $5.99 cert that can be obtained in 12 steps is well-worth the time and money invested.
This tutorial will cover how to easily setup an SSTP SSL *** in Windows 2012 R2 using a legit cert. If you want to use your own domain’s cert, there are other websites that provide step-by-steps. advancedhomeserver.com is my preferred tutorial.
Overall, there are four major steps to this:

  •   Install the appropriate certificate
  •   Setup Routing and Remote Access
  •   Configure NPS (Optional)
  •   Setup your client.
Install the SSL Certificate
Step 1
First, follow my tutorial for getting a legit $5.99 cert, down to creating the .pfx file.
Step 2
Import your PFX to the local machine’s Certificate store. To do this, certlm -> Personal -> Certificates -> Right-click, All Tasks -> Import -> Next -> Select your Cert -> Enter your password -> Next -> Finish.
DSC0000.png
Install and configure the RRAS role
Step 1
Add the Remote Access role. Server Manager -> Manage -> Add Roles and Features ->Remote Access.
DSC0001.png
Step 2
Click Next a couple times, then just click DirectAccess and ***. DirectAccess seems cool, but it’s only intended for mobile domain-joined computers, which I’m not looking to support.
DSC0002.png

Step 3
Next a couple times. It will force you to install IIS, which is odd, because RRAS can work independently of IIS (you can even stop and disable IIS and RRAS will still work). I would think just the IIS Hostable Web Core would be enough, but whatever. It’s required. Go ahead and accept that it will be installed.
DSC0003.png
Step 4
Once the Role has been installed, click the flag thing at the top, and then Open the Getting Started Wizard.
DSC0004.png
Step 5
Select Deploy *** Only.
DSC0005.png
Step 6
Once the new window pops up, right click your server name (mine is *** (local)) thenConfigure and Enable Routing and Remote Access.
DSC0006.png
Step 7
We’re trying to keep our surface area as small as possible, so click on Custom Configuration.
DSC0007.png
Step 8
Next, only check *** Access.
DSC0008.png
Step 9
The RRAS Sericve will configure itself, and start the service. You will then be returned to the RRAS config window. Right click your server name, then Properties.
DSC0009.png
Step 10
Check that your SSL Certificate binding is the newly installed certificate.
DSC00010.png
Step 11
Next, click on IPv4. Here, you can either do a DHCP forwarding or just give RRAS a few IP addresses to hand out. Click Apply then Okay. You’ll be returned again to the RRAS window.
DSC00011.png
At this point, your RRAS server is setup! But I recommend a few more steps.
If you don’t want to add any additional security (IP restrictions, Group Access to ***), then you can skip the next section and jump to setting up the client. I find it super interesting, though. I’d give it at least a glance.
Setup Network Policy Server (Optional)
Step 1
Once you’ve returned to the RRAS window, *left-click* Remote Access Logging and Policies. Then right-click and Launch NPS.
DSC00012.png
Step 2
A new Network Policy Server window will pop-up. Here, we can set which users can access the ***, set the type of authentication encryption, and restrict network access.
DSC00013.png
Step 3
We’ll start by creating a new Network Policy. Right click Network Policy and click New.
DSC00014.png
Step 4
Name your Policy, and select Remote Access Server (***/Dial-up).
DSC00015.png
Step 5
Leave this window for a moment, go into AD, create a Group and name it *** Access or whatever you wish, and add some users. Come back, and add that Windows Group by clickingAdd -> Windows Group.
DSC00016.png
Step 6
Confirm and click Next
DSC00017.png
Step 7
Grant this group access.
DSC00018.png
Step 8
Here, you can choose your Authentication Encryption. I disabled all the weaker ones, and only enabled the stronger Microsoft: Secured Password (EAP-MSCHAP v2).
DSC00019.png
Step 9
Here you can set some restrictions if you like. Click Next.
DSC00020.png
Step 10
Click on IP Filter.
DSC00021.png
Step 11
Specify a Filter. I set mine to only allow access to my lab’s subnet.
DSC00022.png
Step 12
Click OK, next, and you’re done setting up NPS!
There’s more, but I’ll likely cover that later. You can also configure the Network Policy Server which can lock down your network so that only clients with Firewalls enabled and AVs installed will be allowed to connect.
DSC00023.png
Setup a Client to Connect
Step 1
Log into a Windows machine. SSTP was introduced in Windows Vista, so the OS must be Vista or Greater (or Server 2008 and greater). Go to Network and Sharing Center. Click Setup New Connection or Network.
Step 2
Click Connect to a workplace.
DSC00024.png
Step 3
Click Use Internet Connection (***).
DSC00025.png
Step 4
Fill in your info, and click Don’t connect now; just setup so I can connect later.
DSC00026.png
Step 5
Enter your user information. Don’t forget that if you didn’t setup a Group to access the *** using NAP, you’ll need to enable Dial-In access within Active Directory Users and Computers for that user.
DSC00027.png
Step 6
We still need to configure a couple more things. Click on your connection -> Properties.
DSC00028.png
Step 7
Click the Security Tab -> Change type of *** to SSTP. By default, it detects the type of *** automatically, but slightly slows down the process.
Also change your authentication as seen below. That’s all you need. Note that, by default, Windows ***S will use the remote gateway. If you want to modify that, go to Properties -> Networking -> IPv4 -> Advanced -> Uncheck Use Default Gateway on Remote Network.
DSC00029.png
Step 8
Right-click -> Connect.
DSC00030.png
Step 9
Awesome. Poke around ipconfig if you’re interested in seeing your assigned IP, gateway and DNS servers.
DSC00031.png
Some final notes
Don’t forget that you have to expose your ***’s port 443 at the router. To ensure that things are working, you can also try hitting your *** server via a browser at https://your***.server.ext. It should return a 404.
In addition, IIS is not necessary. You can actually stop it, disable the service, and you will still be able to connect to your ***.
Enjoy!
  

  转自:http://blog.netnerds.net/2015/02/setup-an-sstp-ssl-***-in-windows-server-2012-r2/

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-521922-1-1.html 上篇帖子: windows server 2012 额外域配置 下篇帖子: windows server 2012之活动目录部署
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表