Как открыть порт 21 для ftp

от admin

Как настроить FTP-сервер с VSFTPD в Ubuntu 20.04

В этой статье описывается, как установить и настроить FTP-сервер в Ubuntu 20.04, который вы используете для обмена файлами между вашими устройствами.

FTP (протокол передачи файлов) — это стандартный сетевой протокол, используемый для передачи файлов в удаленную сеть и из нее. Для Linux доступно несколько FTP-серверов с открытым исходным кодом. Наиболее известными и широко используемыми являются PureFTPd , ProFTPD и vsftpd . Мы будем устанавливать vsftpd (Very Secure Ftp Daemon), стабильный, безопасный и быстрый FTP-сервер. Мы также покажем вам, как настроить сервер, чтобы ограничить пользователей их домашним каталогом и зашифровать всю передачу с помощью SSL / TLS.

Хотя FTP — очень популярный протокол, для более безопасной и быстрой передачи данных следует использовать SCP или SFTP .

Установка vsftpd на Ubuntu 20.04

Пакет vsftpd доступен в репозиториях Ubuntu. Для его установки выполните следующие команды:

Служба ftp автоматически запустится после завершения процесса установки. Чтобы проверить это, распечатайте статус службы:

Вывод должен показать, что служба vsftpd активна и работает:

Настройка vsftpd

Конфигурация сервера vsftpd хранится в файле /etc/vsftpd.conf

Большинство настроек сервера хорошо документированы внутри файла. Чтобы узнать обо всех доступных вариантах, посетите страницу документации vsftpd.

В следующих разделах мы рассмотрим некоторые важные настройки, необходимые для настройки безопасной установки vsftpd.

Начните с открытия файла конфигурации vsftpd:

1. Доступ по FTP

Мы разрешим доступ к FTP-серверу только локальным пользователям. Найдите anonymous_enable и local_enable и убедитесь, что ваша конфигурация соответствует приведенным ниже строкам:

2. Включение загрузки

Найдите и раскомментируйте write_enable чтобы разрешить изменения файловой системы, такие как загрузка и удаление файлов:

3. Chroot jail

Чтобы предотвратить доступ локальных пользователей FTP к файлам за пределами их домашних каталогов, раскомментируйте строку lne, начинающуюся с chroot_local_user :

По умолчанию из соображений безопасности, когда chroot включен, vsftpd откажется загружать файлы, если каталог, в котором заблокированы пользователи, доступен для записи.

Используйте одно из приведенных ниже решений, чтобы разрешить загрузку при включенном chroot:

    Метод 1. — Рекомендуемый вариант — оставить включенной функцию chroot и настроить каталоги FTP. В этом примере мы создадим ftp внутри дома пользователя, который будет служить uploads каталогом и каталогом загрузки с возможностью записи для загрузки файлов:

4. Пассивные FTP-соединения.

По умолчанию vsftpd использует активный режим. Чтобы использовать пассивный режим, установите минимальный и максимальный диапазон портов:

Вы можете использовать любой порт для пассивных FTP-соединений. Когда пассивный режим включен, FTP-клиент открывает соединение с сервером через случайный порт в выбранном вами диапазоне.

5. Ограничение входа пользователя

Вы можете настроить vsftpd, чтобы разрешить вход только определенным пользователям. Для этого добавьте следующие строки в конец файла:

Когда этот параметр включен, вам необходимо явно указать, какие пользователи могут входить в систему, добавив имена пользователей в /etc/vsftpd.user_list (по одному пользователю в строке).

6. Защита передачи с помощью SSL / TLS

Чтобы зашифровать передачи FTP с помощью SSL / TLS, вам потребуется сертификат SSL и настроить FTP-сервер для его использования.

Вы можете использовать существующий сертификат SSL, подписанный доверенным центром сертификации, или создать самозаверяющий сертификат.

Если у вас есть домен или поддомен, указывающий на IP-адрес FTP-сервера, вы можете быстро сгенерировать бесплатный SSL-сертификат Let’s Encrypt.

Мы сгенерируем 2048-битный закрытый ключ и самозаверяющий SSL-сертификат, который будет действителен в течение десяти лет:

И закрытый ключ, и сертификат будут сохранены в одном файле.

После создания SSL-сертификата откройте файл конфигурации vsftpd:

Найти rsa_cert_file и rsa_private_key_file директивы, изменить их значения на pam путь к файлу и установите ssl_enable директиву YES :

Если не указано иное, FTP-сервер будет использовать только TLS для безопасных подключений.

Перезапустите службу vsftpd

Когда вы закончите редактирование, конфигурационный файл vsftpd (без комментариев) должен выглядеть примерно так:

Сохраните файл и перезапустите службу vsftpd, чтобы изменения вступили в силу:

Открытие брандмауэра

Если вы используете брандмауэр UFW , вам необходимо разрешить FTP-трафик.

Чтобы открыть порт 21 (командный порт FTP), порт 20 (порт данных FTP) и 30000-31000 (диапазон пассивных портов), выполните следующие команды:

Чтобы избежать блокировки, убедитесь, что порт 22 открыт:

Перезагрузите правила UFW, отключив и снова включив UFW:

Чтобы проверить изменения, выполните:

Создание пользователя FTP

