PDA

Bekijk de volledige versie : частые реконнекты на WL-500gP v2



Jelezni
10-10-2009, 08:03
Коллеги, прочитав много статей на данном форуме и в результате многодневных танцев с бубнами все-таки настроил данную железку для скачивания торрентов на USB носитель (качает и даже что-то раздает, правда немного хуже, но с этим пока еще разбираюсь)!!!
За что, всем огромное спасибо!!!
Одно но, периодически происходит реконнект с данным логом, прошу помоши:

"Oct 10 10:23:04 dropbear[4282]: Child connection from ::ffff:219.131.173.42:50139
Oct 10 10:23:07 dropbear[4282]: login attempt for nonexistent user from ::ffff:219.131.173.42:50139
Oct 10 10:23:08 dropbear[4282]: exit before auth: Disconnect received
Oct 10 10:23:12 dropbear[4283]: Child connection from ::ffff:219.131.173.42:51217
Oct 10 10:23:15 dropbear[4283]: login attempt for nonexistent user from ::ffff:219.131.173.42:51217
Oct 10 10:23:16 dropbear[4283]: exit before auth: Disconnect received
Oct 10 10:23:16 dropbear[4284]: Child connection from ::ffff:219.131.173.42:53081
Oct 10 10:23:19 dropbear[4284]: login attempt for nonexistent user from ::ffff:219.131.173.42:53081
Oct 10 10:23:20 dropbear[4284]: exit before auth: Disconnect received
Oct 10 10:23:20 dropbear[4285]: Child connection from ::ffff:219.131.173.42:54159
Oct 10 10:23:24 dropbear[4285]: login attempt for nonexistent user from ::ffff:219.131.173.42:54159
Oct 10 10:23:25 dropbear[4285]: exit before auth: Disconnect received
Oct 10 10:23:25 dropbear[4286]: Child connection from ::ffff:219.131.173.42:55167
Oct 10 10:23:28 dropbear[4286]: login attempt for nonexistent user from ::ffff:219.131.173.42:55167
Oct 10 10:23:29 dropbear[4286]: exit before auth: Disconnect received
Oct 10 10:23:30 dropbear[4287]: Child connection from ::ffff:219.131.173.42:56464
Oct 10 10:23:33 dropbear[4287]: login attempt for nonexistent user from ::ffff:219.131.173.42:56464
Oct 10 10:23:34 dropbear[4287]: exit before auth: Disconnect received
Oct 10 10:23:34 dropbear[4288]: Child connection from ::ffff:219.131.173.42:57875
Oct 10 10:23:38 dropbear[4288]: login attempt for nonexistent user from ::ffff:219.131.173.42:57875
Oct 10 10:23:39 dropbear[4288]: exit before auth: Disconnect received
Oct 10 10:23:39 dropbear[4289]: Child connection from ::ffff:219.131.173.42:58881
Oct 10 10:23:42 dropbear[4289]: login attempt for nonexistent user from ::ffff:219.131.173.42:58881
Oct 10 10:23:43 dropbear[4289]: exit before auth: Disconnect received
Oct 10 10:23:43 dropbear[4290]: Child connection from ::ffff:219.131.173.42:59938
Oct 10 10:23:47 dropbear[4290]: login attempt for nonexistent user from ::ffff:219.131.173.42:59938
Oct 10 10:23:48 dropbear[4290]: exit before auth: Disconnect received
Oct 10 10:23:48 dropbear[4291]: Child connection from ::ffff:219.131.173.42:60934
Oct 10 10:23:52 dropbear[4291]: login attempt for nonexistent user from ::ffff:219.131.173.42:60934
Oct 10 10:23:53 dropbear[4291]: exit before auth: Disconnect received
Oct 10 10:23:53 dropbear[4292]: Child connection from ::ffff:219.131.173.42:33816
Oct 10 10:23:56 dropbear[4292]: login attempt for nonexistent user from ::ffff:219.131.173.42:33816
Oct 10 10:23:57 dropbear[4292]: exit before auth: Disconnect received
Oct 10 10:23:58 dropbear[4293]: Child connection from ::ffff:219.131.173.42:35105
Oct 10 10:24:01 dropbear[4293]: login attempt for nonexistent user from ::ffff:219.131.173.42:35105
Oct 10 10:24:02 dropbear[4293]: exit before auth: Disconnect received
Oct 10 10:24:02 dropbear[4294]: Child connection from ::ffff:219.131.173.42:36105
Oct 10 10:24:05 dropbear[4294]: login attempt for nonexistent user from ::ffff:219.131.173.42:36105
Oct 10 10:24:06 dropbear[4294]: exit before auth: Disconnect received
Oct 10 10:24:06 dropbear[4295]: Child connection from ::ffff:219.131.173.42:37494
Oct 10 10:24:09 dropbear[4295]: login attempt for nonexistent user from ::ffff:219.131.173.42:37494
Oct 10 10:24:10 dropbear[4295]: exit before auth: Disconnect received
Oct 10 10:24:11 dropbear[4296]: Child connection from ::ffff:219.131.173.42:38483
Oct 10 10:24:14 dropbear[4296]: login attempt for nonexistent user from ::ffff:219.131.173.42:38483
Oct 10 10:24:15 dropbear[4296]: exit before auth: Disconnect received
Oct 10 10:24:15 dropbear[4297]: Child connection from ::ffff:219.131.173.42:39484
Oct 10 10:24:18 dropbear[4297]: login attempt for nonexistent user from ::ffff:219.131.173.42:39484
Oct 10 10:24:19 dropbear[4297]: exit before auth: Disconnect received
Oct 10 10:24:19 dropbear[4298]: Child connection from ::ffff:219.131.173.42:40526
Oct 10 10:24:22 dropbear[4298]: login attempt for nonexistent user from ::ffff:219.131.173.42:40526
Oct 10 10:24:23 dropbear[4298]: exit before auth: Disconnect received
Oct 10 10:24:24 dropbear[4299]: Child connection from ::ffff:219.131.173.42:40745"

