|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Dmitry Prokopev 2:5020/400 07 Mar 2002 11:35:31 To : Sergey Goryachev Subject : Re: Как инициировать/прерва ть соединение? -------------------------------------------------------------------------------- Hi All! > ставишь (если не стоит) и настраиваешь Apache > пишешь cgi-скрипт (я писал на sh), который запускает > и останавливает pppd (suid-ный) Со скриптом грубое решение. man pppd - --- demand Initiate the link only on demand, i.e. when data traffic is present. With this option, the remote IP address must be specified by the user on the command line or in an options file. Pppd will ini- tially configure the interface and enable it for IP traffic without connecting to the peer. When traf- fic is available, pppd will connect to the peer and perform negotiation, authentication, etc. When this is completed, pppd will commence passing data packets (i.e., IP packets) across the link. - --- idle n Specifies that pppd should disconnect if the link is idle for n seconds. The link is idle when no data packets (i.e. IP packets) are being sent or received. Note: it is not advisable to use this option with the persist option without the demand option. If the active-filter option is given, data packets which are rejected by the specified activ- ity filter also count as the link being idle. - --- вот этоо тебе поможет. Работает просто и удобно, позволяет имитировать постоянное соединение, и поддерживает dafaulroute в таблице маршрутизации, при этом при idle <n>, где указанное время разрывает соединение. -- rip --- ifmail v.2.15dev5 * Origin: UKRHUB.NET News Server (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/45032dbaa1f4.html, оценка из 5, голосов 10
|