Чтобы протестировать FTP-сервер, мы создадим нового пользователя.

  • Если пользователь, которому вы хотите предоставить доступ по FTP, уже существует, пропустите 1-й шаг.
  • Если вы установили allow_writeable_chroot=YES в своем файле конфигурации, пропустите 3-й шаг.

На этом этапе ваш FTP-сервер полностью готов к работе. У вас должна быть возможность подключиться к серверу с помощью любого FTP-клиента, который можно настроить для использования шифрования TLS, например FileZilla .

Отключение доступа к оболочке

По умолчанию при создании пользователя, если это не указано явно, у пользователя будет SSH-доступ к серверу. Чтобы отключить доступ к оболочке, создайте новую оболочку, которая будет печатать сообщение, сообщающее пользователю, что его учетная запись ограничена только доступом по FTP.

Выполните следующие команды, чтобы создать /bin/ftponly и сделать его исполняемым:

Добавьте новую оболочку в список допустимых оболочек в /etc/shells :

Измените оболочку пользователя на /bin/ftponly :

Вы можете использовать ту же команду, чтобы изменить оболочку всех пользователей, которым вы хотите предоставить только FTP-доступ.

Вывод

Мы показали вам, как установить и настроить безопасный и быстрый FTP-сервер в вашей системе Ubuntu 20.04.

Если у вас есть какие-либо вопросы или отзывы, не стесняйтесь оставлять комментарии.

Настройка Брандмауэра Windows на примере открытия портов для web сайтов, FTP и DNS

/>В этой статье я покажу вам, как настроить Windows Firewall для сервера, на котором крутятся сайты и FTP, а так же DNS. Ничего сверхъестественного в этой процедуре нет, за исключением того, что нужно будет в менеджере IIS настроить диапазон портов для пассивного режима работы FTP сервера.

Заходим на наш сервер, переходим в менеджер IIS, в нем на главной странице сервера заходим в пункт поддержка Брандмауэра FTP.

И в нем указываем диапазон портов канала данных.

После этого заходим в inbound rules, в расширенной настройке Брандмауэра Windows.

Здесь нужно создать правила. Для FTP, HTTP, HTTPS, DNS – открываем порты TCP 20, 21, 53, 80, 443 и диапазон портов указанный на прошлом шаге. Для DNS так же нужно открыть UDP порт 53. Так же по желанию можно открыть ICMP протокол, что бы до нашего сервера проходили пинги.

Для того что бы отрыть TCP порты добавляем новое правило, выбираем port, жмем далее.

Выбираем TCP в вводим через запятую порты которые должны быть открыты, возможно, использование диапазонов через тире. Жмем далее.

Выбираем Allow Connection.

На следующем шаге выбираем к каким профилям будет применяться правило, я выбрал Public, т.к. эти правила настраиваю для внешней сети.

На последнем шаге даем название правилу.

Для того что бы открыть UDP порты, нужно делать все то же самое, только на втором шаге выбираем за место TCP – UDP.

Что бы открыть ICMP, нужно создать новое правило и на первом шаге выбрать Custom.

Далее выбираем, что бы правило применялось ко всем программам.

В протоколах выбираем ICMPv4, по желанию можно выбрать какие запросы разрешены (кнопка Customize…).

На следующем шаге можно выбрать с каких сетей разрешены запросы, и последние шаги такие же как при настройке портов. Так же, если у вас на сервере включен IPv6 можно разрешить ICMPv6 запросы, для этого повторяем шаги, но за место протокола ICMPv4 выбираем ICMPv6.

Как открыть порт 21 для ftp

Great ObiWan i have this result

Uh "great" now I’m blushing — come on 😀

i recreated the FTP site using the link you provided..

C:\Windows\system32>ftp 127.0.0.1
Connected to 127.0.0.1.
220 Microsoft FTP Service
User (127.0.0.1:(none)): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230 User logged in.
ftp>

So, it sounds like the issue was caused by some misconfiguration of the FTP site

as I wrote, one step at a time . and avoid pitfalls 😀

i have question though, can i also use the server IP or the web app
IP? so i can ftp like this..

Yes, it’s possible, although such a thing is outside the purpose of this forum which is dedicated to the windows server security; to proceed with further setup for your IIS FTP, please start a new discussion on the IIS forum; at any rate, before considering the "FTP connection issue" solved, please, try running an

from another machine and ensure that the FTP will still allow the connection and the logon

  • Marked as answer by jwill92 Wednesday, July 13, 2011 10:16 AM

All replies

FTP is already installed.. but when i portqry here is the result .

TCP port 21 (ftp service): NOT LISTENING

im done disabling the firewall but

im still getting

TCP port 21 (ftp service): NOT LISTENING

do i need to reboot the server?

Hi Guys, How can i open port 21 ?

I’m using Windows 2008 R2 I need to open
this for FTP.

First of all DO NOT DISABLE THE FIREWALL !

Then, start by ensuring that your FTP service is running and listening; to do so, fire up a command prompt (as admin) on the server console and enter the following commands

then, check the contents of the file "ports.txt" and ensure that port 21/TCP is in the list, if that isn’t the case then your FTP service isn’t running or either it isn’t listening on port 21 so you’ll need to re-check your FTP server config

Once the FTP server will be running and port 21/tcp will be shown as "LISTENING", you may go on creating the appropriate firewall rule, to do so, open the "server manager" expand the "configuration" node, then the "firewall" node and select "inbound rules"

Now, click "new rule" in the rightmost "actions" panel select the "port" option and click "next", select "TCP" and "specific local port" and enter 21 as the port number click "next" and select "allow the connection", then click next again

Tick all the scopes and click next once more enter a name for the rule like (e.g.) "FTP server (control)" and a description and click "finish" to complete the rule creation

That’s all, now, from another machine try opening an FTP session toward the FTP server, to do so, move to the console of another machine, fire up a command prompt and, at the prompt enter the following commands

by the way, replace "your_server. " with your FTP server hostname or IP address and "username" and "password" with valid user and password to access your FTP server; if all is working you should then log on and be able to see the directory listing of your FTP server, if that isn’t the case. post back here

1. You don’t need to open port 20/tcp, it’s NOT needed for
inbound connections (details here)

2. You may need to configure a passive port range both
in the FTP server and the firewall to allow PASV mode
clients (e.g. IE) to work

notice that this forum is related to windows server security; your request is "off topic" for the forum so, I’m kindly asking the forum admins to move this whole discussion to a more appropriate forum.

  • Proposed as answer by Russ Grover — SBITS.Biz Tuesday, July 12, 2011 9:19 AM

I don’t think this is good advice; especially considering that this forum is related to windows server security; disabling the firewall will just expose the server to unneeded risks and sincerely it’s not a SOLUTION to the issue

Thanks a lot ObiWan, i get this in port.txt

TCP 0.0.0.0:21 0.0.0.0:0 LISTENING 3132

however i’m still encountering issue

Connected to 10.0.2.1

Connection closed by remote host.

Thanks a lot ObiWan, i get this in port.txt

TCP 0.0.0.0:21 0.0.0.0:0 LISTENING 3132

Well, judging from the above it sounds like something is listening on
port 21 now. we’ll need to see WHAT is listening there, to do so, with
the "ports.txt" infos in your hand, fire up your task manager and check
which process has the "PID" (process ID) number 3132 and ensure it’s
your IIS FTP service, if that isn’t the case. report it here

however i’m still encountering issue

Connected to 10.0.2.1

Connection closed by remote host.

could you please try the same directly from your FTP server console and
entering

to see if it works ? Also, did you create the firewall rule ?

If so, please run the following commands (from an "elevated" cmd prompt)

and post here the contents of the "rules.txt" file (to do so, open a reply, then hit the "code" button and paste the "rules.txt" contents in the "code window" which will popup)

I don’t think this is good advice; especially considering that this forum is related to windows server security; disabling the firewall will just expose the server to unneeded risks and sincerely it’s not a SOLUTION to the issue

I never said this was a solution, nor did i imply this. I was simply keeping this troubleshooting and explaination to a minimum. I can clearly tell from this the previous posts what skill level i am dealing with. Thus, disabling the firewall for TESTING to verify what is causing the issue is the EASIEST solution. I never said to keep it off, nor did i say i would not have them turn it back on. But i didn’t feel the need to explain that at midnite, when i was helping this person.

You are welcome to complete what i have already started for this user since you are clearly the master here. Clearly you know more and can jump to more conclusions about things, and your opinion must be the correct one. Good luck Obi Wan.

Gunner . didn’t expect such a kind of reaction from you, also since you’re a "community contributor" and sincerely, I was surprised from your suggestion; lowering the "protection level" of whatever box w/o knowing if/how it’s protected isn’t a good idea; that box may just be directly connected to the internet and disabling the firewall may expose it to security issues.

Also, I don’t think we’re here to try "fighting" each other or demonstrating who’s "the best", I suppose that the whole idea behind these forums is to help people troubleshooting issues and possibly solving them, so, if you want to give up with this issue, up to you, but trying to shift the whole issue on a personal basis isn’t so "mature" in my opinion nor it will help "jwill92" then, again, up to you.

You can stop with the act, you clearly ment to insult me, with your pervious comments, and i simply called you on that insult. Your use of underlining, and capitalization was clearly ment to drive home a point. I simply rebutted you poor decision do to such a thing. So you can get off the "i’ve have no idea what you are refering to attitude." You know what you did, and the fact that you can’t say I’m Sorry. Tells me even more.

Your last post comes off as an appology without actually saying the words. Instead, you simply try to imply; your shocked at my response; i think so highly of you, etc. etc. Clearly, you think so highly of me, as not to appologize, and instead simply insult me more, by calling me or my actions inmature. Taking the high road paved on other people backs, itsn’t much of a high road to me. I see your actions for what they are.

I’m not here to fight with you, personally i don’t know you, but from what i can tell i don’t want to. Never address me again in any forum or thread.

You can stop with the act, you clearly ment to insult me, with your pervious comments, and i simply called you on that insult.

Never meant it, just wanted to ensure that the OP didn’t follow the suggestion of disabling the firewall so exposing the system, nothing more

attitude." You know what you did, and the fact that_you can’t say_I’m Sorry. Tells me even more.

If you want that, then. yes, I’m sorry you took it this way and sincerely I still believe you’re overreacting

Your last post comes off as an appology without actually saying the words. Instead, you simply try to imply; your shocked at my response; i think so highly of you, etc. etc. Clearly, you think so

Man, I do really think you got it totally wrong and on a personal level, up to you, didn’t apologize, since I don’t think there’s need to (never meant to give offense, I wrote it and — NO I’m NOT apologizing now) also, I’m not going to follow you in a flame if this is what you’re trying to start; this isn’t the right place for such stuff and, worse, won’t help the OP

