VPN тунель и скрипт по его переподнятию.

Проблемы установки, настройки и работы Правильной Операционной Системы

Модератор: terminus

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
InventoR
ст. лейтенант
Сообщения: 1344
Зарегистрирован: 2006-12-10 19:43:25
Контактная информация:

VPN тунель и скрипт по его переподнятию.

Непрочитанное сообщение InventoR » 2007-04-16 14:29:57

Добрый день.
Брал тут на сайте интересный вот скрипктик по автоматическому переподключения к серваку вот содержание:

Код: Выделить всё

mail# cat /script/startinet.sh
#!/bin/sh
testz=`ps ax | grep -c testinet.sh`
if (test $testz -gt "1")
 then
     exit 1
fi
/script/testinet.sh
mail#

Код: Выделить всё

mail# cat /script/testinet.sh
#!/bin/sh
nr=""
ni=""
while !(test $ni)
 do
   is=`/sbin/ping -c 3 192.168.5.1 | grep -c "64 bytes"`
   if !(test $is -gt "0")
    then
        /usr/bin/killall -9 pptp
        if !(test $nr)
 then
     nr=1
     timeobr=`date`
fi
sleep 40
/usr/local/sbin/pptp ****.myftp.org vpn &
        sleep 30
    else
        if (test $nr)
 then
     echo хМЕРЮ МЕ АШКН Я $timeobr ДН `date` >> /var/log/internet.log
 fi
ni=1
   fi
done
mail#
Но вот проблема, переодически связь падает и бывает вот такая вот ерунда:

Код: Выделить всё

