http://wiki.dd-wrt.com/wiki/index.php?title=%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_ProFTPd_%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0&action=history&feed=atom Использование ProFTPd сервера - Revision history 2024-03-29T04:55:42Z Revision history for this page on the wiki MediaWiki 1.10.1 http://wiki.dd-wrt.com/wiki/index.php?title=%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_ProFTPd_%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0&diff=43175&oldid=prev Glenn: +{{Languages|ProFTPd Server}} +Category:FTP/ru 2012-06-23T08:52:13Z <p>+{{Languages|ProFTPd Server}} +<a href="/wiki/index.php/Category:FTP/ru" title="Category:FTP/ru">Category:FTP/ru</a></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 08:52, 23 June 2012</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">Оригинальная статья http://www.dd-wrt.com/wiki/index.php/ProFTPd_Server</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">{{Languages|ProFTPd Server}}</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&#160;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==Использование ProFTPd сервера==</td><td> </td><td style="background: #eee; font-size: smaller;">==Использование ProFTPd сервера==</td></tr> <tr><td colspan="2" align="left"><strong>Line 44:</strong></td> <td colspan="2" align="left"><strong>Line 43:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Вы можете открыть доступ к содержимому своего FTP сервера любому без использования логина и пароля, такой доступ может быть только на чтение. Вы так же должны задать место на диске, к которому собираетесь открыть доступ. Каталог указывается через слэш /, например /Public. Разрешая анонимный доступ к своему IP адресу или домену [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]] вы подвергаете свои данные риску, поэтому лучше хорошо подумать перед использованием этой опции.</td><td> </td><td style="background: #eee; font-size: smaller;">Вы можете открыть доступ к содержимому своего FTP сервера любому без использования логина и пароля, такой доступ может быть только на чтение. Вы так же должны задать место на диске, к которому собираетесь открыть доступ. Каталог указывается через слэш /, например /Public. Разрешая анонимный доступ к своему IP адресу или домену [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]] вы подвергаете свои данные риску, поэтому лучше хорошо подумать перед использованием этой опции.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:FTP/ru]]</td></tr> </table> Glenn http://wiki.dd-wrt.com/wiki/index.php?title=%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_ProFTPd_%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0&diff=37046&oldid=prev LWF: /* Открытие доступа к FTP из WAN */ 2010-11-09T14:26:22Z <p><span class="autocomment">Открытие доступа к FTP из WAN</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:26, 9 November 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 40:</strong></td> <td colspan="2" align="left"><strong>Line 40:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Верхняя команда эффективней, так как в ней добавлены параметры --limit и --limit-burst.</td><td> </td><td style="background: #eee; font-size: smaller;">Верхняя команда эффективней, так как в ней добавлены параметры --limit и --limit-burst.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Команда означает что только 3 попытки ввода логина и пароля будут разрешены в течении одной минуты, и если все 3 будут неверными файрвол заблокирует IP адрес с которого ведется атака на 1 минуту. Это помогает против большинства парольных ботов, тем не менее особо умные могут поправить настройки своего бота, чтобы учесть эти ограничения. Вы так же можете задавать параметры --limit до секунд, минут, часов или дней, значение --limit burst так же может быть изменено.</td><td> </td><td style="background: #eee; font-size: smaller;">Команда означает что только 3 попытки ввода логина и пароля будут разрешены в течении одной минуты, и если все 3 будут неверными файрвол заблокирует IP адрес с которого ведется атака на 1 минуту. Это помогает против большинства парольных ботов, тем не менее особо умные могут поправить настройки своего бота, чтобы учесть эти ограничения. Вы так же можете задавать параметры --limit до секунд, минут, часов или дней, значение --limit burst так же может быть изменено.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">===Разрешение анонимного доступа===</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Вы можете открыть доступ к содержимому своего FTP сервера любому без использования логина и пароля, такой доступ может быть только на чтение. Вы так же должны задать место на диске, к которому собираетесь открыть доступ. Каталог указывается через слэш /, например /Public. Разрешая анонимный доступ к своему IP адресу или домену [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]] вы подвергаете свои данные риску, поэтому лучше хорошо подумать перед использованием этой опции.</td></tr> </table> LWF http://wiki.dd-wrt.com/wiki/index.php?title=%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_ProFTPd_%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0&diff=37045&oldid=prev LWF: /* Открытие доступа к FTP из WAN */ 2010-11-09T14:06:28Z <p><span class="autocomment">Открытие доступа к FTP из WAN</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:06, 9 November 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 20:</strong></td> <td colspan="2" align="left"><strong>Line 20:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">===Открытие доступа к FTP из WAN===</td><td> </td><td style="background: #eee; font-size: smaller;">===Открытие доступа к FTP из WAN===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">По умолчанию порт 21 (FTP протокол) заблокирован <del style="color: red; font-weight: bold; text-decoration: none;">вcтроенным </del>файрволом. Чтобы открыть <del style="color: red; font-weight: bold; text-decoration: none;">этому </del>сервису доступ через файрвол вы должны ввести несколько комманд [[Iptables command]] в поле Administration -&gt; Commands. Меню выглядит так http://www.dd-wrt.com/demo/Diagnostics.asp</td><td>+</td><td style="background: #cfc; font-size: smaller;">По умолчанию порт 21 (FTP протокол) заблокирован <ins style="color: red; font-weight: bold; text-decoration: none;">встроенным </ins>файрволом. Чтобы открыть сервису доступ через файрвол вы должны ввести несколько комманд [[Iptables command]] в поле Administration -&gt; Commands. Меню выглядит так http://www.dd-wrt.com/demo/Diagnostics.asp</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">By opening port </del>21 <del style="color: red; font-weight: bold; text-decoration: none;">to the world</del>, <del style="color: red; font-weight: bold; text-decoration: none;">there is always going to be an inherent risk of an attacker probing the open port, and then attempting to crack your password. This risk however can be thwarted by setting strong passwords </del>(<del style="color: red; font-weight: bold; text-decoration: none;">more than </del>8 <del style="color: red; font-weight: bold; text-decoration: none;">characters</del>, <del style="color: red; font-weight: bold; text-decoration: none;">with random characters, i.e </del>!@#$%^&amp;*() ) <del style="color: red; font-weight: bold; text-decoration: none;">and by adding some clever commands via </del>Iptables. <del style="color: red; font-weight: bold; text-decoration: none;"> Lets discuss them and show what they do</del>.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Открывая доступ к </ins>21 <ins style="color: red; font-weight: bold; text-decoration: none;">порту вы подвергаете себя риску</ins>, <ins style="color: red; font-weight: bold; text-decoration: none;">поэтому лучше задать сложный пароль </ins>(<ins style="color: red; font-weight: bold; text-decoration: none;">более </ins>8 <ins style="color: red; font-weight: bold; text-decoration: none;">и желательно случайных символов</ins>, <ins style="color: red; font-weight: bold; text-decoration: none;">например </ins>!@#$%^&amp;*()) <ins style="color: red; font-weight: bold; text-decoration: none;">и применить несколько умных команд из </ins>Iptables. <ins style="color: red; font-weight: bold; text-decoration: none;">Давайте рассмотрим, что можно делать с их помощью</ins>.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">When inserting Iptables rules, it is important to remember that the bottom line, or rule, is the first to be executed. The top line is the last.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Когда вы вставляете правила из Iptables. важно помнить что правило должно стоять первым чтобы выполняться. &quot;</ins>When inserting Iptables rules, it is important to remember that the bottom line, or rule, is the first to be executed. The top line is the last.<ins style="color: red; font-weight: bold; text-decoration: none;">&quot;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">A basic command for allowing </del>WAN FTP <del style="color: red; font-weight: bold; text-decoration: none;">access is as follows</del>:</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Основная команда для открытия </ins>WAN <ins style="color: red; font-weight: bold; text-decoration: none;">доступа к </ins>FTP <ins style="color: red; font-weight: bold; text-decoration: none;">выглядит так</ins>:</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> iptables -I INPUT 1 -p tcp --dport 21 -j logaccept </td><td> </td><td style="background: #eee; font-size: smaller;"> iptables -I INPUT 1 -p tcp --dport 21 -j logaccept </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Верхняя команда задает что 21й TCP Port будет открыт для доступа из сети и будет писать лог.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">The above command dictates that TCP Port 21 will be allowed through the INPUT (Internet) chain and will Log all activity to the routers Kernel.</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Однако эта комана не очень безопасна</ins>, <ins style="color: red; font-weight: bold; text-decoration: none;">так как позволяет любому со сканером портов и генератором паролей подобрать ваш логин и пароль</ins>. <ins style="color: red; font-weight: bold; text-decoration: none;">Следующие команды представляют из себя более безопасную альтернативу</ins>:</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&#160;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">This command, however</del>, <del style="color: red; font-weight: bold; text-decoration: none;">is not very secure as anyone with a port scanner and a password generator can attempt to &quot;guess&quot; your user-name(s) and password(s)</del>. <del style="color: red; font-weight: bold; text-decoration: none;"> The following rules will provide a much safer alternative</del>:</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> wanf=`nvram get wan_iface`</td><td> </td><td style="background: #eee; font-size: smaller;"> wanf=`nvram get wan_iface`</td></tr> <tr><td colspan="2" align="left"><strong>Line 39:</strong></td> <td colspan="2" align="left"><strong>Line 38:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> iptables -I INPUT 2 -i $wanf -p tcp -m state --state NEW --dport 21 -m limit --limit 3/minute --limit-burst 2 -j logaccept</td><td> </td><td style="background: #eee; font-size: smaller;"> iptables -I INPUT 2 -i $wanf -p tcp -m state --state NEW --dport 21 -m limit --limit 3/minute --limit-burst 2 -j logaccept</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&#160;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Верхняя команда эффективней, так как в ней добавлены параметры </ins>--limit <ins style="color: red; font-weight: bold; text-decoration: none;">и </ins>--limit-burst.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">The above commands are much more effective as the </del>--limit <del style="color: red; font-weight: bold; text-decoration: none;">and </del>--limit-burst <del style="color: red; font-weight: bold; text-decoration: none;">parameters have been added</del>. <del style="color: red; font-weight: bold; text-decoration: none;"> The example dictates that if a remote user/attacker attempts to hack your FTP server, they will only get 2 attempts (--limit-burst 2) to connect before the Kernel logs those two packets, after which the </del>3 <del style="color: red; font-weight: bold; text-decoration: none;">per minute syntax is implemented</del>, <del style="color: red; font-weight: bold; text-decoration: none;">meaning only </del>3 <del style="color: red; font-weight: bold; text-decoration: none;">attempts at &quot;guessing&quot; your user-name(s) and password(s) will be allowed every minute. If they fail 3 times, the firewall will temporarily &quot;Ban&quot; their </del>IP <del style="color: red; font-weight: bold; text-decoration: none;">for </del>1 <del style="color: red; font-weight: bold; text-decoration: none;">minute</del>. <del style="color: red; font-weight: bold; text-decoration: none;"> This renders most password bots useless</del>, <del style="color: red; font-weight: bold; text-decoration: none;">however there are some pretty determined hackers out there that can discover this and adapt their software to match the limit rule</del>. <del style="color: red; font-weight: bold; text-decoration: none;"> You can change the </del>--limit <del style="color: red; font-weight: bold; text-decoration: none;">rule to either Seconds</del>, <del style="color: red; font-weight: bold; text-decoration: none;">Minutes</del>, <del style="color: red; font-weight: bold; text-decoration: none;">Hours</del>, <del style="color: red; font-weight: bold; text-decoration: none;">or Days. The </del>--limit burst <del style="color: red; font-weight: bold; text-decoration: none;">value may also be changed</del>.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Команда означает что только </ins>3 <ins style="color: red; font-weight: bold; text-decoration: none;">попытки ввода логина и пароля будут разрешены в течении одной минуты</ins>, <ins style="color: red; font-weight: bold; text-decoration: none;">и если все </ins>3 <ins style="color: red; font-weight: bold; text-decoration: none;">будут неверными файрвол заблокирует </ins>IP <ins style="color: red; font-weight: bold; text-decoration: none;">адрес с которого ведется атака на </ins>1 <ins style="color: red; font-weight: bold; text-decoration: none;">минуту</ins>. <ins style="color: red; font-weight: bold; text-decoration: none;">Это помогает против большинства парольных ботов</ins>, <ins style="color: red; font-weight: bold; text-decoration: none;">тем не менее особо умные могут поправить настройки своего бота, чтобы учесть эти ограничения</ins>. <ins style="color: red; font-weight: bold; text-decoration: none;">Вы так же можете задавать параметры </ins>--limit <ins style="color: red; font-weight: bold; text-decoration: none;">до секунд</ins>, <ins style="color: red; font-weight: bold; text-decoration: none;">минут</ins>, <ins style="color: red; font-weight: bold; text-decoration: none;">часов или дней</ins>, <ins style="color: red; font-weight: bold; text-decoration: none;">значение </ins>--limit burst <ins style="color: red; font-weight: bold; text-decoration: none;">так же может быть изменено</ins>.</td></tr> </table> LWF http://wiki.dd-wrt.com/wiki/index.php?title=%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_ProFTPd_%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0&diff=37044&oldid=prev LWF: /* Использование ProFTPd сервера */ 2010-11-09T11:23:55Z <p><span class="autocomment">Использование ProFTPd сервера</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 11:23, 9 November 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 17:</strong></td> <td colspan="2" align="left"><strong>Line 17:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Чтобы открыть доступ из WAN должен быть задан аккаун для DDNS. Ссылка на пока не переведенную инструкцию [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]]. </td><td> </td><td style="background: #eee; font-size: smaller;">Чтобы открыть доступ из WAN должен быть задан аккаун для DDNS. Ссылка на пока не переведенную инструкцию [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]]. </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Далее можно перейти к другим настройкам.</td><td> </td><td style="background: #eee; font-size: smaller;">Далее можно перейти к другим настройкам.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">===Открытие доступа к FTP из WAN===</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">По умолчанию порт 21 (FTP протокол) заблокирован вcтроенным файрволом. Чтобы открыть этому сервису доступ через файрвол вы должны ввести несколько комманд [[Iptables command]] в поле Administration -&gt; Commands. Меню выглядит так http://www.dd-wrt.com/demo/Diagnostics.asp</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">By opening port 21 to the world, there is always going to be an inherent risk of an attacker probing the open port, and then attempting to crack your password. This risk however can be thwarted by setting strong passwords (more than 8 characters, with random characters, i.e !@#$%^&amp;*() ) and by adding some clever commands via Iptables. Lets discuss them and show what they do.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">When inserting Iptables rules, it is important to remember that the bottom line, or rule, is the first to be executed. The top line is the last.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">A basic command for allowing WAN FTP access is as follows:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> iptables -I INPUT 1 -p tcp --dport 21 -j logaccept </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">The above command dictates that TCP Port 21 will be allowed through the INPUT (Internet) chain and will Log all activity to the routers Kernel.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">This command, however, is not very secure as anyone with a port scanner and a password generator can attempt to &quot;guess&quot; your user-name(s) and password(s). The following rules will provide a much safer alternative:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> wanf=`nvram get wan_iface`</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> iptables -I INPUT 2 -i $wanf -p tcp --dport 21 -j logdrop</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> iptables -I INPUT 2 -i $wanf -p tcp -m state --state NEW --dport 21 -m limit --limit 3/minute --limit-burst 2 -j logaccept</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">The above commands are much more effective as the --limit and --limit-burst parameters have been added. The example dictates that if a remote user/attacker attempts to hack your FTP server, they will only get 2 attempts (--limit-burst 2) to connect before the Kernel logs those two packets, after which the 3 per minute syntax is implemented, meaning only 3 attempts at &quot;guessing&quot; your user-name(s) and password(s) will be allowed every minute. If they fail 3 times, the firewall will temporarily &quot;Ban&quot; their IP for 1 minute. This renders most password bots useless, however there are some pretty determined hackers out there that can discover this and adapt their software to match the limit rule. You can change the --limit rule to either Seconds, Minutes, Hours, or Days. The --limit burst value may also be changed.</td></tr> </table> LWF http://wiki.dd-wrt.com/wiki/index.php?title=%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_ProFTPd_%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0&diff=37041&oldid=prev LWF: /* Использование ProFTPd сервера */ 2010-11-09T10:15:13Z <p><span class="autocomment">Использование ProFTPd сервера</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 10:15, 9 November 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 15:</strong></td> <td colspan="2" align="left"><strong>Line 15:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">... и так далее.</td><td> </td><td style="background: #eee; font-size: smaller;">... и так далее.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Чтобы открыть доступ из WAN должен быть задан аккаун для DDNS. Ссылка на пока не переведенную инструкцию [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]] </td><td>+</td><td style="background: #cfc; font-size: smaller;">Чтобы открыть доступ из WAN должен быть задан аккаун для DDNS. Ссылка на пока не переведенную инструкцию [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]]<ins style="color: red; font-weight: bold; text-decoration: none;">. </ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Далее можно перейти к другим настройкам.</td><td> </td><td style="background: #eee; font-size: smaller;">Далее можно перейти к другим настройкам.</td></tr> </table> LWF http://wiki.dd-wrt.com/wiki/index.php?title=%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_ProFTPd_%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0&diff=37040&oldid=prev LWF: /* Использование ProFTPd сервера */ 2010-11-09T10:14:51Z <p><span class="autocomment">Использование ProFTPd сервера</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 10:14, 9 November 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 16:</strong></td> <td colspan="2" align="left"><strong>Line 16:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Чтобы открыть доступ из WAN должен быть задан аккаун для DDNS. Ссылка на пока не переведенную инструкцию [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]] </td><td> </td><td style="background: #eee; font-size: smaller;">Чтобы открыть доступ из WAN должен быть задан аккаун для DDNS. Ссылка на пока не переведенную инструкцию [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]] </td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">Как только это сделано </del>можно перейти к другим настройкам.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Далее </ins>можно перейти к другим настройкам.</td></tr> </table> LWF http://wiki.dd-wrt.com/wiki/index.php?title=%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_ProFTPd_%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0&diff=37039&oldid=prev LWF: New page: Оригинальная статья http://www.dd-wrt.com/wiki/index.php/ProFTPd_Server ==Использование ProFTPd сервера== DD-WRT по умолчанию на об... 2010-11-09T10:14:14Z <p>New page: Оригинальная статья http://www.dd-wrt.com/wiki/index.php/ProFTPd_Server ==Использование ProFTPd сервера== DD-WRT по умолчанию на об...</p> <p><b>New page</b></p><div>Оригинальная статья http://www.dd-wrt.com/wiki/index.php/ProFTPd_Server<br /> <br /> <br /> ==Использование ProFTPd сервера==<br /> <br /> DD-WRT по умолчанию на обоих сборках и mini-usb и MEGA включает FTP службу, известную как ProFTPd.<br /> Есть некоторые опции которые не доступны через веб интерфейс, и о которых лучше узнать до того как вы соберетесь открыть доступ к содержимому жесткого диска через LAN или WAN.<br /> <br /> Одна из важных настроек это назначение параметров доступа. По умолчанию разрешение на запись &quot;Allow Write&quot; отключено. Если вы хотите загружать информацию или файлы через локальную сеть или из удаленного местоположения вы должны сделать доступным запись. Следующим шагом будет задание пользователей и их паролей. Важно отметить, что когда это сделано ваш супер пользователь должен идти первой строчкой. Приблизительный формат:<br /> <br /> root P@ssw0rd<br /> guest P@ssw0rd<br /> username P@ssw0rd<br /> <br /> ... и так далее.<br /> <br /> Чтобы открыть доступ из WAN должен быть задан аккаун для DDNS. Ссылка на пока не переведенную инструкцию [[DDNS - How to setup Custom DDNS settings using embedded inadyn - HOWTO | Dynamic DNS]] <br /> Как только это сделано можно перейти к другим настройкам.</div> LWF