Never address me again in any forum or thread.

Oh, this says it all

Other than NOT Disabling the Firewall which I agree is not a good solution.

And the other great suggestions by OBIWAN.

I don’t know if this has been asked? (Sorry a lot of Flamming going on.)
Can you get a FTP Response "INSIDE" your WAN?

If you are using the Server FTP Service
Is the FTP Service Running? (This is not meant to be an insult just trying to cover the bases)

On a side note: Personally I’ve found Microsoft’s FTP not as good as Simple Free FileZilla FTP Server.
http://filezilla-project.org/download.php?type=server

You can do nested Folders, FTP to Other Network Shares, and you don’t need to give the person an AD Account
(This IMO is a must if you have a "Guest" FTP Account)

In addition what ever FTP you are allowing to this server please make sure the "SERVER" has Anti Virus on it.
(Since you are unsure of the client side it’s always good to cover the bases.)

Russell Grover — SBITS.Biz MCP, MCPS, MCNPS, SBSC
Remote Small Business Server/Computer Support — www.SBITS.Biz
Redirect to Microsoft’s SBS Public Forum — www.SBSrepair.com
Redirect to Microsoft’s SBS Esssentials Support — www.SBSErepair.com

svchost.exe 3132 SYSTEM 00 Host Process for Windows Services

I also getting this

Connected to 127.0.0.1

Connection closed by remote host.

Yes, i already created firewall rule.. this is what i did

Rule Name: FTP Server (port 21)
———————————————————————-
Enabled: Yes
Direction: In
Profiles: Domain,Private,Public
Grouping:
LocalIP: Any
RemoteIP: Any
Protocol: TCP
LocalPort: 21
RemotePort: Any
Edge traversal: No
Action: Allow

Don’t know how to do this? 🙁

Yes.. FTP Service is running. If i can post the screenshot here i will.

i dont get a login .. i got this error

Connected to 10.0.2.1

Connection closed by remote host.

Hi ObiWan — I checked what is listening in port 3132 and i found this.

svchost.exe 3132 SYSTEM 00 Host Process for Windows Services

————————————————————————————

I also getting this

C:\Windows\system32>ftp 127.0.0.1

Connected to 127.0.0.1

Connection closed by remote host.

————————————————————————————

Yes, i already created firewall rule.. this is what i did

Rule Name: FTP Server (port 21)
———————————————————————-
Enabled: Yes
Direction: In
Profiles: Domain,Private,Public
Grouping:
LocalIP: Any
RemoteIP: Any
Protocol: TCP
LocalPort: 21
RemotePort: Any
Edge traversal: No
Action: Allow

Ok, sounds like the firewall rule is in place, so connections to port 21/tcp should be allowed; to ensure that this is the case and that the firewall isn’t "acting" 🙂 do the following

* Fire up the server manager

* Expand the "firewall" node

* Click the "firewall properties" in the central pane

* For each profile:

** Click the "customize" button in "logging"

** Select both "log dropped.." and "log successful.."

** confirm with Ok

* repeat for next profile (domain, private, public)

* Click Ok to confirm all changes

Fire up a command prompt and enter the following commands

now, try again to run "ftp 127.0.0.1" running it from the SERVER itself (cmd prompt); done that, go back to the server admin .. firewall, click on monitoring and click on the firewall logfile name; check the log to see if a connection to port 21/tcp was ALLOWED by the firewall (as it should)

If the above will be ok (connection allowed by the firewall), the issue is probably caused by the IIS FTP server settings since, looking at the test "ftp sessions" you ran till now, it sounds like the FTP is accepting the connection just to drop it immediately; this may be due to some restrictions set in the FTP configuration; if this is the case we’ll probably need further details related to the FTP config or either we may move the issue to a new discussion on the IIS forum (but before anything else, ensure to check the firewall log as for the above instructions)

I don’t know if this has been asked? (Sorry a lot of Flamming going on.)
Can you get a FTP Response "INSIDE" your WAN?

If you are using the Server FTP Service
Is the FTP Service Running? (This is not meant to be an insult just trying to cover the bases)

On a side note: Personally I’ve found Microsoft’s FTP not as good as Simple Free FileZilla FTP Server.
http://filezilla-project.org/download.php?type=server

You can do nested Folders, FTP to Other Network Shares, and you don’t need to give the person an AD Account
(This IMO is a must if you have a "Guest" FTP Account)

In addition what ever FTP you are allowing to this server please make sure the "SERVER" has Anti Virus on it.
(Since you are unsure of the client side it’s always good to cover the bases.)

Good advice for sure. now let’s wait for some further infos from "Jwill"

thanks ObiWan, your response was easy to understand for someone like me new to this set up.

this is what i saw in the firewall log..

Forgot, as for the IIS FTP, please have a look here and ensure you correctly created your FTP site, if that isn’t the case you may just delete the site and re-create it; ensure to avoid checking/entering a "virtual host name" and use the same settings shown at the above URL (that is, allow anonymous, READ ONLY) leave aside (for the moment) all the user isolation and the other stuff, just focus on the FTP site creation, done that, proceed with the instructions at my previous message

Читать:
Как удалить виртуальную машину в vmware