root        10 97.4  0.0     0     8  ??  RL   Sun12AM 2244:15.34 [idle]
root         0  0.0  0.0     0     0  ??  WLs  Sun12AM   0:00.00 [swapper]
root         1  0.0  0.1   772   260  ??  SLs  Sun12AM   0:01.18 /sbin/init --
root         2  0.0  0.0     0     8  ??  DL   Sun12AM   0:07.58 [g_event]
root         3  0.0  0.0     0     8  ??  DL   Sun12AM   0:24.59 [g_up]
root         4  0.0  0.0     0     8  ??  DL   Sun12AM   0:21.60 [g_down]
root         5  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.00 [kqueue taskq]
root         6  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.00 [acpi_task_0]
root         7  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.00 [acpi_task_1]
root         8  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.00 [acpi_task_2]
root         9  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.00 [thread taskq]
root        11  0.0  0.0     0     8  ??  WL   Sun12AM   6:27.67 [swi4: clock sio]
root        12  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [swi3: vm]
root        13  0.0  0.0     0     8  ??  WL   Sun12AM   0:30.65 [swi1: net]
root        14  0.0  0.0     0     8  ??  DL   Sun12AM   0:08.78 [yarrow]
root        15  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [swi2: cambio]
root        16  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [swi6: task queue]
root        17  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [swi6: Giant taskq]
root        18  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [swi5: +]
root        19  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [irq9: acpi0]
root        20  0.0  0.0     0     8  ??  WL   Sun12AM   0:27.60 [irq18: rl0]
root        21  0.0  0.0     0     8  ??  WL   Sun12AM   0:24.79 [irq19: rl1]
root        22  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [irq20: atapci0]
root        23  0.0  0.0     0     8  ??  WL   Sun12AM   0:10.56 [irq14: ata0]
root        24  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [irq15: ata1]
root        25  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [irq21: uhci0 uhci*]
root        26  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.01 [usb0]
root        27  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.00 [usbtask]
root        28  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.01 [usb1]
root        29  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.01 [usb2]
root        30  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.01 [usb3]
root        31  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.01 [usb4]
root        32  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.83 [fdc0]
root        33  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [irq7: ppc0]
root        34  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [swi0: sio]
root        35  0.0  0.0     0     8  ??  WL   Sun12AM   0:00.00 [irq1: atkbd0]
root        36  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.38 [pagedaemon]
root        37  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.00 [vmdaemon]
root        38  0.0  0.0     0     8  ??  DL   Sun12AM   0:21.50 [pagezero]
root        39  0.0  0.0     0     8  ??  DL   Sun12AM   0:00.75 [bufdaemon]
root        40  0.0  0.0     0     8  ??  DL   Sun12AM   0:44.91 [syncer]
root        41  0.0  0.0     0     8  ??  DL   Sun12AM   0:01.35 [vnlru]
root        42  0.0  0.0     0     8  ??  DL   Sun12AM   0:02.71 [softdepflush]
root        43  0.0  0.0     0     8  ??  DL   Sun12AM   0:16.80 [schedcpu]
root       128  0.0  0.4  1252   728  ??  Is   Sun12AM   0:00.00 adjkerntz -i
root       533  0.0  0.2   528   284  ??  Is   Sun12AM   0:00.00 /sbin/devd
root       604  0.0  0.5  1376  1020  ??  Ss   Sun12AM   0:03.99 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log 
root       729  0.0  4.7 17504  8860  ??  Ss   Sun12AM   0:05.79 /usr/local/sbin/httpd -DNOHTTPACCEPT
root       775  0.0  0.4  1288   820  ??  Is   Sun12AM   0:00.19 /usr/sbin/usbd
ftp        781  0.0  1.2  3172  2268  ??  Is   Sun12AM   0:01.16 proftpd: (accepting connections) (proftpd)
squid      794  0.0  0.9  3840  1764  ??  Is   Sun12AM   0:00.00 /usr/local/sbin/squid -D
squid      796  0.0 14.6 29096 27452  ??  S    Sun12AM   1:58.93 (squid) -D (squid)
www        809  0.0  4.9 17504  9156  ??  I    Sun12AM   0:00.18 /usr/local/sbin/httpd -DNOHTTPACCEPT
www        810  0.0  4.9 17504  9148  ??  I    Sun12AM   0:00.17 /usr/local/sbin/httpd -DNOHTTPACCEPT
www        811  0.0  4.9 17504  9148  ??  I    Sun12AM   0:00.21 /usr/local/sbin/httpd -DNOHTTPACCEPT
www        812  0.0  4.9 17504  9148  ??  I    Sun12AM   0:00.16 /usr/local/sbin/httpd -DNOHTTPACCEPT
www        813  0.0  4.9 17504  9148  ??  I    Sun12AM   0:00.18 /usr/local/sbin/httpd -DNOHTTPACCEPT
root       819  0.0  2.7  8960  5068  ??  Ss   Sun12AM   3:44.62 /usr/local/libexec/netams -lf /usr/local/etc/netams.cfg
squid      828  0.0  0.3  1248   648  ??  Is   Sun12AM   0:00.03 (unlinkd) (unlinkd)
root       890  0.0  1.3  3524  2480  ??  Ss   Sun12AM   0:00.01 /usr/sbin/sshd
root       901  0.0  0.6  1388  1052  ??  Ss   Sun12AM   0:01.67 /usr/sbin/cron -s
root       990  0.0  0.6  1596  1096  ??  Ss   Sun12AM   1:34.76 /sbin/natd -dynamic -use_sockets -same_ports -interface gre0
ichatsrv  1002  0.0  0.6  1484  1064  ??  Is   Sun12AM   0:00.00 ./ichatsrvd
root      1007  0.0  1.4  3484  2608  ??  Ss   Sun12AM   0:03.92 sendmail: accepting connections (sendmail)
root      1011  0.0  0.6  1548  1036  ??  Ss   Sun12AM   1:34.50 /sbin/natd -p 8900 -dynamic -interface rl0
root      1062  0.0  0.6  1464  1196  ??  Is   Sun12AM   0:00.01 /usr/sbin/inetd -wW -C 60
root     12772  0.0  1.8  3340  3360  ??  Ss    7:00AM   0:01.29 /usr/local/bin/ntpd -c /etc/ntp.conf -l /var/log/ntpd.log -p
www      23020  0.0  4.9 17504  9148  ??  I     8:00AM   0:00.16 /usr/local/sbin/httpd -DNOHTTPACCEPT
www      23025  0.0  4.9 17504  9148  ??  I     8:00AM   0:00.09 /usr/local/sbin/httpd -DNOHTTPACCEPT
www      23026  0.0  4.9 17504  9148  ??  I     8:00AM   0:00.11 /usr/local/sbin/httpd -DNOHTTPACCEPT
root     42763  0.0  1.8  4556  3372  ??  Ss   10:00AM   0:02.29 /usr/sbin/named
squid    47700  0.0  0.8  1996  1472  ??  Is   11:56PM   0:00.67 (redirector) /usr/local/rejik/redirector.conf (redirector)
squid    47701  0.0  0.8  1996  1508  ??  Is   11:56PM   0:00.05 (redirector) /usr/local/rejik/redirector.conf (redirector)
squid    47702  0.0  0.7  1996  1400  ??  Is   11:56PM   0:00.02 (redirector) /usr/local/rejik/redirector.conf (redirector)
squid    47703  0.0  0.7  1996  1400  ??  Is   11:56PM   0:00.02 (redirector) /usr/local/rejik/redirector.conf (redirector)
squid    47704  0.0  0.8  1996  1468  ??  Is   11:56PM   0:00.01 (redirector) /usr/local/rejik/redirector.conf (redirector)
squid    47705  0.0  0.8  1996  1472  ??  Is   11:56PM   0:00.01 (redirector) /usr/local/rejik/redirector.conf (redirector)
squid    47706  0.0  0.5  1520   956  ??  Is   11:56PM   0:00.01 (ncsa_auth) /usr/local/etc/squid/passwd (ncsa_auth)
squid    47707  0.0  0.4  1480   732  ??  Is   11:56PM   0:00.00 (ncsa_auth) /usr/local/etc/squid/passwd (ncsa_auth)
squid    47708  0.0  0.4  1480   732  ??  Is   11:56PM   0:00.00 (ncsa_auth) /usr/local/etc/squid/passwd (ncsa_auth)
squid    47710  0.0  0.4  1480   732  ??  Is   11:56PM   0:00.01 (ncsa_auth) /usr/local/etc/squid/passwd (ncsa_auth)
squid    47711  0.0  0.4  1480   732  ??  Is   11:56PM   0:00.01 (ncsa_auth) /usr/local/etc/squid/passwd (ncsa_auth)
root     59858  0.0  0.5  1708  1004  ??  Is   11:50AM   0:00.01 /bin/sh -c /script/startinet.sh
root     59861  0.0  0.5  1708  1004  ??  I    11:50AM   0:00.00 /bin/sh /script/startinet.sh
root     59868  0.0  0.5  1720  1016  ??  S    11:50AM   0:00.38 /bin/sh /script/startinet.sh
root     67801  0.0  0.5  1708  1004  ??  Is   12:40PM   0:00.01 /bin/sh -c /script/startinet.sh
root     67804  0.0  0.5  1708  1004  ??  I    12:40PM   0:00.00 /bin/sh /script/startinet.sh
root     67810  0.0  0.5  1712  1008  ??  S    12:40PM   0:00.25 /bin/sh /script/startinet.sh
root     68631  0.0  0.6  1400  1176  ??  S    12:45PM   0:00.00 cron: running job (cron)
root     68633  0.0  0.5  1708  1004  ??  Is   12:45PM   0:00.00 /bin/sh -c /script/startinet.sh
root     68637  0.0  0.5  1708  1004  ??  I    12:45PM   0:00.00 /bin/sh /script/startinet.sh
root     68643  0.0  0.5  1712  1008  ??  S    12:45PM   0:00.24 /bin/sh /script/startinet.sh
root     68875  0.0  0.0     0     0  ??  Z    12:46PM   0:00.00 <defunct>
root     69484  0.0  0.6  1400  1176  ??  I    12:50PM   0:00.00 cron: running job (cron)
root     69488  0.0  0.5  1708  1004  ??  Is   12:50PM   0:00.00 /bin/sh -c /script/startinet.sh
root     69489  0.0  0.5  1708  1004  ??  I    12:50PM   0:00.00 /bin/sh /script/startinet.sh
root     69496  0.0  0.5  1712  1008  ??  S    12:50PM   0:00.23 /bin/sh /script/startinet.sh
root     69540  0.0  0.0     0     0  ??  Z    12:50PM   0:00.00 <defunct>
root     70321  0.0  0.6  1400  1176  ??  S    12:55PM   0:00.00 cron: running job (cron)
root     70324  0.0  0.5  1708  1004  ??  Is   12:55PM   0:00.01 /bin/sh -c /script/startinet.sh
root     70330  0.0  0.5  1708  1004  ??  I    12:55PM   0:00.00 /bin/sh /script/startinet.sh
root     70338  0.0  0.5  1712  1008  ??  S    12:55PM   0:00.22 /bin/sh /script/startinet.sh
root     70717  0.0  0.0     0     0  ??  Z    12:57PM   0:00.00 <defunct>
root     71133  0.0  0.6  1400  1176  ??  I     1:00PM   0:00.00 cron: running job (cron)
root     71139  0.0  0.5  1708  1004  ??  Is    1:00PM   0:00.01 /bin/sh -c /script/startinet.sh
root     71144  0.0  0.5  1708  1004  ??  I     1:00PM   0:00.00 /bin/sh /script/startinet.sh
root     71153  0.0  0.5  1712  1008  ??  I     1:00PM   0:00.21 /bin/sh /script/startinet.sh
root     71320  0.0  0.0     0     0  ??  Z     1:00PM   0:00.00 <defunct>
root     72823  0.0  0.6  1400  1176  ??  S     1:10PM   0:00.00 cron: running job (cron)
root     72827  0.0  0.5  1708  1004  ??  Is    1:10PM   0:00.01 /bin/sh -c /script/startinet.sh
root     72830  0.0  0.5  1708  1004  ??  I     1:10PM   0:00.00 /bin/sh /script/startinet.sh
root     72835  0.0  0.5  1712  1008  ??  S     1:10PM   0:00.18 /bin/sh /script/startinet.sh
root     73002  0.0  0.0     0     0  ??  Z     1:10PM   0:00.00 <defunct>
root     74579  0.0  0.6  1400  1176  ??  I     1:20PM   0:00.00 cron: running job (cron)
root     74581  0.0  0.5  1708  1004  ??  Is    1:20PM   0:00.01 /bin/sh -c /script/startinet.sh
root     74584  0.0  0.5  1708  1004  ??  I     1:20PM   0:00.00 /bin/sh /script/startinet.sh
root     74591  0.0  0.5  1712  1008  ??  I     1:20PM   0:00.16 /bin/sh /script/startinet.sh
root     74630  0.0  0.0     0     0  ??  Z     1:20PM   0:00.00 <defunct>
root     77473  0.0  0.6  1400  1176  ??  I     1:35PM   0:00.00 cron: running job (cron)
root     77475  0.0  0.5  1708  1004  ??  Is    1:35PM   0:00.01 /bin/sh -c /script/startinet.sh
root     77480  0.0  0.5  1708  1004  ??  I     1:35PM   0:00.00 /bin/sh /script/startinet.sh
root     77485  0.0  0.5  1712  1008  ??  S     1:35PM   0:00.12 /bin/sh /script/startinet.sh
root     77680  0.0  0.0     0     0  ??  Z     1:35PM   0:00.00 <defunct>
root     78495  0.0  0.6  1400  1176  ??  I     1:40PM   0:00.00 cron: running job (cron)
root     78497  0.0  0.5  1708  1004  ??  Is    1:40PM   0:00.01 /bin/sh -c /script/startinet.sh
root     78501  0.0  0.5  1708  1004  ??  I     1:40PM   0:00.00 /bin/sh /script/startinet.sh
root     78507  0.0  0.5  1712  1008  ??  I     1:40PM   0:00.11 /bin/sh /script/startinet.sh
root     78805  0.0  0.0     0     0  ??  Z     1:41PM   0:00.00 <defunct>
root     79548  0.0  0.6  1400  1176  ??  I     1:45PM   0:00.00 cron: running job (cron)
root     79552  0.0  0.6  1708  1128  ??  Is    1:45PM   0:00.00 /bin/sh -c /script/startinet.sh
root     79554  0.0  0.6  1708  1128  ??  I     1:45PM   0:00.00 /bin/sh /script/startinet.sh
root     79560  0.0  0.6  1712  1132  ??  I     1:45PM   0:00.10 /bin/sh /script/startinet.sh
root     79816  0.0  0.0     0     0  ??  Z     1:46PM   0:00.00 <defunct>
root     80503  0.0  0.6  1400  1176  ??  I     1:50PM   0:00.00 cron: running job (cron)
root     80505  0.0  0.6  1708  1172  ??  Is    1:50PM   0:00.00 /bin/sh -c /script/startinet.sh
root     80508  0.0  0.6  1708  1172  ??  I     1:50PM   0:00.00 /bin/sh /script/startinet.sh
root     80515  0.0  0.6  1712  1176  ??  S     1:50PM   0:00.10 /bin/sh /script/startinet.sh
root     80564  0.0  0.0     0     0  ??  Z     1:50PM   0:00.00 <defunct>
root     81471  0.0  0.6  1400  1176  ??  S     1:55PM   0:00.00 cron: running job (cron)
root     81475  0.0  0.6  1708  1172  ??  Is    1:55PM   0:00.01 /bin/sh -c /script/startinet.sh
root     81477  0.0  0.6  1708  1172  ??  I     1:55PM   0:00.00 /bin/sh /script/startinet.sh
root     81487  0.0  0.6  1712  1176  ??  S     1:55PM   0:00.08 /bin/sh /script/startinet.sh
root     81659  0.0  0.0     0     0  ??  Z     1:55PM   0:00.00 <defunct>
root     82369  0.0  0.6  1400  1176  ??  S     2:00PM   0:00.00 cron: running job (cron)
root     82374  0.0  0.6  1708  1172  ??  Is    2:00PM   0:00.01 /bin/sh -c /script/startinet.sh
root     82378  0.0  0.6  1708  1172  ??  I     2:00PM   0:00.00 /bin/sh /script/startinet.sh
root     82387  0.0  0.6  1712  1176  ??  S     2:00PM   0:00.07 /bin/sh /script/startinet.sh
root     82576  0.0  0.0     0     0  ??  Z     2:00PM   0:00.00 <defunct>
root     83250  0.0  0.6  1400  1176  ??  I     2:05PM   0:00.00 cron: running job (cron)
root     83252  0.0  0.6  1708  1172  ??  Is    2:05PM   0:00.01 /bin/sh -c /script/startinet.sh
root     83257  0.0  0.6  1708  1172  ??  I     2:05PM   0:00.00 /bin/sh /script/startinet.sh
root     83262  0.0  0.6  1708  1172  ??  I     2:05PM   0:00.06 /bin/sh /script/startinet.sh
root     84141  0.0  0.6  1400  1176  ??  I     2:10PM   0:00.00 cron: running job (cron)
root     84143  0.0  0.6  1708  1172  ??  Is    2:10PM   0:00.00 /bin/sh -c /script/startinet.sh
root     84147  0.0  0.6  1708  1172  ??  I     2:10PM   0:00.00 /bin/sh /script/startinet.sh
root     84153  0.0  0.6  1712  1176  ??  S     2:10PM   0:00.05 /bin/sh /script/startinet.sh
root     84188  0.0  0.0     0     0  ??  Z     2:10PM   0:00.00 <defunct>
root     84232  0.0  0.0     0     0  ??  Z     2:10PM   0:00.00 <defunct>
root     84956  0.0  0.6  1400  1176  ??  S     2:15PM   0:00.00 cron: running job (cron)
root     84960  0.0  0.6  1708  1172  ??  Is    2:15PM   0:00.00 /bin/sh -c /script/startinet.sh
root     84963  0.0  0.6  1708  1172  ??  I     2:15PM   0:00.01 /bin/sh /script/startinet.sh
root     84968  0.0  0.6  1712  1176  ??  S     2:15PM   0:00.03 /bin/sh /script/startinet.sh
root     85003  0.0  0.0     0     0  ??  Z     2:15PM   0:00.00 <defunct>
root     86697  0.0  0.6  1400  1176  ??  I     2:25PM   0:00.00 cron: running job (cron)
root     86700  0.0  0.6  1708  1172  ??  Is    2:25PM   0:00.00 /bin/sh -c /script/startinet.sh
root     86703  0.0  0.6  1708  1172  ??  I     2:25PM   0:00.01 /bin/sh /script/startinet.sh
root     86709  0.0  0.6  1712  1176  ??  I     2:25PM   0:00.01 /bin/sh /script/startinet.sh
root     86765  0.0  0.0     0     0  ??  Z     2:25PM   0:00.00 <defunct>
root     87152  0.0  0.3  1248   472  ??  I     2:27PM   0:00.00 sleep 30
root     87157  0.0  0.3  1248   472  ??  I     2:27PM   0:00.00 sleep 40
root     87159  0.0  0.3  1248   472  ??  I     2:27PM   0:00.00 sleep 30
root     87167  0.0  0.3  1248   472  ??  I     2:27PM   0:00.00 sleep 40
root     87174  0.0  0.3  1248   472  ??  I     2:27PM   0:00.00 sleep 30
root     87183  0.0  0.3  1248   472  ??  I     2:27PM   0:00.00 sleep 40
root     87185  0.0  0.3  1248   472  ??  S     2:27PM   0:00.00 sleep 30
root     87188  0.0  1.7  6252  3176  ??  Ss    2:27PM   0:00.06 sshd: root@ttyp1 (sshd)
root     87197  0.0  0.3  1248   472  ??  S     2:27PM   0:00.00 sleep 30
root     87210  0.0  0.3  1248   472  ??  S     2:27PM   0:00.00 sleep 40
root     87212  0.0  0.5  1712  1028  ??  S     2:27PM   0:00.00 /bin/sh /script/startinet.sh
root     87213  0.0  0.5  1456   888  ??  S     2:27PM   0:00.00 /sbin/ping -c 3 192.168.153.1
root     87214  0.0  0.5  1592  1004  ??  S     2:27PM   0:00.00 grep -c 64 bytes
root     87218  0.0  0.3  1248   472  ??  S     2:27PM   0:00.00 sleep 40
root     87222  0.0  0.3  1248   472  ??  S     2:27PM   0:00.00 sleep 40
root     87224  0.0  0.6  1712  1176  ??  S     2:27PM   0:00.00 /bin/sh /script/startinet.sh
root     87225  0.0  0.5  1456   888  ??  S     2:27PM   0:00.00 /sbin/ping -c 3 192.168.153.1
root     87226  0.0  0.5  1592  1004  ??  S     2:27PM   0:00.00 grep -c 64 bytes
root     87228  0.0  0.3  1248   472  ??  S     2:27PM   0:00.00 sleep 30
root     87233  0.0  0.5  1712  1028  ??  S     2:27PM   0:00.00 /bin/sh /script/startinet.sh
root     87234  0.0  0.5  1456   888  ??  S     2:27PM   0:00.00 /sbin/ping -c 3 192.168.153.1
root     87235  0.0  0.5  1592  1004  ??  S     2:27PM   0:00.00 grep -c 64 bytes
root     87239  0.0  0.3  1248   472  ??  S     2:27PM   0:00.00 sleep 40
root     87241  0.0  0.6  1720  1036  ??  S     2:27PM   0:00.00 /bin/sh /script/startinet.sh
root     87242  0.0  0.5  1456   888  ??  S     2:27PM   0:00.00 /sbin/ping -c 3 192.168.153.1
root     87243  0.0  0.5  1592  1004  ??  S     2:27PM   0:00.00 grep -c 64 bytes
root     87244  0.0  0.6  1444  1068  ??  S     2:27PM   0:00.00 /usr/local/sbin/pptp ****.myftp.org vpn
root     87245  0.0  0.3  1248   472  ??  S     2:27PM   0:00.00 sleep 30
root     87246  0.0  0.6  1444  1068  ??  S     2:27PM   0:00.00 /usr/local/sbin/pptp ****.myftp.org vpn
root     87248  0.0  0.6  1444  1116  ??  S     2:27PM   0:00.00 /usr/local/sbin/pptp ****.myftp.org vpn
root      1080  0.0  0.5  1344   924  v0  Is+  Sun12AM   0:00.00 /usr/libexec/getty Pc ttyv0
root      1081  0.0  0.5  1344   924  v1  Is+  Sun12AM   0:00.00 /usr/libexec/getty Pc ttyv1
root      1082  0.0  0.5  1344   924  v2  Is+  Sun12AM   0:00.00 /usr/libexec/getty Pc ttyv2
root      1083  0.0  0.5  1344   924  v3  Is+  Sun12AM   0:00.00 /usr/libexec/getty Pc ttyv3
root      1084  0.0  0.5  1344   924  v4  Is+  Sun12AM   0:00.00 /usr/libexec/getty Pc ttyv4
root      1085  0.0  0.5  1344   924  v5  Is+  Sun12AM   0:00.00 /usr/libexec/getty Pc ttyv5
root      1086  0.0  0.5  1344   924  v6  Is+  Sun12AM   0:00.00 /usr/libexec/getty Pc ttyv6
root      1087  0.0  0.5  1344   924  v7  Is+  Sun12AM   0:00.00 /usr/libexec/getty Pc ttyv7
mysql      830  0.0  0.6  1728  1116 con- I    Sun12AM   0:00.02 /bin/sh /usr/local/bin/mysqld_safe --defaults-extra-file=/va
mysql      889  0.0 12.9 43820 24212 con- S    Sun12AM   1:07.64 /usr/local/libexec/mysqld --defaults-extra-file=/var/db/mysq
root     87203  0.0  1.7  5156  3104  p1  Ss    2:27PM   0:00.03 -csh (csh)
root     87249  0.0  0.6  1592  1080  p1  R+    2:27PM   0:00.00 ps -aux
Последний раз редактировалось Alex Keda 2008-12-14 11:46:00, всего редактировалось 2 раза.
Причина: [code][/code] - для кого?

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2460 рублей (8 CPU, 8Gb RAM, 2x500Gb HDD, RAID 3ware 9750):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35071
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: VPN тунель и скрипт по его переподнятию.

Непрочитанное сообщение Alex Keda » 2008-12-14 11:47:01

а чё не так-то?
Убей их всех! Бог потом рассортирует...

Аватара пользователя
InventoR
ст. лейтенант
Сообщения: 1344
Зарегистрирован: 2006-12-10 19:43:25
Контактная информация:

Re: VPN тунель и скрипт по его переподнятию.

Непрочитанное сообщение InventoR » 2008-12-14 12:09:58

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