прошивка - Olegs 1.9.2.7-10 (ставил и более новые, но они уходили в глубокий даун, на родной от Асуса не работает Download Master)
подключен USB носитель на 5 Gb Sony по теме простая настройка роутера до Торрентов.

as3k
10-10-2009, 08:08
http://wl500g.info/showthread.php?t=4525

Jelezni
10-10-2009, 08:15
http://wl500g.info/showthread.php?t=4525

я конечно в английском не силен, но так понимаю что нуно включить ssh СЕРВЕР через команды...


Enabling at startup, and opening the firewall to accept incomming ssh connections
The Firmware version 1.9.2.7-4 by Oleg has a nice feature that it runs certain files at boot time, if they exist. Create theese files :

mkdir /usr/local < enter >
mkdir /usr/local/sbin < enter >
touch /usr/local/sbin/post-boot < enter >
touch /usr/local/sbin/post-firewall < enter >
chmod +x /usr/local/sbin/* < enter >
Create the correct lines in the post-boot file :
echo "#!/bin/sh" >> /usr/local/sbin/post-boot < enter >
echo "dropbear" >> /usr/local/sbin/post-boot < enter >
Now you need to open your firewall, to accept WAN (Internet) connections to your ssh server.
(This services is running on port 22)


echo "#!/bin/sh" >> /usr/local/sbin/post-firewall < enter >
echo "iptables -D INPUT -j DROP" >> /usr/local/sbin/post-firewall < enter >
echo "iptables -A INPUT -p tcp --dport 22 -j ACCEPT" >> /usr/local/sbin/post-firewall < enter >
echo "iptables -t nat -A PREROUTING -i $1 -p tcp --dport 22 -j DNAT --to-destination $4:22 " >> /usr/local/sbin/post-firewall < enter >
echo "iptables -A INPUT -j DROP" >> /usr/local/sbin/post-firewall < enter >
The above will open the firewall for ssh connections.

Only thing now, is to save the changes we made. Since /usr/local/sbin is in the internal flash memory of the ASUS Device,
we need to save it to flash and tell the router to use the files by enabling flashfs :

flashfs save < enter >
flashfs commit < enter >
flashfs enable < enter >
That is basically it, reboot your ASUS WL device, and enjoy your ssh server:-)
reboot < enter > I hope you found this guide useful.

OlegaVB
10-10-2009, 08:22
Это все попытки подключения к SSH

Oct 10 10:24:06 dropbear[4295]: Child connection from ::ffff:219.131.173.42:37494
Oct 10 10:24:09 dropbear[4295]: login attempt for nonexistent user from ::ffff:219.131.173.42:37494
Oct 10 10:24:10 dropbear[4295]: exit before auth: Disconnect received
Попытка входа несуществующего пользователя - дословно. Адрес, откуда подключаются - 219.131.173.42
Проще всего сменить порт SSH на нестандартный.

Jelezni
10-10-2009, 08:31
Это все попытки подключения к SSH

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

А как это сделать???

Jelezni
10-10-2009, 08:33
А как это сделать???

сделал как написал ниже в посте, теперь вот что пишет, но теперь только один раз, это нормально???

Oct 10 11:09:16 dropbear[147]: Failed listening on '22': Error listening: Address already in use
Oct 10 11:09:16 dropbear[147]: premature exit: No listening ports available.
Oct 10 11:09:16 dropbear[148]: Running in background

OlegaVB
10-10-2009, 08:35
Вы два раза запустили dropbear
В файле /tmp/local/sbin/post-boot вставить

dropbear -p 50022 > /dev/null 2>&1
Вместо того, что там есть про dropbear
Потом сохранить

flashfs save && flashfs commit && flashfs enable

Jelezni
10-10-2009, 08:45
Вы два раза запустили dropbear
В файле /tmp/local/sbin/post-boot вставить

Вместо того, что там есть про dropbear
Потом сохранить

Можно для ламеров, чуток поподробнее как на пальцах, зайти туда, написать то, пожалуйста...

vectorm
10-10-2009, 21:15
Можно для ламеров, чуток поподробнее как на пальцах, зайти туда, написать то, пожалуйста...
Прикрепленные темы по настройке с нуля.