On Tue, 12 Jul 2011 14:11:37 +0000, Gunner999 wrote:

You can stop with the act, you clearly ment to insult me, with your pervious comments, and i simply called you on that insult.? Your use of underlining, and capitalization was clearly ment to drive home a point.? I simply rebutted you poor decision do to such a thing. So you can get off the "i’ve have no idea what you are refering to attitude."? You know what you did, and the fact that_you can’t say_I’m Sorry.? Tells me even more.

Enough with the bickering please.

Gunner999, IMO, you are the one at fault here.

1. Your OP, to which ObiWan responded gave no indication whatsoever that
your suggestion to disable the firewall was only meant as a troubleshooting
step. How do you expect someone to be able figure out your intentions from
a 3 word post? Neither of your posts indicate that you were suggesting
disabling the firewall as a troubleshooting step.

2. ObiWan was clearly, again IMO, using emphasis to let the OP know that
disabling the firewall was not a good security practice. His use of
emphasis was not directed towards you, nor was it meant to be insulting or
otherwise demeaning in any way. Quite frankly, had I come across either of
your two posts of 7/12 before ObiWan had responded, I would have responded
pretty much exactly the same way.

None of us who frequent these forums are mind readers, and trying to glean
someone’s intentions from a few words in a forum post usually ends up badly
for all parties involved.

Paul Adare
MVP — Identity Lifecycle Manager
http://www.identit.ca
My girlfriend always laughs during sex — no matter what she’s reading.
— Steve Jobs (Founder: Apple Computers)

thanks ObiWan, your response was easy to understand for someone like me new to this set up.

now, the above tells us that the firewall ALLOWED the incoming connection, so the "drop connection" issue you’re experiencing isn’t due to the firewall filtering the port, this leaves us with the IIS FTP config; try following the instructions in my other message and ensure to setup a basic, vanilla FTP site and let’s see if that way we’ll solve the issue

  • Edited by ObiWan Wednesday, July 13, 2011 9:58 AM

Great ObiWan i have this result

i recreated the FTP site using the link you provided..

C:\Windows\system32>ftp 127.0.0.1
Connected to 127.0.0.1.
220 Microsoft FTP Service
User (127.0.0.1:(none)): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230 User logged in.
ftp>

i have question though, can i also use the server IP or the web app IP? so i can ftp like this..

Great ObiWan i have this result

Uh "great" now I’m blushing — come on 😀

i recreated the FTP site using the link you provided..

C:\Windows\system32>ftp 127.0.0.1
Connected to 127.0.0.1.
220 Microsoft FTP Service
User (127.0.0.1:(none)): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230 User logged in.
ftp>

So, it sounds like the issue was caused by some misconfiguration of the FTP site

as I wrote, one step at a time . and avoid pitfalls 😀

i have question though, can i also use the server IP or the web app
IP? so i can ftp like this..

Yes, it’s possible, although such a thing is outside the purpose of this forum which is dedicated to the windows server security; to proceed with further setup for your IIS FTP, please start a new discussion on the IIS forum; at any rate, before considering the "FTP connection issue" solved, please, try running an

from another machine and ensure that the FTP will still allow the connection and the logon

  • Marked as answer by jwill92 Wednesday, July 13, 2011 10:16 AM

You’re welcome; as for the FTP IP address, in the instructions you saw, the example was showing 127.0.0.1, now, if you want to let the FTP server to listen on "all" the IP addresses for the given box (including 127.. and 10. ) you may just select "any" from the dropdown box; also notice that enabling anonymous access may be ok for a start, but you’ll probably need to take some further steps and configure authenticated (and write) access, for such a task, I suggest you to open a new discussion on the IIS forum

I appolgize if this come off a little snotty, but clearly you missed forums edicate 101. So let me enlighten you. The post below is a flame. It is equivalent to standing 2 feet from my face and yelling. Everyone knows this. CAPTIALIZATION = YELLING, underlying simply added to the flame. Only adding to the problem the insinuations ObiWan clearly does in many of his posts. insinuation = An unpleasant hint or suggestion of something bad.

My technical rebuttal was this.

Any reasonable person would have, realized their previous post was a mistake, clearly based on flawed assumption on their part. But appreantly reasonableness isn’t being applied here. My mistake was the sentences after this technical response. They were not appropriate, but clearly i was ticked off to say the least.

As to your point #2, While you can certainly assert that ObiWan’s post was not directed to the OP, if so he could have clearly maked it that way, but i believe it was direct to me. So no i don’t believe your opinion here is correct, it is clearly based on flawed thinking. Or at a minimum it helps you see why i was ticked off, by applying your same "were not mind readers" belief of point #1.

ObiWan should have been been more clear, i should have been more clear, but at the end of the day, none of this matters. The fact that obiwan was given a chance to take responsiblity and clearly just piled on tells me everything about that person. Mostly i don’t want anything to do with him.

On Wed, 13 Jul 2011 14:10:47 +0000, Gunner999 wrote:

I appolgize if this come off a little snotty, but clearly you missed forums edicate 101. So let?me enlighten you.? The post below is a flame.? It is equivalent to standing 2 feet from my face and yelling.? Everyone knows this.? CAPTIALIZATION = YELLING, underlying simply added to the flame.? Only adding to the problem?the insinuations ObiWan clearly does in many of his posts.? insinuation = An unpleasant hint or suggestion of something bad.

