Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Компьютеры » В помощь системному администратору » FreeBSD + Pptp: автоматическое подключение VPN

Модерирует : lynx, Crash_Master, dg, emx, ShriEkeR

 Версия для печати • ПодписатьсяДобавить в закладки

Открыть новую тему     Написать ответ в эту тему

Asggasg



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Интернет на bsd появляется после подключения vpn.
Таким образом каждый раз при включении сервера я ввожу одну и ту же строчку:  
pptp 10.2.1.2 vpn&  
vpn описан соответственно в файле /etc/ppp/ppp.conf
Естесственно это мне надоело и я хочу сделать так чтобы это загружалось автоматом, тогда я пишу скрипт и пихаю его в usr/local/rc.d. При перезагрузке он замечательно стартует, но инета нет , не идут даже пинги. Далее делаем kill этому процессу и еще раз запускаем то же самое - инет появляется.  
Вопрос: в чем трабла???
Может быть надо прописать его как обычный ppp доступ в rc.conf? Если да то поподробней пожалуйста чего-то я недопонял как именно это сдесать.
 
-----------------
[censored by lynx]





Название уточнила, имитацию подписи убрала - читаем правила. lynx.

Всего записей: 40 | Зарегистр. 27-04-2004 | Отправлено: 07:51 28-05-2004 | Исправлено: lynx, 12:24 31-05-2004
PomidorOFF



Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
/usr/ports/net/mpd
 
Когда у меня инет был через VPN я пользовался mpd.
 
Выдержка из man mpd:
 
NAME
     mpd -- netgraph multi-link PPP daemon
 
DESCRIPTION
     mpd is a user mode PPP daemon using the netgraph(4) networking system.
     By using Netgraph, mpd combines the robustness and flexibility of a user-
     mode PPP implementation with the speed and reliability of kernel-mode
     packet forwarding.  All PPP negotiation is handled in user level code,
     while all data intensive operations such as encryption, compression, and
     multi-link framing are handled strictly in the kernel.  Mpd supports sev-
     eral link layer types, a fully event-driven modem chat scripting lan-
     guage, and other features.
 
     mpd creates a ng_ppp(4) netgraph node that is placed between a
     ng_iface(4) netgraph interface one or more link layer devices, performing
     multi-link PPP negotiation and encapsulation. In multi-link PPP a bundle
     is a collection of one or more links between two peers. Each link corre-
     sponds to some device (e.g., a modem), and each bundle corresponds to one
     netgraph interface.  The idea is to use all of the links, together con-
     nected to a remote peer also performing multi-link PPP, to utilize their
     combined bandwidth.  Packets routed through the netgraph interface travel
     in multi-link fragments over all of the links.  Each link is a normal PPP
     link and can deliver complete packets as well, so redundancy is another
     benefit.  mpd implements a fairly simple form of multi-link PPP, in that
     a bundle consists of a fixed set of links. Attempts to connect two links
     in the same bundle to different peers, or to a peer that is not config-
     ured for multi-link PPP, will fail.
 
     In general, everything is controlled by executing commands which are
     either entered via the console command line or read from a configuration
     file. If mpd is running as a background daemon, the console can be made
     accessible via telnet(1) with the -c flag. Only one console connection is
     allowed at a time.  Since commands may apply to a single link, the con-
     sole prompt always shows the current bundle and the current link in that
     bundle.
 

Всего записей: 261 | Зарегистр. 20-08-2003 | Отправлено: 11:24 28-05-2004
Asggasg



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Спасибо PomidorOFF, если ничего не получится попробую mpd
но хотелось бы не поставить другое, а заставить работать это.

Всего записей: 40 | Зарегистр. 27-04-2004 | Отправлено: 09:33 31-05-2004
Richman



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору

Цитата:
Интернет на bsd появляется после подключения vpn.  

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

Всего записей: 100 | Зарегистр. 27-04-2004 | Отправлено: 02:18 21-11-2004
Открыть новую тему     Написать ответ в эту тему

Компьютерный форум Ru.Board » Компьютеры » В помощь системному администратору » FreeBSD + Pptp: автоматическое подключение VPN


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2025

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru