{"id":3774,"date":"2018-01-12T04:41:49","date_gmt":"2018-01-12T04:41:49","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3774"},"modified":"2018-01-12T04:41:49","modified_gmt":"2018-01-12T04:41:49","slug":"setup-ftp-server-users-windows-2012-r2","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2018\/01\/12\/setup-ftp-server-users-windows-2012-r2\/","title":{"rendered":"How to setup FTP server \/ users on Windows 2012 R2"},"content":{"rendered":"<h3><strong>Introduction<\/strong><\/h3>\n<p>This tutorial should assist with creating FTP server on Windows 2012 R2 \u2013 Depend on your version \u2013 Your setting might be slightly different.<\/p>\n<p>Even there are too many free third-party tools like Filezilla\u00a0that provide a client access to FTP serve..<\/p>\n<p>Here you have the steps I followed to set up my FTP server\u00a0in Windows 2012 R2.<br \/>\nThe steps below assume you are using IIS 8.5 that comes by default with Windows 2012 R2<\/p>\n<h3><strong>Prerequisites<\/strong><\/h3>\n<ul>\n<li>A Windows 2012 R2 server.<\/li>\n<li>An administrative account.<\/li>\n<\/ul>\n<h3><strong>1-\u00a0Enable Web Server (IIS) role and FTP Server role service.<\/strong><\/h3>\n<ol>\n<li>Log in to the server by using an administrative account<\/li>\n<li>Open Server Manager<\/li>\n<li>Go to\u00a0<strong>Manage &gt; Add Roles and Features<\/strong><\/li>\n<li>Click\u00a0<strong>Next<\/strong><\/li>\n<li>Select\u00a0<strong>Role-based or feature-based installation<\/strong><\/li>\n<li>Click\u00a0<strong>Next<\/strong><\/li>\n<li>Select\u00a0<strong>Select a server from the server pool<\/strong>, and select your server<strong><br \/>\n<\/strong><\/li>\n<li>Click\u00a0<strong>Next<\/strong>.<\/li>\n<li>Scroll down and put a check mark in\u00a0<strong>Web Server (IIS)<\/strong><\/li>\n<li>An Add features window pops up.\u00a0Put a check mark in the\u00a0<strong>Include management tools (if applicable)\u00a0<\/strong>option<\/li>\n<li>Click\u00a0<strong>Add Features<\/strong>\u00a0button<\/li>\n<li>Click\u00a0<strong>Next<\/strong><\/li>\n<li>Click\u00a0<strong>Next<\/strong><\/li>\n<li>Click\u00a0<strong>Next<\/strong><\/li>\n<li>Scroll down and put a check mark in:\u00a0<strong>FTP server<\/strong>,\u00a0<strong>FTP Service<\/strong>\u00a0and\u00a0<strong>FTP Extensibility<\/strong>.<\/li>\n<li>Click\u00a0<strong>Next<\/strong><\/li>\n<li>Click\u00a0<strong>Install<\/strong><\/li>\n<li>When installation is finished, click\u00a0<strong>Close<\/strong><\/li>\n<\/ol>\n<h3><strong>2-\u00a0Create FTP users<\/strong><\/h3>\n<p>You need to create users in Windows in order to be able to use FTP services.<br \/>\nYou can use either local or domain users.<br \/>\nIn this case, I will create some local users.<br \/>\nThe only thing that changes if you use domain users is, when you log in to FTP, you must use the domain\/account format.<\/p>\n<ol>\n<li>In Server Manager go to\u00a0<strong>Tools<\/strong><\/li>\n<li>Click\u00a0<strong>Computer Management<\/strong><\/li>\n<li>Click<strong>\u00a0Local Users and Groups<\/strong><\/li>\n<li>Click\u00a0<strong>Users<\/strong><\/li>\n<li>In the center pane, right-click a blank area and then select\u00a0<strong>New User\u2026<\/strong><\/li>\n<li>Enter the username information and click the\u00a0<strong>Create\u00a0<\/strong>button<\/li>\n<li>Create as many usernames you need here.<\/li>\n<\/ol>\n<p>Optionally, you can create a group that contains all the FTP users in the\u00a0<strong>Groups\u00a0<\/strong>folder and add the users you created above.<\/p>\n<h3><strong>3-\u00a0Configuring FTP global IIS settings.<\/strong><\/h3>\n<p>You need to configure some global settings for your IIS server before creating your FTP site.<br \/>\nIt is very easy, follow the steps below:<\/p>\n<ol>\n<li>In Server Manager go to\u00a0<strong>Tools<\/strong><\/li>\n<li>Click\u00a0<strong>Internet Information Services (IIS) manager<\/strong>.<\/li>\n<li>In the left pane, double-click the server icon (in the tree below the option\u00a0<strong>Start Page<\/strong>)<\/li>\n<li>If a window pops up asking about Microsoft Web Platform, select\u00a0<strong>Do not show this message<\/strong>, and click the\u00a0<strong>No<\/strong>\u00a0button<\/li>\n<li>In the center pane, double-click the\u00a0<b>FTP<\/b>\u00a0<b>Authentication<\/b>\u00a0icon<\/li>\n<li>If you want to allow anonymous users,right-click\u00a0<b>Anonymous<\/b>\u00a0<b>Authentication<\/b>\u00a0and set it to\u00a0<b>Enable<\/b>.<\/li>\n<li>To allow access to the windows users you created in Part Two\u00a0above, right-click\u00a0<strong>Basic\u00a0<\/strong><b>Authentication<\/b>\u00a0and set it to\u00a0<b>Enable<\/b>.<\/li>\n<li>In the left pane, double-click the server icon.<\/li>\n<li>Double click the\u00a0<b>FTP<\/b>\u00a0<b>Authorization<\/b>\u00a0<b>Rules<\/b>\u00a0option<\/li>\n<li>Delete all rules in the center pane.<\/li>\n<li>After all rules have been deleted, right-click a blank area in the center pane and select the option\u00a0<b>Add<\/b>\u00a0<b>Allow Rule\u2026<\/b><\/li>\n<li>Click the option\u00a0<b>Specified<\/b>\u00a0<b>users.<\/b><\/li>\n<li>In the text box type the usernames (separated by commas) you created in Part Two above.<b><br \/>\n<\/b><\/li>\n<li>Check either the boxes\u00a0<b>Read\u00a0<\/b>or\u00a0<b>Write\u00a0<\/b>depending the access you want to grant to the user or group of users you are adding.<\/li>\n<li>Click the\u00a0<b>OK\u00a0<\/b>button<\/li>\n<li>Repeat steps 8 to 15 if you want to add more users with different Read \/ Write permissions.<\/li>\n<\/ol>\n<h3><strong>4-\u00a0Creating FTP site.<\/strong><\/h3>\n<ol>\n<li>Open Windows Explorer<\/li>\n<li>Navigate to\u00a0<strong>C:\\inetpub\\ftproot<\/strong><\/li>\n<li>This is the default local folder where the FTP directory tree will be saved<\/li>\n<li>You can create your own folder in another directory or hard drive if you want.<\/li>\n<li>Create your own folder at this point if it is desired.<\/li>\n<li>Open\u00a0<strong>Server Manager<\/strong><\/li>\n<li>Go to\u00a0<strong>Tools<\/strong><\/li>\n<li>Click on\u00a0<strong>Internet Information Services (IIS) Manager<\/strong><\/li>\n<li>In the left pane, right-click the server icon (in the tree below the option Start Page)<\/li>\n<li>Click\u00a0<b>Add FTP Site<\/b><\/li>\n<li>In FTP site name type a friendly name for your site. (<strong>My FTP Site<\/strong>\u00a0\u00a0for example)<\/li>\n<li>In\u00a0<strong>Physical path\u00a0<\/strong>browse to the folder you creates in steps 2 to 5<\/li>\n<li>Click\u00a0<strong>Next<\/strong><\/li>\n<li>In IP Address, click the drop down menu, and select the server\u2019s IP address you want to assign to the site<\/li>\n<li>Port remains as\u00a0<b>21\u00a0<\/b>by default. You can change it if you want.<\/li>\n<li>Ensure the option\u00a0<b>Start FTP site automatically<\/b>\u00a0is checked<\/li>\n<li>Select the\u00a0<b>No SSL<\/b>\u00a0option if you are nor required to use certificates. Otherwise, select one of the other options.<\/li>\n<li>Click\u00a0<b>Next<\/b><\/li>\n<li>In the Authentication section, put a check mark in\u00a0<b>Anonymous\u00a0<\/b>If you want to allow anonymous users.<\/li>\n<li>Put a check mark also in\u00a0<b>Basic\u00a0<\/b>to allow access to users created in Part Two.<\/li>\n<li>In the Allow access to: drop down menu, select:\u00a0<b>Specified<\/b>\u00a0<b>Users<\/b><\/li>\n<li>In the text box type the usernames of the users you created in Part Two.<b><br \/>\n<\/b><\/li>\n<li>Check the box\u00a0<b>Read\u00a0<\/b>to grant read access to users.<\/li>\n<li>Check the box\u00a0<b>Write<\/b>\u00a0to grant write access to users.<\/li>\n<li>Click\u00a0<b>Finish<\/b><\/li>\n<\/ol>\n<h3><strong>5-\u00a0IIS Firewall setup.<\/strong><\/h3>\n<ol>\n<li>In Server Manager go to\u00a0<strong>Tools<\/strong><\/li>\n<li>Click<strong>\u00a0<\/strong><strong>Internet Information Services (IIS) manager.<\/strong><\/li>\n<li>In the left pane, double-click the server icon (in the tree below the option\u00a0<strong>Start Page<\/strong>)<\/li>\n<li>In the center pane, double-click the\u00a0<strong>FTP Firewall Support<\/strong>\u00a0icon<\/li>\n<li>In the\u00a0<strong>Data Channel Port Range\u00a0<\/strong>box, make sure the value is\u00a0<strong>0-0<\/strong>\u00a0to use the default port range.<\/li>\n<li>Or, you can change it if you want by your own set of ports.<\/li>\n<li>Click\u00a0<strong>Apply<\/strong><\/li>\n<li>Close Internet Information Services (IIS) Manager<\/li>\n<\/ol>\n<h3><strong>6-\u00a0Windows Firewall setup.<\/strong><\/h3>\n<p>By default, all exceptions needed for FTP are added to the Windows Firewall at the time you enable the FTP Server role.<br \/>\nAnyway, for troubleshooting purposes, I will show the configuration that needs to be in place in order to allow FTP traffic in your server.<\/p>\n<ol>\n<li>Open Server Manager<strong><br \/>\n<\/strong><\/li>\n<li>In the left pane, click\u00a0<strong>Local Server<\/strong><\/li>\n<li>In the right pane, click the hyperlink beside the\u00a0<strong>Windows Firewall<\/strong>\u00a0option. It should say\u00a0<strong>Public:On\u00a0<\/strong>\u00a0(or Off).<\/li>\n<li>The Windows firewall window opens. In the left pane click\u00a0<strong>Advanced Settings<\/strong><\/li>\n<li>The Windows Firewall with Advanced Security window opens. In the left pane click\u00a0<strong>Inbound Rules<\/strong>.<\/li>\n<li>In the right pane, verify there\u2019s a rule called\u00a0<strong>FTP Server (FTP Traffic-In)<\/strong><\/li>\n<li>Double click this rule.<\/li>\n<li>In the\u00a0<strong>General\u00a0<\/strong>tab, verify the option\u00a0<strong>Enabled\u00a0<\/strong>is checked.<\/li>\n<li>Go to the\u00a0<strong>Protocols and Ports<\/strong>\u00a0tab.<\/li>\n<li>Verify the Protocol type is\u00a0<strong>TCP\u00a0<\/strong>and the\u00a0<strong>Local port<\/strong>\u00a0value is\u00a0<strong>21<\/strong>.<\/li>\n<li>Go to the\u00a0<strong>Advanced\u00a0<\/strong>tab<\/li>\n<li>Make sure the profiles:\u00a0<strong>Domain<\/strong>,\u00a0<strong>Private\u00a0<\/strong>and\u00a0<strong>Public\u00a0<\/strong>are checked.<\/li>\n<li>Click\u00a0<strong>OK\u00a0<\/strong>button<\/li>\n<li>Execute the same validation in steps\u00a0<strong>7-13<\/strong>\u00a0for the\u00a0<strong>FTP Server Passive (FTP Passive Traffic-In)<\/strong>rule. Except that the local port value in this rule should be<strong>1024-65535<\/strong><\/li>\n<li>Execute the same validation in steps\u00a0<strong>7-13<\/strong>\u00a0for the\u00a0<strong>FTP Server Secure (FTP SSL Traffic-In)\u00a0<\/strong>rule.Except that the local port value in this rule should be\u00a0<strong>990<\/strong><\/li>\n<li>In the left pane, click\u00a0<strong>Outbound<\/strong>\u00a0<strong>Rules<\/strong><\/li>\n<li>Execute the same validation in steps\u00a0<strong>7-13<\/strong>\u00a0for the\u00a0<strong>FTP Server (FTP Traffic-Out)<\/strong>\u00a0rule. Except that\u00a0the local port value in this rule should be\u00a0<strong>20<\/strong><\/li>\n<li>Execute the same validation in steps\u00a0<strong>7-13<\/strong>\u00a0for the\u00a0<strong>FTP Server Secure (FTP SSL Traffic-Out)\u00a0<\/strong>rule. Except that the local port value in this rule should be\u00a0<strong>989<\/strong><\/li>\n<li>Close all windows.<\/li>\n<\/ol>\n<h3>\u00a07-<strong>\u00a0Testing<\/strong><\/h3>\n<ul>\n<li>The last part is to test your work.<\/li>\n<li>Make sure you can connect to the FTP service, first from the local machine and then form a remote computer.<\/li>\n<li>Try to log in, put files, get files, show folder contents, etc<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This tutorial should assist with creating FTP server on Windows 2012 R2 \u2013 Depend on your version \u2013 Your setting might be slightly different. Even there are too many free third-party tools like Filezilla\u00a0that provide a client access to FTP serve.. Here you have the steps I followed to set up my FTP server\u00a0in &#8230; <a title=\"How to setup FTP server \/ users on Windows 2012 R2\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2018\/01\/12\/setup-ftp-server-users-windows-2012-r2\/\" aria-label=\"Read more about How to setup FTP server \/ users on Windows 2012 R2\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[125],"tags":[],"class_list":["post-3774","post","type-post","status-publish","format-standard","hentry","category-windows-2012-server"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3774"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3774\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}