I have been participating in online forums and Usenet news groups since
before the World Wide Web even existed and I can assure you that I do not
need any lessons from you in "forums etiquette". A single capitalized word
in a post is not shouting, and in this case was clearly meant for emphasis.
As for whether or not ObiWan’s post was a flame, it most definitely is not,
and if you think that was a flame, you clearly haven’t spent much time
online. As to whether or not his post was an insinuation or not, given what
you’d posted, his post was definitely not an insinuation, it was simply a
statement of fact given what you’d posted. Your post was "disable the
firewall" and mentioned nothing at all about that being simply for
troubleshooting purposes. On its face value, with no further evidence that
you meant it to be only a troubleshooting step, it is quite simply put,
horrible advice and ObiWan did nothing wrong with pointing out that fact.
Note that he did not attack you personally, he merely expressed his opinion
on the 3 little words you posted and he was correct. If you meant it to be
simply for troubleshooting then surely you could have preceded the 3 words
for did post with two additional ones, regardless of the time of day you
posted. Had you simply added "For troubleshooting" to the beginning of that
post, we wouldn’t be having this discussion right now.

I don’t think this is good advice; especially considering that this forum is related to windows server security; disabling the firewall will just expose the server to unneeded risks and sincerely_it’s not a SOLUTION_ to the issue

My technical rebuttal was this.

I?never said this was a solution, nor did i imply this.? I was simply keeping this troubleshooting and explaination to a minimum.? I can clearly tell from this the previous posts what skill level i am dealing with.? Thus, disabling the firewall for TESTING to verify what is causing the issue is the?EASIEST solution.? I never said to keep it off, nor did i say i would not have them turn it back on.? But i didn’t feel the need to explain that at midnite, when i was helping this person.

As above, had you mentioned this in your original post, or your second
post, we wouldn’t be having this discussion now. You didn’t post the above
until your third post.

Any reasonable person would have, realized their previous post was a mistake, clearly based on flawed assumption on their part.? But appreantly reasonableness isn’t being applied here.? My mistake was?the sentences after this technical response.? They were not appropriate, but clearly i was ticked off to say the least.

You had no reason to be ticked off, and if you were, then the correct
response would have been to mark the post as abuse, provide your reason and
let the forum moderators deal with the issue.

As to your point #2, While you can certainly assert that ObiWan’s post?was not directed to the OP,?if so?he could have?clearly maked it that way, but i believe it?was direct to me.? So no i don’t believe your opinion here is correct, it is clearly based on flawed thinking.? Or at a minimum it helps you see why i was ticked off, by applying your same "were not mind readers" belief of point? #1.?

ObiWan should have been been more clear, i should have been more clear, but at the end of the day, none of this matters.

At the end of the day, you’ve completely misread ObiWan’s post and you’ve
completely overreacted. ObiWan definitely makes a lot of valuable
contributions here and to ignore his posts because you seemingly can’t tell
the difference between someone taking exception to something you posted at
a technical level versus attacking you personally is really your issue, not
his.

I’m done with this discussion as you’ve clearly made your mind up about
this issue (and apparently have an ongoing issue with ObiWan that predates
this thread).

If, in the future you think you’ve been flamed or publicly attacked then
mark the post in question as abuse, provide your reason and let the forum
moderators deal with it. If you respond as you did to ObiWan’s post in this
thread again, I’ll contact the forum moderators myself, personally, and
report you. There was no call to claim abuse in the first place, and even
less to clutter up this forum with your rant.

Как настроить и управлять FTP-сервером в Windows 10

Настройка сервера протокола передачи файлов (FTP) в Windows 10 , возможно, является одним из наиболее удобных решений для загрузки и выгрузки файлов практически из любого места на ваш компьютер без ограничений, обычно встречающихся в облачных сервисах хранения.

Используя FTP-сервер, вы в основном создаете частное облако, которое полностью контролируется вами. У вас нет месячных ограничений на переводы, и скорость может быть высокой (в зависимости от вашей интернет-подписки).

Кроме того, нет ограничений по типу или размеру файла, что означает, что вы можете передавать текстовый файл размером 1 КБ, а также файл резервной копии объемом 1 ТБ, и вы можете создать столько учетных записей, сколько хотите, чтобы семья и друзья хранили и обменивались файлами друг с другом.

Существует множество сторонних решений для настройки файлового сервера такого типа, но даже если это может показаться сложным, функцию FTP, входящую в комплект Windows 10, не сложно настроить.

В этом руководстве по Windows 10 мы расскажем, как настроить FTP-сервер на вашем компьютере и управлять им для передачи файлов в домашней сети или удаленно через Интернет.

  • Как установить компоненты FTP-сервера в Windows 10
  • Как настроить FTP-сервер сайта в Windows 10
  • Как настроить несколько учетных записей FTP в Windows 10
  • Как подключиться к FTP-серверу удаленно в Windows 10

Как установить компоненты FTP-сервера в Windows 10

Хотя в Windows 10 включена поддержка настройки FTP-сервера, вам необходимо добавить необходимые компоненты вручную.

Чтобы установить компоненты FTP-сервера, выполните следующие действия:

  1. Откройте панель управления .
  2. Нажмите на Программы .

В разделе «Программы и компоненты» щелкните ссылку « Включить или отключить функции Windows» .

Установите флажок « Инструменты веб-управления» с параметрами по умолчанию, но убедитесь, что установлен флажок « Консоль управления IIS» .

После того, как вы выполните эти шаги, на вашем устройстве будут установлены компоненты для настройки FTP-сервера.

Как настроить FTP-сервер сайта в Windows 10

После установки необходимых компонентов вы можете приступить к настройке FTP-сервера на компьютере, что предполагает создание нового FTP-сайта, настройку правил брандмауэра и разрешение внешних подключений.

Настройка FTP-сайта

Чтобы настроить FTP-сайт, выполните следующие действия:

  1. Откройте панель управления .
  2. Нажмите на систему и безопасность .

Нажмите на Администрирование .

Дважды щелкните ярлык диспетчера служб IIS .

На панели «Подключения» щелкните правой кнопкой мыши Сайты и выберите опцию Добавить сайт FTP .

В разделе «Каталог содержимого» в разделе «Физический путь» нажмите кнопку справа, чтобы найти папку, которую вы хотите использовать для хранения файлов FTP.

Совет: рекомендуется создать папку в корне основного системного диска или на совершенно другом жестком диске. В противном случае, если вы добавите домашнюю папку в одну из папок по умолчанию при добавлении нескольких учетных записей, у пользователей не будет разрешения на доступ к папке. (Вы можете настроить разрешения для папок, но это не рекомендуется.)

В разделе «SSL» установите флажок « Без SSL» .

Важное замечание: В бизнес-среде или на FTP-сервере, на котором размещаются конфиденциальные данные, рекомендуется настроить сайт так, чтобы он требовал SSL для предотвращения передачи данных в виде открытого текста.

Проверьте параметры чтения и записи .

После выполнения этих шагов, FTP-сайт должен работать на вашем компьютере.

Настройка правил брандмауэра

Если вы используете встроенный брандмауэр в Windows 10, подключения к FTP-серверу будут по умолчанию заблокированы, пока вы не пропустите службу вручную, выполнив следующие действия:

  1. Откройте Центр безопасности Защитника Windows .
  2. Нажмите на Брандмауэр и защита сети .

Нажмите « Разрешить приложение через брандмауэр» .

Проверьте параметр FTP-сервера , а также параметры, разрешающие частный и публичный доступ.

После того, как вы выполнили эти шаги, FTP-сервер теперь должен быть доступен из локальной сети.

В случае, если вы используете стороннее программное обеспечение для обеспечения безопасности, обязательно посетите веб-сайт поддержки вашего поставщика для получения более подробной информации о добавлении правил брандмауэра.

Разрешение внешних подключений

Чтобы сделать ваш FTP-сервер доступным из Интернета, вам также необходимо открыть порт 21 протокола управления передачей / Интернет-протокола (TCP / IP) на маршрутизаторе.

Инструкции по переадресации порта будут отличаться в зависимости от маршрутизатора и даже в зависимости от версии прошивки. В следующих шагах мы опишем общие шаги, но вам может потребоваться обратиться к веб-сайту поддержки производителя для получения подробной информации.

Чтобы перенаправить порт 21, чтобы разрешить FTP-соединения за пределами локальной сети, выполните следующие действия:

  1. Откройте Настройки .
  2. Нажмите на Сеть и Интернет .
  3. Нажмите на статус .

Нажмите кнопку Изменить свойства соединения .

Запишите адрес DNS-сервера IPv4 , который является адресом вашего маршрутизатора. Обычно это частный адрес в диапазоне 192.168.xx. Например, 192.168.1.1 или 192.168.2.1.

Добавьте новое правило для пересылки входящих соединений на FTP-сервер из Интернета, включив эту информацию:

  • Имя службы: введите описательное имя для правила переадресации портов.
  • Диапазон портов: 21.
  • Локальный IP: это IP-адрес сервера FTP, который маршрутизатор будет пересылать входящие соединения. (Это ваш IPv4-адрес. См. Шаг № 5. )
  • Локальный порт: 21.
  • Протокол: TCP.

Нажмите кнопку Добавить.

После выполнения этих шагов любое входящее соединение через порт 21 будет перенаправлено на FTP-сервер для установления сетевого сеанса.

Настройка статического IP-адреса

Если вы планируете передавать файлы через Интернет на регулярной основе, то рекомендуется настроить статический IP-адрес, чтобы избежать необходимости перенастраивать маршрутизатор в будущем, если IP-адрес вашего устройства изменится.

  1. Откройте панель управления .
  2. Нажмите на Сеть и Интернет .
  3. Нажмите на Центр управления сетями и общим доступом .

На левой панели выберите параметр « Изменить настройки адаптера» .

Щелкните правой кнопкой мыши сетевой адаптер и выберите параметр « Свойства» .

Нажмите кнопку Свойства .

Укажите настройки IP:

  • IP-адрес: укажите статический сетевой адрес для компьютера. Вы должны использовать адрес вне области DHCP-сервера, настроенный в вашем маршрутизаторе, чтобы предотвратить конфликты. Например, 192.168.1.200 .
  • Маска подсети: В домашней сети адрес обычно составляет 255.255.255.0 .
  • Шлюз по умолчанию: Обычно это IP-адрес маршрутизатора. Например, 192.168.1.1 .
  • Предпочитаемый DNS-сервер. Как правило, это также IP-адрес вашего маршрутизатора.

После того, как вы выполнили эти шаги, конфигурация IP больше не изменится, и это предотвратит потенциальные проблемы с подключением в будущем.

Как настроить несколько учетных записей FTP в Windows 10

Если вы хотите, чтобы несколько человек могли одновременно загружать и выгружать файлы на FTP-сервер, вам нужно настроить несколько учетных записей с определенными разрешениями.

Этот процесс выполняется путем создания новых стандартных учетных записей Windows 10 и настройки правильных настроек.

Создание новых учетных записей пользователей

Чтобы добавить несколько учетных записей на FTP-сервер, выполните следующие действия:

  1. Откройте Настройки .
  2. Нажмите на учетные записи .
  3. Нажмите на семью и других людей .

Нажмите кнопку Добавить кого-то еще на этот компьютер .

Введите адрес учетной записи Microsoft для пользователя, которому вы хотите разрешить доступ к FTP-серверу.

Совет. Если вы хотите, чтобы пользователи обращались к серверу с использованием локальных учетных записей , выберите параметр « У меня нет данных для входа в систему» , нажмите « Добавить пользователя без учетной записи Microsoft» и следуйте инструкциям на экране, чтобы создать учетную запись.

После того, как вы выполнили эти шаги, вам может потребоваться повторить шаги для создания дополнительных учетных записей.

Настройка учетных записей пользователей на FTP-сервер

Если вы хотите, чтобы несколько пользователей имели доступ к FTP-серверу одновременно, вам нужно изменить настройки сервера, выполнив следующие действия:

  1. Откройте панель управления .
  2. Нажмите на систему и безопасность .

Нажмите на Администрирование .

Дважды щелкните ярлык диспетчера служб IIS .

Дважды щелкните параметр « Правила авторизации FTP» .

На правой панели выберите опцию Добавить разрешающее правило .

Выберите один из этих двух вариантов:

  • Все пользователи: разрешает каждому пользователю, настроенному на вашем устройстве Windows 10, доступ к FTP-серверу.
  • Указанные пользователи: вы можете использовать эту опцию, чтобы указать всех пользователей, которым вы хотите получить доступ к FTP-серверу. (Вы должны разделять каждого пользователя запятой.)

Проверьте параметры чтения и записи .

После выполнения этих шагов все указанные вами пользователи должны иметь доступ к FTP-серверу для удаленной загрузки и выгрузки файлов.

Как подключиться к FTP-серверу удаленно в Windows 10

После того, как вы создали и настроили свой FTP-сервер, существует множество способов просмотра, загрузки и загрузки файлов.

Просмотр и загрузка файлов

Если вы хотите просматривать и загружать файлы, вы можете сделать это с помощью Internet Explorer, Firefox или Chrome:

  1. Откройте веб-браузер .
  2. В адресной строке введите IP-адрес сервера, используя ftp: // , и нажмите Enter . Например, ftp://192.168.1.100 .
  3. Введите учетные данные вашей учетной записи.

Нажмите кнопку Вход в систему .

После выполнения этих шагов вы сможете перемещаться и загружать файлы и папки с сервера.

В случае, если вы пытаетесь подключиться из Интернета, вы должны указать публичный (интернет) IP-адрес сети, в которой размещен FTP-сервер.

Самый простой способ выяснить это — выполнить поиск «Какой у меня IP» в Google или Bing в сети, прежде чем пытаться подключиться через удаленное соединение. Кроме того, если у вас нет статического IP-адреса от вашего интернет-провайдера или вы не используете службу DDNS, вам может потребоваться регулярно проверять ваш общедоступный IP-адрес, чтобы подключиться, в случае его изменения.

Просмотр, загрузка и загрузка файлов

Самый простой способ просмотра, загрузки и выгрузки файлов — использовать File Explorer с этими шагами.

  1. Откройте проводник .
  2. В адресной строке введите адрес сервера с помощью ftp: // и нажмите Enter . Например, ftp://192.168.1.100 .
  3. Введите учетные данные вашей учетной записи.

Отметьте опцию Сохранить пароль .

Нажмите кнопку Вход в систему .

После выполнения этих шагов вы сможете просматривать папки и файлы, а также загружать и выгружать файлы, как будто они локально хранятся на вашем устройстве.

Чтобы избежать повторного подключения к серверу FTP, можно щелкнуть правой кнопкой мыши Быстрый доступ на левой панели и выбрать параметр « Прикрепить текущую папку к быстрому доступу» .

Конечно, вы не ограничены в использовании File Explorer, так как существует множество FTP-клиентов, таких как FileZilla, которые вы можете использовать для передачи файлов.

Завершение вещей

В этом руководстве мы изложили шаги для начала работы с функцией FTP-сервера, доступной в Windows 10, а также шаги для просмотра, загрузки и загрузки файлов. Однако имейте в виду, что вы можете установить соединение, только если устройство, на котором размещена служба, включено. Вы не сможете получить доступ к своим файлам, когда компьютер спит или находится в спящем режиме.

Компонент FTP-сервер доступен в Windows 10 Pro, а также в Windows 10 Home и более старых версиях ОС, включая Windows 8.1 и Windows 7.

Больше ресурсов по Windows 10

Для получения более полезных статей, обзоров и ответов на распространенные вопросы о Windows 10 посетите следующие ресурсы:

Похожие статьи